Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / fetch-event-respond-with-stops-propagation-worker.js
blob18da049d69f4fbf94dca596a3de8139dfc5cc1f9
1 var result = null;
3 self.addEventListener('message', function(event) {
4     event.data.port.postMessage(result);
5   });
7 self.addEventListener('fetch', function(event) {
8     if (!result)
9       result = 'PASS';
10     event.respondWith(new Response());
11   });
13 self.addEventListener('fetch', function(event) {
14     result = 'FAIL: fetch event propagated';
15   });