From bf8e12030aea954f6063725e19d220ea0211a64b Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Thu, 24 Jan 2002 03:38:53 +0000 Subject: [PATCH] set docshell current URI after creating a synchronous about:blank Frankendocument. bug 104361 r=brendan,jst git-svn-id: svn://10.0.0.236/trunk@112644 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index ad2c0e9f67c..dbda5604044 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -3524,6 +3524,10 @@ nsDocShell::CreateAboutBlankContentViewer() nsCOMPtr domdoc(do_QueryInterface(blankDoc)); Embed(viewer, "", 0); viewer->SetDOMDocument(domdoc); + + nsCOMPtr documentURI; + blankDoc->GetDocumentURL(getter_AddRefs(documentURI)); // about:blank, duh + SetCurrentURI(documentURI); rv = NS_OK; } }