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

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: 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..4ef6b64fb60f1a62e3b30dfc295da3e5dee852ea 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, location).toString().replace(/#.*$/, '');
falken 2015/01/19 08:45:04 nit: self.location to be clear it's global
nhiroki 2015/01/20 11:10:07 Done.
}
function wait_for_update(test, registration) {

Powered by Google App Engine
This is Rietveld 408576698