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:
alecf%netscape.com 2006-05-17 02:34:40 +00:00
parent 6f26ec449d
commit 702649508f

View File

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