Sign in
webkit
/
WebKit
/
f2ca8478512b6b671ac07982ba0b14fb66e64924
/
.
/
LayoutTests
/
http
/
tests
/
workers
/
resources
/
worker-redirect-target.js
blob: e11e38c72cb4075108762bf31798541668113d4b [
file
] [
log
] [
blame
]
// Send "Foo" back to the parent page - script works for both shared and dedicated workers
if
(
self
.
postMessage
)
postMessage
(
"Foo"
);
else
self
.
onconnect
=
function
(
event
)
{
event
.
ports
[
0
].
postMessage
(
"Foo"
);
}