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

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

Issue 291263002: ServiceWorker: Strip fragment from scope and script URLs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make normalizeURL remove fragment Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15ee080b1bf4d464274b49ec3524c77557b98900..0e50c41598a0cbfc395f8ec4c0d3acd76947d5a5 100644
--- a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
+++ b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
@@ -58,5 +58,5 @@ function with_iframe(url, f) {
}
function normalizeURL(url) {
- return new URL(url, document.location).toString();
+ return new URL(url, document.location).toString().replace(/#.*$/, '');
}
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/serviceworkerobject-scope.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698