Auto merge of #15799 - asajeffrey:script-window-xorigin-parent, r=nox

Implement dissimilar-origin window.parent and window.top

<!-- Please describe your changes on the following line: -->

This PR implements `window.parent` and `window.top` for dissimilar-origin windows.

This PR builds on #15536, only the last commit is part of this PR.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14996 and fix #11660.
- [X] These changes do not require tests because there's already a parentage test in `mozilla/cross-origin-objects/cross-origin-objects.html`.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/15799)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-03-17 09:18:38 -07:00 committed by GitHub
commit 0a3b373a6a
9 changed files with 207 additions and 87 deletions

View file

@ -1,6 +0,0 @@
[navigation_unload_data_url.html]
type: testharness
expected: TIMEOUT
[Same-origin navigation started from unload handler]
expected: TIMEOUT

View file

@ -1,6 +1,5 @@
[origin-of-data-document.html]
type: testharness
expected: TIMEOUT
[The origin of a 'data:' document in a frame is opaque.]
expected: TIMEOUT
expected: FAIL

View file

@ -1,5 +0,0 @@
[cross-origin-objects.html]
type: testharness
[Parentage of cross-origin windows]
expected: FAIL