Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
LayoutTests
/
http
/
wpt
/
service-workers
/
mac
/
throttleable-worker.js
blob: ce7855f7120ab5e11d2d8274663252eb54c656af [
file
] [
log
] [
blame
]
onactivate
=
(
e
)
=>
e
.
waitUntil
(
clients
.
claim
());
function
checkThrottleable
(
event
)
{
event
.
source
.
postMessage
(
self
.
internals
?
self
.
internals
.
isThrottleable
:
"needs internals"
);
}
self
.
addEventListener
(
"message"
,
checkThrottleable
);