Bug 512402: Auto-select of URLBar is broken, r=gavin

This commit is contained in:
Mark Finkle 2009-08-26 13:18:13 -04:00
parent 5cf290fb75
commit a603a47761
2 changed files with 4 additions and 5 deletions

View File

@ -136,15 +136,16 @@
if (this._popupOpen)
return;
BrowserUI.pushDialog(this);
this._input = aInput;
this._input.select();
if (this.hidden)
this.hidden = false;
this.collapsed = false;
this._popupOpen = true;
BrowserUI.pushDialog(this);
this.invalidate();
]]></body>
</method>

View File

@ -183,7 +183,7 @@ var BrowserUI = {
return;
this._toolbarLocked--;
if(!this._toolbarLocked)
if (!this._toolbarLocked)
document.getElementById("toolbar-moveable-container").top = "";
},
@ -202,9 +202,7 @@ var BrowserUI = {
// IME state to be set properly. Testing shows we only really need to
// do this the first time.
this._edit.inputField.blur();
this._edit.inputField.focus();
this._edit.select();
}
else if (!aEdit && icons.getAttribute("mode") != "view") {
icons.setAttribute("mode", "view");