Sign in
webkit
/
WebKit
/
a659cc2560ef03ca74fc359443f5a95cd40bafd1
/
.
/
LayoutTests
/
imported
/
blink
/
http
/
tests
/
security
/
resources
/
postmessage-document-origin.html
blob: 8196305fdf5107b4c581d40f8386dcfcc3014308 [
file
] [
log
] [
blame
]
<script>
// Respond to any message by sending the messenger back with the document's
// origin.
window
.
addEventListener
(
'message'
,
function
(
e
)
{
event
.
source
.
postMessage
({
'origin'
:
self
.
origin
,
'id'
:
e
.
data
.
id
},
e
.
origin
);
});
</script>