зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1261599 - null check SendPBrowserConstructor return in ContentParent to avoid crashes on content process shutdown. r=smaug
MozReview-Commit-ID: 4LqDIeN9XRq --HG-- extra : rebase_source : ff6edb2b80ac4e29374092d2637fc91886afec0d
This commit is contained in:
Родитель
2ca6ab8df7
Коммит
b87f219d48
|
@ -1201,9 +1201,11 @@ ContentParent::CreateBrowserOrApp(const TabContext& aContext,
|
|||
constructorSender->IsForApp(),
|
||||
constructorSender->IsForBrowser());
|
||||
|
||||
RefPtr<TabParent> constructedTabParent = TabParent::GetFrom(browser);
|
||||
constructedTabParent->SetOwnerElement(aFrameElement);
|
||||
return constructedTabParent;
|
||||
if (browser) {
|
||||
RefPtr<TabParent> constructedTabParent = TabParent::GetFrom(browser);
|
||||
constructedTabParent->SetOwnerElement(aFrameElement);
|
||||
return constructedTabParent;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче