Repository navigation
Added some same-origin-domain checks - #15478
asajeffrey wants to merge 5 commits into
Conversation
|
Heads up! This PR modifies the following files:
|
|
cc @jdm @cbrewster |
Ms2ger
left a comment
There was a problem hiding this comment.
I'm not convinced it's a good idea to land this until we actually have document.domain, and I can tell you to write tests for each and every change here.
| fn GetContentDocument(&self) -> Option<Root<Document>> { | ||
| self.get_content_window().map(|window| window.Document()) | ||
| // Step 1. | ||
| if let Some(pipeline_id) = self.pipeline_id.get() { |
There was a problem hiding this comment.
Early returns would be better here.
|
I updated the test expectations (d6e2792). Summary:
@Ms2ger: with these updates to the test expectations, are you okay with this PR going ahead without |
d7d00a2 to
583a7dd
Compare
|
Updated #15438. |
|
@Ms2ger ping? |
583a7dd to
92d220b
Compare
|
Rebased. |
|
☔ The latest upstream changes (presumably #15588) made this pull request unmergeable. Please resolve the merge conflicts. |
92d220b to
b07d2dc
Compare
|
Fixed a bug which was causing |
|
☔ The latest upstream changes (presumably #15438) made this pull request unmergeable. Please resolve the merge conflicts. |
d91b63a to
26ea806
Compare
|
☔ The latest upstream changes (presumably #14962) made this pull request unmergeable. Please resolve the merge conflicts. |
WIP: blob:http://foo.com/ is same-origin with http://foo.com/.
26ea806 to
1d8d6ac
Compare
|
Conversation with @jdm on irc: http://logs.glob.uno/?c=mozilla%23servo&s=24+Feb+2017&e=24+Feb+2017#c619500 TL;DR: merge this PR with #15536. |
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 -->
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 -->
Implement cross-thread postMessage <!-- Please describe your changes on the following line: --> This PR implements cross-thread postMessage, It builds on #15438 and #15478, 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] 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/15679) <!-- Reviewable:end -->
This PR adds some same-origin-domain checks, replacing some same-origin checks. This will make a difference once we support setting document.domain.
This PR builds on #15438, only the last commit is part of this PR.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is