diff options
Diffstat (limited to 'dom/workers/test/serviceworkers/match_all_advanced_worker.js')
-rw-r--r-- | dom/workers/test/serviceworkers/match_all_advanced_worker.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/workers/test/serviceworkers/match_all_advanced_worker.js b/dom/workers/test/serviceworkers/match_all_advanced_worker.js new file mode 100644 index 000000000..3721aedfe --- /dev/null +++ b/dom/workers/test/serviceworkers/match_all_advanced_worker.js @@ -0,0 +1,5 @@ +onmessage = function(e) { + self.clients.matchAll().then(function(clients) { + e.source.postMessage(clients.length); + }); +} |