| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-worker.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-worker.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c45866fc58b1333dd3ed18f499fa7e9ab3de9b76
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-worker.js
|
| @@ -0,0 +1,10 @@
|
| +self.addEventListener('fetch', event => {
|
| + if (!event.request.url.match(/body-stream-with-invalid-chunk$/))
|
| + return;
|
| + const stream = new ReadableStream({start: controller => {
|
| + // The argument is intentionally a string, not a Uint8Array.
|
| + controller.enqueue('hello');
|
| + }});
|
| + const headers = { 'x-content-type-options': 'nosniff' };
|
| + event.respondWith(new Response(stream, { headers }));
|
| + });
|
|
|