Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / fetch-request-fallback-worker.js
blobaeb63eab8c70db6280b40f58e31bb5a3f7e7f263
1 // TODO(horo): Service worker can be killed at some point during the test. So we
2 // should use storage API instead of this global variable.
3 var requests = [];
5 self.addEventListener('message', function(event) {
6     event.data.port.postMessage({requests: requests});
7     requests = [];
8   });
10 self.addEventListener('fetch', function(event) {
11     requests.push({
12         url: event.request.url,
13         mode: event.request.mode
14       });
15   });