зеркало из https://github.com/mozilla/pjs.git
fix for bug 119923 - split nsIChromeRegistry into 2 interfaces, one that is XUL-specific
this way we can implement an minimal chrome registry for embedding, that doesn't support all the wacky skin- and locale-switching goodness of XUL. r=waterson, sr=hyatt
This commit is contained in:
Родитель
4004c0c7e3
Коммит
e953e24301
|
@ -43,7 +43,7 @@ var gData;
|
|||
try {
|
||||
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
|
||||
if (chromeRegistry)
|
||||
chromeRegistry = chromeRegistry.QueryInterface(Components.interfaces.nsIChromeRegistry);
|
||||
chromeRegistry = chromeRegistry.QueryInterface(Components.interfaces.nsIXULChromeRegistry);
|
||||
}
|
||||
catch(e) {}
|
||||
|
||||
|
@ -115,7 +115,7 @@ function applySkin()
|
|||
try {
|
||||
var reg = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
|
||||
if (reg)
|
||||
reg = reg.QueryInterface(Components.interfaces.nsIChromeRegistry);
|
||||
reg = reg.QueryInterface(Components.interfaces.nsIXULChromeRegistry);
|
||||
}
|
||||
catch(e) {}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче