Browse Source

code review for #390

pull/2/head
gorhill 9 years ago
parent
commit
72c9429d74
  1. 2
      platform/firefox/frameModule.js
  2. 2
      platform/firefox/vapi-background.js

2
platform/firefox/frameModule.js

@ -74,7 +74,7 @@ var contentObserver = {
cpMessageName: hostName + ':shouldLoad', cpMessageName: hostName + ':shouldLoad',
uniqueSandboxId: 1, uniqueSandboxId: 1,
modernFirefox: Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' && modernFirefox: Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' &&
Services.vc.compare(Services.appinfo.platformVersion, '45.0') >= 0,
Services.vc.compare(Services.appinfo.platformVersion, '44') > 0,
get componentRegistrar() { get componentRegistrar() {
return Components.manager.QueryInterface(Ci.nsIComponentRegistrar); return Components.manager.QueryInterface(Ci.nsIComponentRegistrar);

2
platform/firefox/vapi-background.js

@ -47,7 +47,7 @@ const {Services} = Cu.import('resource://gre/modules/Services.jsm', null);
var vAPI = self.vAPI = self.vAPI || {}; var vAPI = self.vAPI = self.vAPI || {};
vAPI.firefox = true; vAPI.firefox = true;
vAPI.modernFirefox = Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' && vAPI.modernFirefox = Services.appinfo.ID === '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}' &&
Services.vc.compare(Services.appinfo.platformVersion, '45.0') >= 0;
Services.vc.compare(Services.appinfo.platformVersion, '44') > 0;
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save