40 dump(
"parseError:" +
msg.message +
"\n");
42 var
prefs = Components.classes[
"@mozilla.org/preferences-service;1"].
43 getService(Components.interfaces.nsIPrefBranch);
44 var curLocale =
"en-US";
46 curLocale = prefs.getCharPref(
"general.useragent.locale");
50 if (!gBusy && curLocale !=
"en-US") {
55 var wWatcher = Components.classes[
"@mozilla.org/embedcomp/window-watcher;1"]
56 .getService(Components.interfaces.nsIWindowWatcher);
57 var wMediator = Components.classes[
"@mozilla.org/appshell/window-mediator;1"]
58 .getService(Components.interfaces.nsIWindowMediator);
59 var mainWindow = wMediator.getMostRecentWindow(
"Songbird:Main");
61 wWatcher.openWindow(mainWindow,
62 "chrome://songbird/content/xul/parserError.xul",
64 "chrome,modal=yes,centerscreen,resizable=no",
75 if (!aIID.equals(Components.interfaces.nsIConsoleListener) &&
76 !aIID.equals(Components.interfaces.nsISupports))
78 throw Components.results.NS_ERROR_NO_INTERFACE;
89 gConsole = Components.classes[
"@mozilla.org/consoleservice;1"]
90 .getService(Components.interfaces.nsIConsoleService);
91 gOS = Components.classes[
"@mozilla.org/observer-service;1"]
92 .getService(Components.interfaces.nsIObserverService);
94 if (gOS.addObserver) {
96 gOS.addObserver(
this,
"profile-after-change",
false);
98 gOS.addObserver(
this,
"xpcom-shutdown",
false);
109 gConsole.registerListener(consoleListener);
113 _deinit:
function() {
115 gConsole.unregisterListener(consoleListener);
122 case "profile-after-change":
123 gOS.removeObserver(
this,
"profile-after-change");
128 case "xpcom-shutdown":
129 gOS.removeObserver(
this,
"xpcom-shutdown");
143 if (!iid.equals(Components.interfaces.nsIObserver) &&
144 !iid.equals(Components.interfaces.nsISupports))
145 throw Components.results.NS_ERROR_NO_INTERFACE;
156 registerSelf:
function(componentManager, fileSpec, location, type) {
157 componentManager = componentManager.QueryInterface(Components.interfaces.nsIComponentRegistrar);
158 for (var
key in this._objects) {
159 var obj = this._objects[
key];
160 componentManager.registerFactoryLocation(obj.CID, obj.className, obj.contractID,
161 fileSpec, location, type);
163 var categoryManager = Components.classes[
"@mozilla.org/categorymanager;1"]
164 .getService(Components.interfaces.nsICategoryManager);
165 categoryManager.addCategoryEntry(
"app-startup", this._objects.parsererrorhandler.className,
166 "service," +
this._objects.parsererrorhandler.contractID,
171 if (!iid.equals(Components.interfaces.nsIFactory))
172 throw Components.results.NS_ERROR_NOT_IMPLEMENTED;
174 for (var
key in this._objects) {
175 if (cid.equals(
this._objects[
key].CID))
176 return this._objects[
key].factory;
179 throw Components.results.NS_ERROR_NO_INTERFACE;
182 _makeFactory: #1=
function(ctor) {
183 function ci(outer, iid) {
185 throw Components.results.NS_ERROR_NO_AGGREGATION;
186 return (
new ctor()).QueryInterface(iid);
200 canUnload:
function(componentManager) {
const SONGBIRD_PARSERERRORHANDLER_CID
sbOSDControlService prototype className
SafebrowsingApplicationMod prototype registerSelf
const MSG_ERROR_UNDEFINEDENTITY
for(let i=0;i< aHistory.count;i++)
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
function ParserErrorHandler()
getService(Ci.sbIFaceplateManager)
SafebrowsingApplicationMod prototype getClassObject
const SONGBIRD_PARSERERRORHANDLER_CLASSNAME
const SONGBIRD_PARSERERRORHANDLER_CONTRACTID
const MSG_ERROR_ENTITYPROCESSING
sbDeviceFirmwareAutoCheckForUpdate prototype observe
function NSGetModule(comMgr, fileSpec)