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 upImplement source for postMessage events #22514
Conversation
|
Error syncing changes upstream. Logs saved in error-snapshot-1545341457705. |
highfive
commented
Dec 20, 2018
|
Heads up! This PR modifies the following files:
|
highfive
commented
Dec 20, 2018
|
@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
|
|
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#14634. |
| @@ -424,7 +424,7 @@ impl DedicatedWorkerGlobalScope { | |||
| JSAutoCompartment::new(scope.get_cx(), scope.reflector().get_jsobject().get()); | |||
| 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); | |||
This comment has been minimized.
This comment has been minimized.
|
@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. |
|
|
|
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 |
|
@bors-servo retry |
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 |
|
Thanks for noticing! |
|
|
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. |
|
|
|
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. |
jdm commentedDec 20, 2018
•
edited
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