зеркало из https://github.com/mozilla/gecko-dev.git
bug 321558: document.write into a new window or frame won't set the title of the
new document. Void out the old title so that we know that there hasn't been a real <title> yet. r+sr=bzbarsky
This commit is contained in:
Родитель
9444c564c2
Коммит
ae1ba9d2c7
|
@ -2015,7 +2015,10 @@ nsHTMLDocument::OpenCommon(const nsACString& aContentType, PRBool aReplace)
|
|||
|
||||
// Zap the old title -- otherwise it would hang around until document.close()
|
||||
// (which might never come) if the new document doesn't explicitly set one.
|
||||
// Void the title to make sure that we actually respect any titles set by the
|
||||
// new document.
|
||||
SetTitle(EmptyString());
|
||||
mDocumentTitle.SetIsVoid(PR_TRUE);
|
||||
|
||||
// Store the security info of the caller now that we're done
|
||||
// resetting the document.
|
||||
|
|
Загрузка…
Ссылка в новой задаче