mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
Bug 841067 - Fix sandbox xhr tests. r=bz
This commit is contained in:
parent
8963699245
commit
5e7c3d4724
@ -39,7 +39,7 @@ function test() {
|
||||
let sandbox = new Cu.Sandbox(workerWindow);
|
||||
// inject some functions from the window into the sandbox.
|
||||
// postMessage so the async code in the sandbox can report a result.
|
||||
sandbox.importFunction(workerWindow.postMessage, "postMessage");
|
||||
sandbox.importFunction(workerWindow.postMessage.bind(workerWindow), "postMessage");
|
||||
sandbox.importFunction(workerWindow.XMLHttpRequest, "XMLHttpRequest");
|
||||
Cu.evalInSandbox(sandboxCode, sandbox, "1.8");
|
||||
}, true);
|
||||
|
Loading…
Reference in New Issue
Block a user