Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
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>