Sign in
webkit
/
WebKit
/
8080f6fee45a125d4786642fbf1a845df358d5c0
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
eventsource
/
dedicated-worker
/
eventsource-constructor-non-same-origin.js
blob: 5ec25a0678ce3a4153d5c8998ac0bd8a9f54f44b [
file
] [
log
] [
blame
]
try
{
var
url
=
decodeURIComponent
(
location
.
hash
.
substr
(
1
))
var
source
=
new
EventSource
(
url
)
source
.
onerror
=
function
(
e
)
{
postMessage
([
true
,
this
.
readyState
,
'data'
in e
])
this
.
close
();
}
}
catch
(
e
)
{
postMessage
([
false
,
String
(
e
)])
}