| Index: LayoutTests/http/tests/security/resources/postmessage-document-origin.html
|
| diff --git a/LayoutTests/http/tests/security/resources/postmessage-document-origin.html b/LayoutTests/http/tests/security/resources/postmessage-document-origin.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e0f6727ccecf52359d127f878a460c4fefc5f1e3
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/resources/postmessage-document-origin.html
|
| @@ -0,0 +1,10 @@
|
| +<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>
|
|
|