// META: global=sharedworker,dedicatedworker importScripts("/resources/testharness.js") importScripts("/common/get-host-info.sub.js") importScripts("../../resources/test-initiator.js") importScripts("../../resources/loading-resource-lib.js") const label = "initiator_url_posttask_worker"; const resource = "/images/blue.png?"+label; const hostInfo = get_host_info(); const expectedInitiatorUrl = hostInfo["ORIGIN"] + "/resource-timing/tentative/initiator-url/post-task.any.worker.js"; scheduler.postTask(function() {fetch_in_function(resource)}); initiator_url_test(resource, expectedInitiatorUrl, resource + " initiatorUrl from postTask() in worker thread", resource + " timeout");