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:
- /storage-access-api/storage-access-beyond-cookies.BlobURLDedicatedWorker.sub.https.tentative.window.html - WPT Dashboard Interop Dashboard
// 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 DedicatedWorker 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 that if the third-party context creates a blob URL using the StorageAccessHandle and sends it to the dedicated worker, the dedicated worker fetch succeeds.");