[image] Hold a strong ref on error.

This commit is contained in:
Moonchild
2026-04-24 10:37:01 +02:00
committed by roytam1
parent 0ca2e3ea42
commit 1a73ec0124
+4
View File
@@ -1283,6 +1283,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;