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

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

Issue 822593003: ServiceWorker: Expose registration within ServiceWorkerGlobalScope [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@expose_swreg
Patch Set: address falken@'s comment Created 5 years, 11 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 dda9a69e3fc65fc2fd2442476ee491d531f4bbbf..ee960e50cc5c93ab583044c1ef9f284815bf10fe 100644
--- a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
+++ b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
@@ -63,7 +63,7 @@ function unload_iframe(iframe) {
}
function normalizeURL(url) {
- return new URL(url, document.location).toString().replace(/#.*$/, '');
+ return new URL(url, self.location).toString().replace(/#.*$/, '');
}
function wait_for_update(test, registration) {

Powered by Google App Engine
This is Rietveld 408576698