Skip to content

Commit

Permalink
Backed out changesets 772945b1130d, cb83b6efa9ea, and 5f23080673ee (bug
Browse files Browse the repository at this point in the history
1086999) for Gaia context_menu_test.js failures.

CLOSED TREE
  • Loading branch information
rvandermeulen authored and jgraham committed Apr 2, 2015
1 parent 950916c commit b47edf2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions content-security-policy/script-src/buildInlineWorker.js
@@ -1,20 +1,20 @@
(function ()
{
var test = new async_test("test inline worker");
var workerSource = document.getElementById('inlineWorker');

var blob = new Blob([workerSource.textContent]);

// can I create a new script tag like this? ack...
var url = window.URL.createObjectURL(blob);

try {
var worker = new Worker(url);
}
catch (e) {
done();
}
var worker = new Worker(url);

worker.addEventListener('message', function(e) {
assert_unreached("script ran");
test.step(function () {
assert_not_equals(e.data, 'fail', 'inline script ran');
test.done();
})
}, false);

worker.postMessage('');
Expand Down

0 comments on commit b47edf2

Please sign in to comment.