Sign in
chromium
/
chromium
/
src
/
4b7f2d40ed547f844c3b42b712f035e90357e1e5
/
.
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
security
/
resources
/
postmessage-document-origin.html
blob: e0f6727ccecf52359d127f878a460c4fefc5f1e3 [
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'
:
document
.
origin
,
'id'
:
e
.
data
.
id
},
e
.
origin
);
});
</script>