From 4bd10f70b12d257141c3994a6bca9633731417da Mon Sep 17 00:00:00 2001
From: Ian Hickson 10.4.3 Posting messages
send the message to the target regardless of origin, set the
target origin to "*
". To restrict the
message to same-origin targets only, without needing to explicitly
- state the origin, pass the window.location
object.
/
".
Throws an INVALID_STATE_ERR
if the ports array is not null and it contains either null
entries or duplicate ports.
If the value of the targetOrigin argument
- is neither a single U+002A ASTERISK character (*) nor an
- absolute URL, then throw a SYNTAX_ERR
- exception and abort the overall set of steps.
SYNTAX_ERR
exception and abort the overall
+ set of steps.
If the targetOrigin argument is a single
+ literal U+002F SOLIDUS character (/), and the
+ Document
of the Window
object on which
+ the method was invoked does not have the same origin
+ as the entry script's document, then abort these steps silently.
Otherwise, if the targetOrigin argument is
an absolute URL, and the Document
of the
Window
object on which the method was invoked does
diff --git a/index b/index
index dd346a33c93..b793094c0d6 100644
--- a/index
+++ b/index
@@ -69611,7 +69611,7 @@ function receiver(e) {
send the message to the target regardless of origin, set the
target origin to "*
". To restrict the
message to same-origin targets only, without needing to explicitly
- state the origin, pass the window.location
object.
/
".
Throws an INVALID_STATE_ERR
if the ports array is not null and it contains either null
entries or duplicate ports.
If the value of the targetOrigin argument
- is neither a single U+002A ASTERISK character (*) nor an
- absolute URL, then throw a SYNTAX_ERR
- exception and abort the overall set of steps.
SYNTAX_ERR
exception and abort the overall
+ set of steps.
If the targetOrigin argument is a single
+ literal U+002F SOLIDUS character (/), and the
+ Document
of the Window
object on which
+ the method was invoked does not have the same origin
+ as the entry script's document, then abort these steps silently.
Otherwise, if the targetOrigin argument is
an absolute URL, and the Document
of the
Window
object on which the method was invoked does
diff --git a/source b/source
index 192bb817421..fd084435975 100644
--- a/source
+++ b/source
@@ -82572,8 +82572,8 @@ function receiver(e) {
send the message to the target regardless of origin, set the
target origin to "*
". To restrict the
message to same-origin targets only, without needing to explicitly
- state the origin, pass the window.location
object.
/
".
Throws an INVALID_STATE_ERR
if the ports array is not null and it contains either null
@@ -82609,9 +82609,10 @@ function receiver(e) {
If the value of the targetOrigin argument
- is neither a single U+002A ASTERISK character (*) nor an
- absolute URL, then throw a SYNTAX_ERR
- exception and abort the overall set of steps.
SYNTAX_ERR
exception and abort the overall
+ set of steps.
If the targetOrigin argument is a single
+ literal U+002F SOLIDUS character (/), and the
+ Document
of the Window
object on which
+ the method was invoked does not have the same origin
+ as the entry script's document, then abort these steps silently.
Otherwise, if the targetOrigin argument is
an absolute URL, and the Document
of the
Window
object on which the method was invoked does