Backing out bug 118704 to try to fix Windows leak orange
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user