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:
mrbkap%gmail.com 2005-12-29 20:38:06 +00:00
Родитель 9444c564c2
Коммит ae1ba9d2c7
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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.