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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-preload/chromium/resources/preload-response-after-gc-worker.js

Issue 2764293002: Add LayoutTests for the fixed multithread GC bug of ServiceWorker Navigation Preload (Closed)
Patch Set: incorporated falken's comment Created 3 years, 9 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
2 self.addEventListener('activate', e => {
3 e.waitUntil(self.registration.navigationPreload.enable());
4 });
5
6 self.addEventListener('fetch', e => {
7 internals.collectGarbage();
8 // Sleeps 100 ms.
9 var end = Date.now() + 100;
10 while (Date.now() < end);
11 e.respondWith(new Response("hello"));
12 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698