Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse incumbent settings object's origin in Window.postMessage #15291
Conversation
highfive
commented
Jan 29, 2017
highfive
commented
Jan 29, 2017
|
Should be https://html.spec.whatwg.org/multipage/webappapis.html#concept-settings-object-origin, not the origin of Definitions are here:
Can we find a way to test this? |
|
I expect this to pass some WPT tests; let's see if that's true. @bors-servo try |
Use incumbent settings object's origin in Window.postMessage Fixes #12715. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15291) <!-- Reviewable:end -->
|
Also, stepping through the code, get_url() seems to return the url that is defined by the window's document object if the global is a window, not sure for the worker's case. |
|
@bors-servo retry |
Use incumbent settings object's origin in Window.postMessage Fixes #12715. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15291) <!-- Reviewable:end -->
|
|
|
Note that a document's origin is not the origin of it's url, necessarily. |
|
@bors-servo try |
be59557
to
c1a2c21
|
@bors-servo try |
Use incumbent settings object's origin in Window.postMessage Fixes #12715. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15291) <!-- Reviewable:end -->
|
|
|
We only have cross-origin window proxies right? So this change isn't observable, is it? |
|
Yeah, we should probably wait for @avadacatavra's XOW work. |
|
@asajeffrey said on IRC he is going to work on cross-origin proxies without waiting for XOWs. I'm confused about that. |
|
He's working on cross-reference thread coordination; similar-but-not-same-origin windows are sufficient here. |
|
In which case, it sounds like this change isn't desirable at this stage. |
KiChjang commentedJan 29, 2017
•
edited by larsbergstrom
Fixes #12715.
This change is