| Index: LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js
|
| diff --git a/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js b/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..78b53dfcba469c9ed5315b381a1b874a2c3a0575
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js
|
| @@ -0,0 +1,12 @@
|
| +self.addEventListener('fetch', function(event) {
|
| + var url = event.request.url;
|
| + if (url.indexOf('dummy?test') == -1) {
|
| + return;
|
| + }
|
| + event.respondWith(new Promise(function(resolve) {
|
| + var headers = new Headers;
|
| + headers.append('foo', 'foo');
|
| + headers.append('foo', 'bar');
|
| + resolve(new Response('hello world', {'headers': headers}));
|
| + }));
|
| +});
|
|
|