mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 1382093 - Null check docShell in InternalSetDocShellIsActive, r=smaug
MozReview-Commit-ID: JHtmTSomFlb
This commit is contained in:
parent
7a24a5eff4
commit
6968a2e955
@ -2462,6 +2462,10 @@ TabChild::InternalSetDocShellIsActive(bool aIsActive, bool aPreserveLayers)
|
||||
if (aIsActive) {
|
||||
MakeVisible();
|
||||
|
||||
if (!docShell) {
|
||||
return;
|
||||
}
|
||||
|
||||
// We don't use TabChildBase::GetPresShell() here because that would create
|
||||
// a content viewer if one doesn't exist yet. Creating a content viewer can
|
||||
// cause JS to run, which we want to avoid. nsIDocShell::GetPresShell
|
||||
|
Loading…
Reference in New Issue
Block a user