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

Unified Diff: LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html

Issue 416353002: [ServiceWorker] Add test for cookies of fetch() in ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 | « LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html
diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html
index 03c3f004b23779c95e19d8f292773e83b594cb80..38942048c5dcbfbd574236e43d09adf6a5f787fa 100644
--- a/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html
@@ -2,6 +2,7 @@
// Set authentication info
window.addEventListener("message", function(evt) {
var port = evt.ports[0];
+ document.cookie = 'cookie=' + evt.data.username;
var xhr = new XMLHttpRequest();
xhr.addEventListener('load', function() {
port.postMessage({msg: 'LOGIN FINISHED'});
« no previous file with comments | « LayoutTests/http/tests/serviceworker/resources/fetch-access-control.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698