b=445993, r=gavin. followup to remove unneeded setTimeout
authorMark Finkle <mfinkle@mozilla.com>
Mon, 21 Jul 2008 17:12:47 -0400
changeset 64764 39f0d2ca3f1bf00a684bfb897bb91e2c2237b434
parent 64763 cafc7e53ba30509a35bf593a65609d4e481a0122
child 64765 b14fed37f476f526ea1044470d8de6133d2694ae
push id19389
push userffxbld
push dateWed, 06 Apr 2011 21:33:21 +0000
treeherdermozilla-central@8e9f90073a20 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs445993
b=445993, r=gavin. followup to remove unneeded setTimeout
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -137,18 +137,17 @@ var Browser = {
         if (uriFlag) {
           whereURI = cmdLine.resolveURI(uriFlag);
           if (whereURI)
             whereURI = whereURI.spec;
         }
       } catch (e) {}
 
       if (whereURI) {
-        var self = this;
-        setTimeout(function() { self.content.browser.loadURI(whereURI, null, null, false); }, 10);
+        this.currentBrowser.loadURI(whereURI, null, null, false);
       }
     }
   },
 
   setupGeolocationPrompt: function() {
     var geolocationService = Cc["@mozilla.org/geolocation/service;1"].getService(Ci.nsIGeolocationService);
     geolocationService.prompt = function(request) {