зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1702714 - GetBrowserBridgeParent may be null after destroy, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D110827
This commit is contained in:
Родитель
22d7d29b4a
Коммит
4bcdc094f9
|
@ -1271,7 +1271,8 @@ nsresult CanonicalBrowsingContext::PendingRemotenessChange::FinishSubframe() {
|
|||
bool wasRemote = oldBrowser && oldBrowser->GetBrowsingContext() == target;
|
||||
if (wasRemote) {
|
||||
MOZ_DIAGNOSTIC_ASSERT(oldBrowser != embedderBrowser);
|
||||
MOZ_DIAGNOSTIC_ASSERT(oldBrowser->GetBrowserBridgeParent());
|
||||
MOZ_DIAGNOSTIC_ASSERT(oldBrowser->IsDestroyed() ||
|
||||
oldBrowser->GetBrowserBridgeParent());
|
||||
|
||||
// `oldBrowser` will clear the `UnloadingHost` status once the actor has
|
||||
// been destroyed.
|
||||
|
|
Загрузка…
Ссылка в новой задаче