mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1045008 - Manage search Engine option in new tab is not working (broken) if search bar is removed. r=adw
This commit is contained in:
parent
6b0b0c24ca
commit
d60c3a80c1
@ -183,7 +183,19 @@ this.ContentSearch = {
|
||||
|
||||
_onMessageManageEngines: function (msg, data) {
|
||||
let browserWin = msg.target.ownerDocument.defaultView;
|
||||
browserWin.BrowserSearch.searchBar.openManager(null);
|
||||
let wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].
|
||||
getService(Components.interfaces.nsIWindowMediator);
|
||||
let window = wm.getMostRecentWindow("Browser:SearchManager");
|
||||
|
||||
if (window) {
|
||||
window.focus()
|
||||
}
|
||||
else {
|
||||
browserWin.setTimeout(function () {
|
||||
browserWin.openDialog("chrome://browser/content/search/engineManager.xul",
|
||||
"_blank", "chrome,dialog,modal,centerscreen,resizable");
|
||||
}, 0);
|
||||
}
|
||||
return Promise.resolve();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user