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

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

Issue 399543002: [ServiceWorker] Make fetch() method better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated falken's comment 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..03c3f004b23779c95e19d8f292773e83b594cb80
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html
@@ -0,0 +1,15 @@
+<script>
+// Set authentication info
+window.addEventListener("message", function(evt) {
+ var port = evt.ports[0];
+ var xhr = new XMLHttpRequest();
+ xhr.addEventListener('load', function() {
+ port.postMessage({msg: 'LOGIN FINISHED'});
+ }, false);
+ xhr.open('GET',
+ './fetch-access-control.php?Auth',
+ true,
+ evt.data.username, evt.data.password);
+ xhr.send();
+ }, false);
+</script>

Powered by Google App Engine
This is Rietveld 408576698