Repository navigation
Implement source for postMessage events - #22514
Conversation
|
Error syncing changes upstream. Logs saved in error-snapshot-1545341457705. |
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try=wpt |
Implement source for postMessage events This should allow tests that check the event.source property to run correctly. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22499 and fix #12715. - [x] There are tests for these changes
|
💔 Test failed - status-taskcluster |
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#14634. |
| rooted!(in(scope.get_cx()) let mut message = UndefinedValue()); | ||
| data.read(scope.upcast(), message.handle_mut()); | ||
| MessageEvent::dispatch_jsval(target, scope.upcast(), message.handle(), None); | ||
| MessageEvent::dispatch_jsval(target, scope.upcast(), message.handle(), None, None); |
There was a problem hiding this comment.
Some day we're gonna have to use the builder pattern for this :)
|
@bors-servo try=wpt |
Implement source for postMessage events Also make similar-origin iframes access their newly loaded document as soon as the new document is created. This should allow tests that check the event.source property to run correctly. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22499 and fix #12715 and fix #22514. - [x] There are tests for these changes <!-- 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/22514) <!-- Reviewable:end -->
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#14634. |
|
💔 Test failed - status-taskcluster |
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#14634. |
|
@bors-servo try=wpt |
Implement source for postMessage events Also make similar-origin iframes access their newly loaded document as soon as the new document is created. This should allow tests that check the event.source property to run correctly. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22499 and fix #12715 and fix #22514. - [x] There are tests for these changes <!-- 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/22514) <!-- Reviewable:end -->
|
I feel so much better about the referrer-policy tests now. |
|
r? @Manishearth |
Implement source for postMessage events Also make similar-origin iframes access their newly loaded document as soon as the new document is created. This should allow tests that check the event.source property to run correctly. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22499 and fix #12715 and fix #22514. - [x] There are tests for these changes <!-- 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/22514) <!-- Reviewable:end -->
|
oops, I found Travis is complaining about tidy Diff in /home/travis/build/servo/servo/components/script/script_thread.rs at line 2110:
return warn!(
"postMessage after source pipeline {} closed.",
source_pipeline_id,
- )
+ );
},
Some(source) => source,
};
Run `./mach fmt` to fix the formatting |
…oon as the child document begins parsing.
|
Thanks for noticing! |
|
📌 Commit 8ff0c41 has been approved by |
Implement source for postMessage events Also make similar-origin iframes access their newly loaded document as soon as the new document is created. This should allow tests that check the event.source property to run correctly. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22499 and fix #12715 and fix #22514. - [x] There are tests for these changes <!-- 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/22514) <!-- Reviewable:end -->
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#14634. |
|
☀️ Test successful - android-mac, arm32, arm64, linux-rel-css, linux-rel-wpt, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster |
|
Error syncing changes upstream. Logs saved in error-snapshot-1546923619003. |
I found web-platform-tests/wpt#14634 is not merged but the labels are removed 🤔 |
|
Merged upstream manually in web-platform-tests/wpt#14634. |
Also make similar-origin iframes access their newly loaded document as soon as the new document is created. This should allow tests that check the event.source property to run correctly.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is