summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/resources/clients-matchall-on-evaluation-worker.js
blob: f1559aca39b6d4ff079cff9f41bae3409062ff09 (plain)
1
2
3
4
5
6
7
8
9
10
11
importScripts('test-helpers.sub.js');

var page_url = normalizeURL('../clients-matchall-on-evaluation.https.html');

self.clients.matchAll({includeUncontrolled: true})
  .then(function(clients) {
      clients.forEach(function(client) {
          if (client.url == page_url)
            client.postMessage('matched');
        });
    });