Bug 1633204 - Live WindowContexts should keep BrowsingContextGroup alive, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D72893
This commit is contained in:
@@ -154,6 +154,7 @@ void WindowContext::Init() {
|
||||
|
||||
// Register this to the browsing context.
|
||||
mBrowsingContext->RegisterWindowContext(this);
|
||||
Group()->Register(this);
|
||||
}
|
||||
|
||||
void WindowContext::Discard() {
|
||||
@@ -167,6 +168,7 @@ void WindowContext::Discard() {
|
||||
mIsDiscarded = true;
|
||||
gWindowContexts->Remove(InnerWindowId());
|
||||
mBrowsingContext->UnregisterWindowContext(this);
|
||||
Group()->Unregister(this);
|
||||
}
|
||||
|
||||
WindowContext::WindowContext(BrowsingContext* aBrowsingContext,
|
||||
|
||||
Reference in New Issue
Block a user