Bug 725200 - about:newtab briefly shown in location bar of new tab; r=gavin
authorTim Taubert <tim.taubert@gmx.de>
Fri, 17 Feb 2012 22:26:38 +0100
changeset 87136 72404246638e7c4979775624a4124dc26dfc2525
parent 87135 b099928aaa3404a4ea1a5d60ce78a6551d22c95b
child 87137 87bb3cff18646dda0deb6c0555360fc508d1ed92
push id22081
push usertim.taubert@gmx.de
push dateSat, 18 Feb 2012 01:04:38 +0000
treeherdermozilla-central@87bb3cff1864 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs725200
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 725200 - about:newtab briefly shown in location bar of new tab; r=gavin
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1360,17 +1360,18 @@
             if (!blank) {
               // Stop the existing about:blank load.  Otherwise, if aURI
               // doesn't stop in-progress loads on its own, we'll get into
               // trouble with multiple parallel loads running at once.
               b.stop();
 
               // pretend the user typed this so it'll be available till
               // the document successfully loads
-              b.userTypedValue = aURI;
+              if (!isBlankPageURL(aURI))
+                b.userTypedValue = aURI;
 
               let flags = Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
               if (aAllowThirdPartyFixup)
                 flags |= Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP;
               if (aFromExternal)
                 flags |= Ci.nsIWebNavigation.LOAD_FLAGS_FROM_EXTERNAL;
               if (aIsUTF8)
                 flags |= Ci.nsIWebNavigation.LOAD_FLAGS_URI_IS_UTF8;