bug 463722 - reduce lag for locationbar clicks
authorTaras Glek <tglek@mozilla.com>
Mon, 10 Nov 2008 11:15:07 -0800
changeset 64948 755acdedcbd04a546983c1d7c848c4108d834f7a
parent 64947 b2c3647c56a8588352617ea31cf11e54786a9dba
child 64949 fee2fec6f7455fe340ce83594246ce3891c1ec23
push idunknown
push userunknown
push dateunknown
bugs463722
bug 463722 - reduce lag for locationbar clicks
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -805,17 +805,17 @@ var BrowserUI = {
         this._linkAdded(aEvent);
         break;
       case "TabSelect":
         this._tabSelect(aEvent);
         break;
       // URL textbox events
       case "click":
         this.show(UIMODE_URLEDIT);
-        this.updateAutoComplete(true);
+        setTimeout(function () {BrowserUI.updateAutoComplete(true)}, 0);
         break;
       case "input":
         this.updateAutoComplete(false);
         break;
       case "keypress":
         if (aEvent.keyCode == aEvent.DOM_VK_ESCAPE) {
           this._edit.reallyClosePopup();
           this.show(UIMODE_URLVIEW);