Backing out bug 118704 to try to fix Windows leak orange

This commit is contained in:
Robert O'Callahan
2008-08-16 23:27:40 +12:00
parent 1c6e121690
commit 99068c5357
26 changed files with 254 additions and 456 deletions

View File

@@ -5897,9 +5897,13 @@ nsDocShell::RestoreFromHistory()
rv = privWin->RestoreWindowState(windowState);
NS_ENSURE_SUCCESS(rv, rv);
// Now, dispatch a title change event which would happen as the
// Now, dispatch a title change event which would happed as the
// <head> is parsed.
document->NotifyPossibleTitleChange(PR_FALSE);
nsCOMPtr<nsIDOMNSDocument> nsDoc = do_QueryInterface(document);
if (nsDoc) {
const nsAFlatString &title = document->GetDocumentTitle();
nsDoc->SetTitle(title);
}
// Now we simulate appending child docshells for subframes.
for (i = 0; i < childShells.Count(); ++i) {