Sign in
webkit
/
WebKit
/
2c21f6d4a7b9870028fff176b6411b7892705071
/
.
/
LayoutTests
/
http
/
tests
/
workers
/
service
/
resources
/
getClientIds-worker.js
blob: 99dc1cb8221d0df8df0ceec7f5fa6b1083d73b18 [
file
] [
log
] [
blame
]
self
.
addEventListener
(
"message"
,
(
event
)
=>
{
source
=
event
.
source
;
clients
.
matchAll
({
includeUncontrolled
:
true
}).
then
(
function
(
clients
)
{
let ids
=
[];
for
(
let client of clients
)
ids
.
push
(
client
.
id
);
source
.
postMessage
(
ids
);
});
});