Bug 1034262 - Don't use wantXrays for requiresAddonGlobal sandboxes. r=gabor

This commit is contained in:
Bobby Holley
2014-07-10 10:04:30 -07:00
parent ed94f39db9
commit 9f7036e7c8
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ const WorkerSandbox = Class({
// have access to all standard globals (window, document, ...)
let content = sandbox(principals, {
sandboxPrototype: proto,
wantXrays: true,
wantXrays: !requiresAddonGlobal(worker),
wantGlobalProperties: wantGlobalProperties,
wantExportHelpers: true,
sameZoneAs: window,