Bug 1897055. Assert SVGDocumentWrapper::DestroyViewer is called on main thread. r=layout-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D210603
This commit is contained in:
Timothy Nikkel 2024-05-16 08:22:31 +00:00
parent 26a8fe175d
commit 446eaaa15c

View file

@ -54,6 +54,7 @@ SVGDocumentWrapper::~SVGDocumentWrapper() {
}
void SVGDocumentWrapper::DestroyViewer() {
MOZ_ASSERT(NS_IsMainThread());
if (mViewer) {
mViewer->GetDocument()->OnPageHide(false, nullptr);
mViewer->Close(nullptr);