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 upAdded some same-origin-domain checks #15478
Conversation
highfive
commented
Feb 9, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Feb 9, 2017
|
cc @jdm @cbrewster |
|
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() { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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
|
Updated #15438. |
|
@Ms2ger ping? |
583a7dd
to
92d220b
|
Rebased. |
|
|
92d220b
to
b07d2dc
|
Fixed a bug which was causing |
|
|
d91b63a
to
26ea806
|
|
26ea806
to
1d8d6ac
|
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 -->
asajeffrey commentedFeb 9, 2017
•
edited by larsbergstrom
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