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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/request-worker.js

Issue 721103003: [ServiceWorker] Serialize request.referrer to "about:client" when it's client. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 1 month 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/request-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/request-worker.js b/LayoutTests/http/tests/serviceworker/resources/request-worker.js
index 947480eba18ae115c0be72029c766ddab63e58c5..26ad2621ce9b2eadc7649288c667b95b00f68312 100644
--- a/LayoutTests/http/tests/serviceworker/resources/request-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/request-worker.js
@@ -22,8 +22,8 @@ test(function() {
assert_equals(request.url, URL, 'Request.url should match');
assert_equals(request.method, 'GET', 'Request.method should match');
- assert_equals(request.referrer, location.href,
- 'Request.referrer should match');
+ assert_equals(request.referrer, 'about:client',
+ 'Request.referrer should be about:client');
assert_true(request.headers instanceof Headers,
'Request.headers should be Headers');

Powered by Google App Engine
This is Rietveld 408576698