commit eb8186dfcde55e2152cb82563b7530383cef1682
parent fee443bef8b277a2ad8071cac1cfe79b7bff5320
Author: Adam Vandolder <adam.vandolder@gmail.com>
Date: Fri, 3 Oct 2025 22:21:39 +0000
Bug 1992215 - Clear the contiguous entries list when the browsing context is detached. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D267275
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/docshell/base/BrowsingContext.cpp b/docshell/base/BrowsingContext.cpp
@@ -1019,6 +1019,7 @@ void BrowsingContext::Detach(bool aFromIPC) {
if (XRE_IsParentProcess()) {
Canonical()->AddPendingDiscard();
+ Canonical()->mActiveEntryList.clear();
}
auto callListeners =
MakeScopeExit([&, listeners = std::move(mDiscardListeners), id = Id()] {