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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user