зеркало из https://github.com/mozilla/pjs.git
Bug 295237 - PrefWindowVs opened from Extension Manager lack pane switcher (toolbar); also, don't open extension options window as a modal window if the instantApply pref is on. r=mconnor a=chofmann
This commit is contained in:
Родитель
3f1770c2b7
Коммит
7f735f8f60
|
@ -809,8 +809,19 @@ var gExtensionsViewController = {
|
|||
{
|
||||
if (!aSelectedItem) return;
|
||||
var optionsURL = aSelectedItem.getAttribute("optionsURL");
|
||||
if (optionsURL != "")
|
||||
openDialog(optionsURL, "", "chrome,modal");
|
||||
if (optionsURL != "") {
|
||||
var features;
|
||||
try {
|
||||
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
instantApply = prefs.getBoolPref("browser.preferences.instantApply");
|
||||
features = "chrome,titlebar,toolbar,centerscreen" + (instantApply ? ",dialog=no" : ",modal");
|
||||
}
|
||||
catch (e) {
|
||||
features = "chrome,titlebar,toolbar,centerscreen,modal";
|
||||
}
|
||||
openDialog(optionsURL, "", features);
|
||||
}
|
||||
},
|
||||
|
||||
cmd_homepage: function (aSelectedItem)
|
||||
|
|
Загрузка…
Ссылка в новой задаче