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

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

Issue 2452833004: Fix flaky SW registration in PushMessaging/BudgetManager browser tests (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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 f32068849a8fb2b3995e84fd895d82133efc97a0..53cc8bcf8312330dbb34fe9dcbe2104086f1dcc7 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());
+
var pushSubscriptionOptions = {
userVisibleOnly: true
};

Powered by Google App Engine
This is Rietveld 408576698