diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-07-15 11:25:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-15 11:25:43 -0700 |
commit | b382cc2103180f7dfd8df9c34970a95ed57a2d88 (patch) | |
tree | 9432deeb4df88f845eb8918caa2d350ef8bababb /components/script/parse/html.rs | |
parent | 175340d1461c3474b49f88131b84298b8d097d36 (diff) | |
parent | bfda32ea0076d29788b39634e95ca7517315dceb (diff) | |
download | servo-b382cc2103180f7dfd8df9c34970a95ed57a2d88.tar.gz servo-b382cc2103180f7dfd8df9c34970a95ed57a2d88.zip |
Auto merge of #12441 - aravind-pg:referrer-pol-header, r=jdm
Implement referrer policy delivery by header
Adds a new `Option<ReferrerPolicy>` field to Document and sets it appropriately in `ScriptThread::load` if a Referrer-Policy header is present.
r? @jdm
<!-- 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 #11860
- [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/12441)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r-- | components/script/parse/html.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs index e1109cfc008..659772b851b 100644 --- a/components/script/parse/html.rs +++ b/components/script/parse/html.rs @@ -280,7 +280,7 @@ pub fn parse_html_fragment(context_node: &Node, None, None, DocumentSource::FromParser, loader, - None); + None, None); // Step 2. document.set_quirks_mode(context_document.quirks_mode()); |