Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/modules/dedicated-worker-blob-url-sandboxed-iframe.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<title>Module workers from blob URLs in a sandboxed iframe with an opaque origin</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe id="sandboxed-iframe" sandbox="allow-scripts" style="display: none"></iframe>
<script>
const frame = document.querySelector('#sandboxed-iframe');
frame.srcdoc = '<!doctype html>\n<meta charset="utf-8">\n' +
'<script src="/resources/testharness.js"></' + 'script>\n' +
'<script src="dedicated-worker-blob-url.window.js"></' + 'script>\n';
fetch_tests_from_window(frame.contentWindow);
</script>