Bug 609281 - Close awesomescreen when opening a command-line URL [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Wed, 15 Dec 2010 23:40:09 -0800
changeset 67139 40ea1bed088e611850012ec387cb2c92e0a52b73
parent 67138 bb7bdcb8b77df14f366b9e693d7ebaf61d1fa995
child 67140 4c3ef1fc295633871096b3fac04835b5aa684a38
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs609281
Bug 609281 - Close awesomescreen when opening a command-line URL [r=mfinkle]
mobile/chrome/content/browser.js
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -2833,16 +2833,17 @@ Tab.prototype = {
     // Attach a separate progress listener to the browser
     let flags = Ci.nsIWebProgress.NOTIFY_LOCATION |
                 Ci.nsIWebProgress.NOTIFY_SECURITY |
                 Ci.nsIWebProgress.NOTIFY_STATE_NETWORK |
                 Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT;
     this._listener = new ProgressController(this);
     browser.webProgress.addProgressListener(this._listener, flags);
 
+    BrowserUI.closeAutoComplete();
     return browser;
   },
 
   _destroyBrowser: function _destroyBrowser() {
     if (this._browser) {
       let notification = this._notification;
       let browser = this._browser;
       browser.removeProgressListener(this._listener);