Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-fallback-worker.js

Issue 2858933003: Upstream service worker `fetch` test to WPT (Closed)
Patch Set: Resolve conflict in `enable-blink-features=LayoutNG` Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 = [];
4
5 self.addEventListener('message', function(event) {
6 event.data.port.postMessage({requests: requests});
7 requests = [];
8 });
9
10 self.addEventListener('fetch', function(event) {
11 requests.push({
12 url: event.request.url,
13 mode: event.request.mode
14 });
15 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698