import from UXP: [image] Hold a strong ref on error. (1a73ec01)

This commit is contained in:
2026-04-27 11:29:38 +08:00
parent 028fc21c4e
commit cd6e0c85cd
+4
View File
@@ -1305,6 +1305,10 @@ VectorImage::OnSVGDocumentError()
mError = true;
// ProgressTracker::SyncNotifyProgress may release us, so ensure we
// stick around long enough to complete our work.
RefPtr<VectorImage> kungFuDeathGrip(this);
if (mProgressTracker) {
// Notify observers about the error and unblock page load.
Progress progress = FLAG_ONLOAD_UNBLOCKED | FLAG_HAS_ERROR;