mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 981310 - Displayed error tapping navbar under input element after URL TextSelection, r=jimm
This commit is contained in:
parent
a51705c845
commit
c8f68620e9
@ -173,11 +173,20 @@ var ContextUI = {
|
||||
}, aDelay);
|
||||
},
|
||||
|
||||
// Display the nav bar
|
||||
/*
|
||||
* Display the nav bar.
|
||||
*
|
||||
* @return false if we were already visible, and didn't do anything.
|
||||
*/
|
||||
displayNavbar: function () {
|
||||
if (Elements.chromeState.getAttribute("navbar") == "visible") {
|
||||
return false;
|
||||
}
|
||||
|
||||
Elements.navbar.show();
|
||||
Elements.chromeState.setAttribute("navbar", "visible");
|
||||
ContentAreaObserver.updateContentArea();
|
||||
return true;
|
||||
},
|
||||
|
||||
// Display the tab tray
|
||||
|
@ -284,8 +284,15 @@
|
||||
Elements.urlbarState.setAttribute("editing", true);
|
||||
this._lastKnownGoodURL = this.value;
|
||||
|
||||
if (!this.focused)
|
||||
if (!this.focused) {
|
||||
this.focus();
|
||||
// If we force focus, ensure we're visible.
|
||||
if (ContextUI.displayNavbar()) {
|
||||
// If we forced visibility, ensure we're positioned above keyboard.
|
||||
// (Previous "blur" may have forced us down behind it.)
|
||||
ContentAreaObserver.updateAppBarPosition();
|
||||
}
|
||||
}
|
||||
|
||||
this._clearFormatting();
|
||||
this.select();
|
||||
|
Loading…
Reference in New Issue
Block a user