Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/test-helpers.js

Issue 674133004: [ServiceWorker] Introduce the directory restriction of ServiceWorker scope [1/3 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/scope-default.html Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698