Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test has a WPT meta file that expects 1 subtest issues.
  • This WPT test may be referenced by the following Test IDs:
// META: script=/resources/testdriver.js
// META: script=/resources/testdriver-vendor.js
'use strict';
async_test(t => {
// Set up a message listener that simply calls t.done() when a message is received.
window.addEventListener("message", t.step_func(e => {
if (e.data.type != "result") {
return;
}
assert_equals(e.data.message, "Blob URL SharedWorker tests completed successfully.");
t.done();
}));
// Create an iframe that's cross-site with top-frame.
const id = Date.now();
let iframe = document.createElement("iframe");
document.body.appendChild(iframe);
}, "Verify a blob URL created via URL.createObjectURL from the third-party context shouldn't be useable as the shared worker script when it's passed to saa_handle.SharedWorker.");