11cb0ef41Sopenharmony_ci<!doctype html>
21cb0ef41Sopenharmony_ci<meta charset="utf-8">
31cb0ef41Sopenharmony_ci<title>FileAPI Test: Verify behavior of Blob URL in unique origins</title>
41cb0ef41Sopenharmony_ci<meta name="timeout" content="long">
51cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script>
61cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script>
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ci<iframe id="sandboxed-iframe" sandbox="allow-scripts"></iframe>
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci<script>
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_ciconst iframe_scripts = [
131cb0ef41Sopenharmony_ci  'resources/fetch-tests.js',
141cb0ef41Sopenharmony_ci  'url-format.any.js',
151cb0ef41Sopenharmony_ci  'url-in-tags.window.js',
161cb0ef41Sopenharmony_ci  'url-with-xhr.any.js',
171cb0ef41Sopenharmony_ci  'url-with-fetch.any.js',
181cb0ef41Sopenharmony_ci];
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_cilet html = '<!doctype html>\n<meta charset="utf-8">\n<body>\n';
211cb0ef41Sopenharmony_cihtml = html + '<script src="/resources/testharness.js"></' + 'script>\n';
221cb0ef41Sopenharmony_cihtml = html + '<script>setup({"explicit_timeout": true});</' + 'script>\n';
231cb0ef41Sopenharmony_cifor (const script of iframe_scripts)
241cb0ef41Sopenharmony_ci  html = html + '<script src="' + script + '"></' + 'script>\n';
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ciconst frame = document.querySelector('#sandboxed-iframe');
271cb0ef41Sopenharmony_ciframe.setAttribute('srcdoc', html);
281cb0ef41Sopenharmony_ciframe.setAttribute('style', 'display:none;');
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_cifetch_tests_from_window(frame.contentWindow);
311cb0ef41Sopenharmony_ci
321cb0ef41Sopenharmony_ci</script>
33