Bug 723873 - setting about:newtab as homepage should place the cursor in the location bar at startup; r=dao
authorTim Taubert <tim.taubert@gmx.de>
Thu, 09 Feb 2012 16:30:37 +0100
changeset 86725 c551310b6592f62d87bd6f6bc187fd093cc19678
parent 86724 4de94318cb244b4c2c913f3c9965c049a2072295
child 86726 ed364b0b4c627e3c0c2b2839bd46ffef50c24d04
push id102
push userMs2ger@gmail.com
push dateFri, 10 Feb 2012 20:38:19 +0000
reviewersdao
bugs723873
milestone13.0a1
Bug 723873 - setting about:newtab as homepage should place the cursor in the location bar at startup; r=dao
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1224,22 +1224,22 @@ function BrowserStartup() {
   //                      ignored).
   //                 [1]: character set (string)
   //                 [2]: referrer (nsIURI)
   //                 [3]: postData (nsIInputStream)
   //                 [4]: allowThirdPartyFixup (bool)
   if ("arguments" in window && window.arguments[0])
     uriToLoad = window.arguments[0];
 
-  var isLoadingBlank = uriToLoad == "about:blank";
+  var isLoadingBlank = isBlankPageURL(uriToLoad);
   var mustLoadSidebar = false;
 
   prepareForStartup();
 
-  if (uriToLoad && !isLoadingBlank) {
+  if (uriToLoad && uriToLoad != "about:blank") {
     if (uriToLoad instanceof Ci.nsISupportsArray) {
       let count = uriToLoad.Count();
       let specs = [];
       for (let i = 0; i < count; i++) {
         let urisstring = uriToLoad.GetElementAt(i).QueryInterface(Ci.nsISupportsString);
         specs.push(urisstring.data);
       }