Auto merge of #15536 - asajeffrey:script-document-domain-setter, r=nox

Implement setter for document.domain

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

This PR implements the setter for `document.domain`.

It builds on #15438 and #15478, only the last commit is part of this PR.

It includes tests for similar-origin security checks.

---
<!-- 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 #934.
- [X] There are tests for these changes.

<!-- 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/15536)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-03-15 08:35:41 -07:00 committed by GitHub
commit e600e0495c
104 changed files with 413 additions and 1057 deletions

View file

@ -1,8 +1,5 @@
[interfaces.html]
type: testharness
[Document interface: attribute domain]
expected: FAIL
[Document interface: attribute dir]
expected: FAIL