| 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..0d1f168fe7db222ba19b09f34c8a85250d49f9d9
|
| --- /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>
|
|
|