mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 1814603 - Change more ContentParent::IsDead checks to ContentParent::IsShuttingDown. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D168995
This commit is contained in:
parent
003efc7f75
commit
a5cf43833e
@ -1611,7 +1611,7 @@ nsresult CanonicalBrowsingContext::PendingRemotenessChange::FinishTopContent() {
|
||||
"non-remote iframes");
|
||||
|
||||
// Abort if our ContentParent died while process switching.
|
||||
if (mContentParent && NS_WARN_IF(mContentParent->IsDead())) {
|
||||
if (mContentParent && NS_WARN_IF(mContentParent->IsShuttingDown())) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
@ -1741,7 +1741,7 @@ nsresult CanonicalBrowsingContext::PendingRemotenessChange::FinishSubframe() {
|
||||
// If we're creating a new remote browser, and the host process is already
|
||||
// dead, abort the process switch.
|
||||
if (mContentParent != embedderBrowser->Manager() &&
|
||||
NS_WARN_IF(mContentParent->IsDead())) {
|
||||
NS_WARN_IF(mContentParent->IsShuttingDown())) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user