1 onactivate = function (e) {
4 match_count_before: -1,
6 message: "claim_worker_1",
11 .then(function (matched) {
13 result.match_count_before = matched.length;
16 return self.clients.claim();
18 .then(function (ret) {
19 result.resolve_value = ret;
20 return self.clients.matchAll();
22 .then(function (matched) {
24 result.match_count_after = matched.length;
25 for (i = 0; i < matched.length; i++) {
26 matched[i].postMessage(result);
28 if (result.match_count_after !== 2) {
29 dump("ERROR: claim_worker_1 failed to capture clients.\n");