Bug 999585 - wantExportHelpers for all content-script. r=Mossop
authorGabor Krizsanits <gkrizsanits@mozilla.com>
Mon, 28 Apr 2014 11:53:50 +0200
changeset 180924 e4ff4df25884c6eda82af0d9d081886e9b0455ea
parent 180923 f3a57f0d89b0e7133388aaffce4cd5c84a250c98
child 180925 8114506aaccbc800ae483b5dd37314356ce16608
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersMossop
bugs999585
milestone31.0a1
Bug 999585 - wantExportHelpers for all content-script. r=Mossop
addon-sdk/source/lib/sdk/content/sandbox.js
--- a/addon-sdk/source/lib/sdk/content/sandbox.js
+++ b/addon-sdk/source/lib/sdk/content/sandbox.js
@@ -138,17 +138,17 @@ const WorkerSandbox = Class({
     apiSandbox.console = console;
 
     // Create the sandbox and bind it to window in order for content scripts to
     // have access to all standard globals (window, document, ...)
     let content = sandbox(principals, {
       sandboxPrototype: proto,
       wantXrays: true,
       wantGlobalProperties: wantGlobalProperties,
-      wantExportHelpers: !waiveSecurityMembrane,
+      wantExportHelpers: true,
       sameZoneAs: window,
       metadata: {
         SDKContentScript: true,
         'inner-window-id': getInnerId(window)
       }
     });
     model.sandbox = content;