зеркало из https://github.com/mozilla/gecko-dev.git
Bug 776497 - Check for null currentInner when deciding to reuse inner windows. r=smaug
This commit is contained in:
Родитель
dbf2d412a0
Коммит
df900033e1
|
@ -1772,7 +1772,10 @@ nsGlobalWindow::SetNewDocument(nsIDocument* aDocument,
|
|||
nsContentUtils::AddScriptRunner(
|
||||
NS_NewRunnableMethod(this, &nsGlobalWindow::ClearStatus));
|
||||
|
||||
bool reUseInnerWindow = aForceReuseInnerWindow || wouldReuseInnerWindow;
|
||||
// Sometimes, WouldReuseInnerWindow() returns true even if there's no inner
|
||||
// window (see bug 776497). Be safe.
|
||||
bool reUseInnerWindow = (aForceReuseInnerWindow || wouldReuseInnerWindow) &&
|
||||
GetCurrentInnerWindowInternal();
|
||||
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче