зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1220827
- Replace question comment in nsHTMLDocument::Open with an explanatory comment to explain why we create a new Window. r=smaug
This commit is contained in:
Родитель
b12d2b88dd
Коммит
75eee57062
|
@ -1610,8 +1610,9 @@ nsHTMLDocument::Open(JSContext* cx,
|
|||
}
|
||||
#endif
|
||||
|
||||
// Should this pass true for aForceReuseInnerWindow?
|
||||
rv = window->SetNewDocument(this, nullptr, false);
|
||||
// Per spec, we pass false here so that a new Window is created.
|
||||
rv = window->SetNewDocument(this, nullptr,
|
||||
/* aForceReuseInnerWindow */ false);
|
||||
if (rv.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче