diff options
Diffstat (limited to 'dom/serviceworkers/test/match_all_worker.js')
-rw-r--r-- | dom/serviceworkers/test/match_all_worker.js | 10 |
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..3eddbe1191 --- /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(); +}; |