summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/match_all_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/serviceworkers/test/match_all_worker.js')
-rw-r--r--dom/serviceworkers/test/match_all_worker.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/serviceworkers/test/match_all_worker.js b/dom/serviceworkers/test/match_all_worker.js
new file mode 100644
index 0000000000..99b11c850d
--- /dev/null
+++ b/dom/serviceworkers/test/match_all_worker.js
@@ -0,0 +1,10 @@
+function loop() {
+ self.clients.matchAll().then(function (result) {
+ setTimeout(loop, 0);
+ });
+}
+
+onactivate = function (e) {
+ // spam matchAll until the worker is closed.
+ loop();
+};