Bug 1804409, cycle collect mVisualViewport, r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D164319
This commit is contained in:
Olli Pettay 2022-12-09 10:53:42 +00:00
parent 991f6e1462
commit 82425958a8

View File

@ -1454,6 +1454,7 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(nsGlobalWindowInner)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mExternal)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mInstallTrigger)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mIntlUtils)
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mVisualViewport)
tmp->TraverseObjectsInGlobal(cb);
@ -1570,6 +1571,7 @@ NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsGlobalWindowInner)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mExternal)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mInstallTrigger)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mIntlUtils)
NS_IMPL_CYCLE_COLLECTION_UNLINK(mVisualViewport)
tmp->UnlinkObjectsInGlobal();