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

Unified Diff: LayoutTests/http/tests/serviceworker/request-end-to-end.html

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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/request-end-to-end-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/request-end-to-end.html
diff --git a/LayoutTests/http/tests/serviceworker/request-end-to-end.html b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
index 0c05233edb208d9371290e4a8ceef98fd3fce67b..1d4dc61bc3cc2ee848e385cb80c5e6bcdc13f097 100644
--- a/LayoutTests/http/tests/serviceworker/request-end-to-end.html
+++ b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
@@ -45,6 +45,8 @@ t.step(function() {
'request.url should be passed to onfetch event.');
assert_equals(event.data.method, 'GET',
'request.method should be passed to onfetch event.');
+ assert_equals(event.data.referrer, location.href,
+ 'request.referrer should be passed to onfetch event.');
assert_equals(event.data.headers['user-agent'], navigator.userAgent,
'User-Agent header should be passed to onfetch event.')
service_worker_unregister_and_done(t, scope);
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/resources/request-end-to-end-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698