зеркало из 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 {
|
try {
|
||||||
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
|
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
|
||||||
if (chromeRegistry)
|
if (chromeRegistry)
|
||||||
chromeRegistry = chromeRegistry.QueryInterface(Components.interfaces.nsIChromeRegistry);
|
chromeRegistry = chromeRegistry.QueryInterface(Components.interfaces.nsIXULChromeRegistry);
|
||||||
}
|
}
|
||||||
catch(e) {}
|
catch(e) {}
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ function applySkin()
|
||||||
try {
|
try {
|
||||||
var reg = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
|
var reg = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
|
||||||
if (reg)
|
if (reg)
|
||||||
reg = reg.QueryInterface(Components.interfaces.nsIChromeRegistry);
|
reg = reg.QueryInterface(Components.interfaces.nsIXULChromeRegistry);
|
||||||
}
|
}
|
||||||
catch(e) {}
|
catch(e) {}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче