diff options
Diffstat (limited to 'dom/workers/test/serviceworkers/match_all_worker.js')
-rw-r--r-- | dom/workers/test/serviceworkers/match_all_worker.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/workers/test/serviceworkers/match_all_worker.js b/dom/workers/test/serviceworkers/match_all_worker.js new file mode 100644 index 000000000..9d1c8c363 --- /dev/null +++ b/dom/workers/test/serviceworkers/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(); +} |