| Index: LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| diff --git a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| index bce1613150332dc92f7e40991d31329740e109e4..4889f547ffc361c79ed928d8663a3dbcc4f9d3fb 100644
|
| --- a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| +++ b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
|
| @@ -199,9 +199,9 @@ function wait_for_activated(test, registration) {
|
| };
|
|
|
| function service_worker_test(url, description) {
|
| - var scope = window.location.origin + '/service-worker-scope' +
|
| + var scope = new URL('./', new URL(url, window.location)) +
|
| + 'resources/service-worker-scope' +
|
| window.location.pathname;
|
| -
|
| var test = async_test(description);
|
| var registration;
|
| service_worker_unregister_and_register(test, url, scope)
|
|
|