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

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 yhirano'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..9750c6a0fc09fc33192c1464d4259436a8fd287d
--- /dev/null
+++ b/LayoutTests/http/tests/serviceworker/resources/fetch-access-control-login.html
@@ -0,0 +1,14 @@
+<script>
+// Set authentication info to http://localhost:8000 username2/password2
+var xhr = new XMLHttpRequest();
+xhr.addEventListener('load', function() {
+ window.parent.postMessage(
+ {msg: 'LOGIN FINISHED'},
+ 'http://127.0.0.1:8000/serviceworker/fetch-access-control.html');
+}, false);
+xhr.open('GET',
+ 'http://localhost:8000/serviceworker/resources/fetch-access-control.php?Auth',
+ true,
+ 'username2', 'password2');
+xhr.send();
+</script>

Powered by Google App Engine
This is Rietveld 408576698