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

Unified Diff: chrome/test/data/push_messaging/service_worker.js

Issue 2452833004: Fix flaky SW registration in PushMessaging/BudgetManager browser tests (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/push_messaging/push_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/push_messaging/service_worker.js
diff --git a/chrome/test/data/push_messaging/service_worker.js b/chrome/test/data/push_messaging/service_worker.js
index 15332d4478714b08199296d3cfb0f2686f81d92a..0e134855652b0d9035a39de5fed5584612bddb8b 100644
--- a/chrome/test/data/push_messaging/service_worker.js
+++ b/chrome/test/data/push_messaging/service_worker.js
@@ -6,6 +6,9 @@
// which would affect the scope of the importScripts call here.
self.importScripts('/push_messaging/push_constants.js');
+// Don't wait for clients of old SW to close before activating.
+self.addEventListener('install', () => skipWaiting());
+
// The "onpush" event currently understands two values as message payload
// data coming from the test. Any other input is passed through to the
// document unchanged.
« no previous file with comments | « chrome/test/data/push_messaging/push_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698