зеркало из https://github.com/mozilla/gecko-dev.git
Use a cached ref to the url bar instead of retrieving it for each page load and accel+L (75331). r=kerz sr=alecf
This commit is contained in:
Родитель
97b9e110fc
Коммит
98b6632102
|
@ -320,7 +320,7 @@ nsXULBrowserWindow.prototype =
|
||||||
|
|
||||||
// We should probably not do this if the value has changed since the user
|
// We should probably not do this if the value has changed since the user
|
||||||
// searched
|
// searched
|
||||||
document.getElementById("urlbar").value = location;
|
gURLBar.value = location;
|
||||||
|
|
||||||
UpdateBackForwardButtons();
|
UpdateBackForwardButtons();
|
||||||
},
|
},
|
||||||
|
@ -1399,11 +1399,10 @@ function ShowAndSelectContentsOfURLBar()
|
||||||
if (navBar.getAttribute("hidden") == "true")
|
if (navBar.getAttribute("hidden") == "true")
|
||||||
goToggleToolbar('nav-bar','cmd_viewnavbar');
|
goToggleToolbar('nav-bar','cmd_viewnavbar');
|
||||||
|
|
||||||
var urlBar = document.getElementById("urlbar");
|
if (gURLBar.value)
|
||||||
if (urlBar.value)
|
gURLBar.select();
|
||||||
urlBar.select();
|
|
||||||
else
|
else
|
||||||
urlBar.focus();
|
gURLBar.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче