<!DOCTYPE html><metacharset="utf-8"><title>Tests for importScripts: cross-origin</title><scriptsrc="/resources/testharness.js"></script><scriptsrc="/resources/testharnessreport.js"></script><scriptsrc="resources/test-helpers.sub.js"></script><body><script>promise_test(asynct=>{constscope='resources/import-scripts-cross-origin';awaitservice_worker_unregister(t,scope);letreg=awaitnavigator.serviceWorker.register('resources/import-scripts-cross-origin-worker.sub.js',{scope:scope});t.add_cleanup(_=>reg.unregister());assert_not_equals(reg.installing,null,'worker is installing');},'importScripts() supports cross-origin requests');</script></body>