mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1743471 - Remove assertion for existence of WindowGlobalChild r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D132484
This commit is contained in:
parent
70ffe6ef15
commit
e1611c9885
@ -26,6 +26,8 @@ void LockManagerChild::NotifyBFCacheOnMainThread(nsPIDOMWindowInner* aInner,
|
||||
}
|
||||
|
||||
uint32_t count = aInner->UpdateLockCount(aCreated);
|
||||
// It's okay for WindowGlobalChild to not exist, as it should mean it already
|
||||
// is destroyed and can't enter bfcache anyway.
|
||||
if (WindowGlobalChild* child = aInner->GetWindowGlobalChild()) {
|
||||
if (aCreated && count == 1) {
|
||||
// The first lock is active.
|
||||
@ -34,9 +36,6 @@ void LockManagerChild::NotifyBFCacheOnMainThread(nsPIDOMWindowInner* aInner,
|
||||
child->UnblockBFCacheFor(BFCacheStatus::ACTIVE_LOCK);
|
||||
}
|
||||
}
|
||||
// window actor is dead, so we should be just
|
||||
// destroying things
|
||||
MOZ_ASSERT_IF(!aInner->GetWindowGlobalChild(), !aCreated);
|
||||
}
|
||||
|
||||
class BFCacheNotifyLockRunnable final : public WorkerProxyToMainThreadRunnable {
|
||||
|
Loading…
Reference in New Issue
Block a user