зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1516130 - Accel+K shouldn't focus and modify the read-only address bar in popups. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D15260 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
b0bc11783b
Коммит
b77881e30c
|
@ -3982,13 +3982,14 @@ const BrowserSearch = {
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gives focus to the search bar, if it is present on the toolbar, or loads
|
* Focuses the search bar if present on the toolbar, or the address bar,
|
||||||
* the default engine's search form otherwise. For Mac, opens a new window
|
* putting it in search mode. Will do so in an existing non-popup browser
|
||||||
* or focuses an existing window, if necessary.
|
* window or open a new one if necessary.
|
||||||
*/
|
*/
|
||||||
webSearch: function BrowserSearch_webSearch() {
|
webSearch: function BrowserSearch_webSearch() {
|
||||||
if (window.location.href != AppConstants.BROWSER_CHROME_URL) {
|
if (window.location.href != AppConstants.BROWSER_CHROME_URL ||
|
||||||
var win = getTopWin();
|
gURLBar.readOnly) {
|
||||||
|
let win = getTopWin(true);
|
||||||
if (win) {
|
if (win) {
|
||||||
// If there's an open browser window, it should handle this command
|
// If there's an open browser window, it should handle this command
|
||||||
win.focus();
|
win.focus();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче