Bug 999585 - wantExportHelpers for all content-script. r=Mossop, a=sledru
authorGabor Krizsanits <gkrizsanits@mozilla.com>
Mon, 28 Apr 2014 11:53:50 +0200
changeset 192179 5c955e3d64b6
parent 192178 461e1c788403
child 192180 ae9db69edde3
push id3512
push userryanvm@gmail.com
push date2014-04-30 13:07 +0000
treeherdermozilla-beta@ae9db69edde3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop, sledru
bugs999585
milestone30.0
Bug 999585 - wantExportHelpers for all content-script. r=Mossop, a=sledru
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
@@ -137,17 +137,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;