Fixes names collisions in content.js

This commit is contained in:
Yury Delendik 2014-09-19 13:58:12 -05:00
parent d66314cfb3
commit dd48d1c352

View File

@ -20,6 +20,9 @@
'use strict';
(function contentScriptClosure() {
// we need to use closure here -- we are running in the global context
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cm = Components.manager;
@ -33,7 +36,8 @@ var isRemote = Services.appinfo.processType ===
Services.appinfo.PROCESS_TYPE_CONTENT;
// Factory that registers/unregisters a constructor as a component.
function Factory() {}
function Factory() {
}
Factory.prototype = {
QueryInterface: XPCOMUtils.generateQI([Ci.nsIFactory]),
@ -96,3 +100,4 @@ if (isRemote) {
shutdown();
});
}
})();