Bug 1180507 - Don't hardcode defaultChromeURI in BrowserCLH.js r=mfinkle

This commit is contained in:
Fabrice Desré 2015-07-05 20:26:17 -07:00
parent e6be0311a5
commit 2d7de836a8

View File

@ -93,7 +93,11 @@ BrowserCLH.prototype = {
};
let flags = "chrome,dialog=no,all";
browserWin = openWindow(null, "chrome://browser/content/browser.xul", "_blank", flags, args);
let chromeURL = "chrome://browser/content/browser.xul";
try {
chromeURL = Services.prefs.getCharPref("toolkit.defaultChromeURI");
} catch(e) {}
browserWin = openWindow(null, chromeURL, "_blank", flags, args);
}
aCmdLine.preventDefault = true;