зеркало из https://github.com/mozilla/gecko-dev.git
Bug 668227 - Remember the urlbar being focused when switching to a tab with a modal prompt. r=gavin
This commit is contained in:
Родитель
6ddb02a6cb
Коммит
e46346ba60
|
@ -954,6 +954,7 @@
|
|||
this._tabAttrModified(this.mCurrentTab);
|
||||
|
||||
// Adjust focus
|
||||
oldBrowser._urlbarFocused = (gURLBar && gURLBar.focused);
|
||||
do {
|
||||
|
||||
// If there's a tabmodal prompt showing, focus it.
|
||||
|
@ -968,7 +969,6 @@
|
|||
// Focus the location bar if it was previously focused for that tab.
|
||||
// In full screen mode, only bother making the location bar visible
|
||||
// if the tab is a blank one.
|
||||
oldBrowser._urlbarFocused = (gURLBar && gURLBar.focused);
|
||||
if (newBrowser._urlbarFocused && gURLBar) {
|
||||
|
||||
// Explicitly close the popup if the URL bar retains focus
|
||||
|
|
Загрузка…
Ссылка в новой задаче