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:
mozilla.mano%sent.com 2005-06-02 12:18:01 +00:00
Родитель 3f1770c2b7
Коммит 7f735f8f60
1 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -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)