Auto merge of #22514 - jdm:source, 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 -->
This commit is contained in:
bors-servo 2019-01-07 22:19:45 -05:00 committed by GitHub
commit 11d1184663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
919 changed files with 2736 additions and 1905 deletions

View file

@ -12,6 +12,3 @@
[document.open should throw a SecurityError with cross-origin document even when the ignore-opens-during-unload counter is greater than 0 (during pagehide event)]
expected: FAIL
[document.open should throw a SecurityError with cross-origin document even when there is an active parser executing script]
expected: FAIL

View file

@ -9,6 +9,3 @@
[document.open should throw an InvalidStateError with XML document even when the ignore-opens-during-unload counter is greater than 0 (during pagehide event)]
expected: FAIL
[document.open should throw an InvalidStateError with XML document even when there is an active parser executing script]
expected: FAIL

View file

@ -1,4 +0,0 @@
[bailout-side-effects-synchronous-script.window.html]
[document.open bailout should not have any side effects (active parser whose script nesting level is greater than 0)]
expected: FAIL