Browse Source

Merge pull request #5314 from yurydelendik/issue5313

Fixes names collisions in content.js
Brendan Dahl 11 years ago
parent
commit
678fb0ea9f
  1. 7
      extensions/firefox/chrome/content.js

7
extensions/firefox/chrome/content.js

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

Loading…
Cancel
Save