summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/match_all_worker.js
blob: 99b11c850d6bf798cf33ec3fe60742e4e18c7db8 (plain)
1
2
3
4
5
6
7
8
9
10
function loop() {
  self.clients.matchAll().then(function (result) {
    setTimeout(loop, 0);
  });
}

onactivate = function (e) {
  // spam matchAll until the worker is closed.
  loop();
};