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 upImplement meta referrer policy delivery #11238
Conversation
highfive
commented
May 17, 2016
|
Heads up! This PR modifies the following files: |
|
Notes:
|
|
You can add the referrer-policy directory to the list of ignored directories in |
highfive
commented
May 18, 2016
|
New code was committed to pull request. |
|
Tidy still isnt working on my local machine - did I add in the right place? |
|
Looks like there's only one error left, which is actually a valid one - we should remove the |
|
@jdm Are you reviewing this? Should I assign you? |
|
I can review this, but I am not at the moment. |
highfive
commented
May 19, 2016
|
New code was committed to pull request. |
|
|
|
fyi: './mach test-tidy --faster' does not work, './mach test-tidy' does. Not sure if that's just a local issue or some ignore getting skipped in --faster |
|
What's the output of --faster? |
|
|
|
I've started reviewing this. Could you start rebasing and squashing things together so that further reviews are simpler? Thanks in advance. -S-awaiting-review +S-needs-code-changes +S-needs-squash
|
|
@jdm: --faster does not seem to recognize the update in python/tidy/servo_tidy/tidy.py - it gives me all the formatting errors in the new tests at tests/wpt/mozilla/tests/mozilla/referrer-policy (folder isn't ignored) |
|
Review status: 4 of 153 files reviewed at latest revision, 16 unresolved discussions, some commit checks failed. components/net/http_loader.rs, line 570 [r30] (raw file):
|
|
@jdm @nox - re: the comment above about "same-origin" and the spec changing: should we change sources over to https://www.w3.org/TR/referrer-policy/ (vs https://w3c.github.io/webappsec-referrer-policy/)? |
|
Xml tests no longer work after addressing merge conflicts - I'll look into it. |
|
Great work rebasing and squashing this, must not have been easy. -S-awaiting-review -S-needs-squash +S-needs-code-changes
|
pkaminski
commented
May 23, 2016
|
components/script/dom/htmlmetaelement.rs, line 101 [r1] (raw file):
|
|
components/script/dom/htmlmetaelement.rs, line 101 [r1] (raw file):
|
highfive
commented
May 23, 2016
|
New code was committed to pull request. |
|
Latest change addresses the xml tests failing - reviewable comments haven't yet been addressed (feel free to remove S-awaiting-review) |
|
|
| t._expectedReferrerUrl, | ||
| "Reported Referrer URL is '" + | ||
| t._scenario.referrer_url + "'."); | ||
| //TODO - uncomment when can pull referrer |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Review status: 6 of 154 files reviewed at latest revision, 8 unresolved discussions, some commit checks failed. components/script/dom/htmlmetaelement.rs, line 98 [r1] (raw file):
|
| let element = self.upcast::<Element>(); | ||
| if let Some(content) = element.get_attribute(&ns!(), &atom!("content")).r() { | ||
| let content = content.value(); | ||
| let content_val = content.trim(); |
This comment has been minimized.
This comment has been minimized.
rebstar6
May 24, 2016
Author
Contributor
I don't like this double let, but "let content = content.value().trim();' throws "borrowed value does not live long enough."
Better way?
|
Reviewed 4 of 31 files at r2, 5 of 15 files at r7, 4 of 31 files at r17, 5 of 15 files at r22, 148 of 148 files at r37, 84 of 84 files at r38, 62 of 62 files at r39, 152 of 152 files at r40, 1 of 1 files at r41, 83 of 83 files at r42, 62 of 62 files at r43. components/script/dom/document.rs, line 2789 [r1] (raw file):
|
|
That does seem reasonable. |
|
Up to you guys! |
|
Great work! Please recreate the PR, I would rather review it from scratch now that things settled than use a very slow Reviewable UI. :) |
|
Superseded by #11422. |

rebstar6 commentedMay 17, 2016
•
edited by jdm
Thank you for contributing to Servo! Please replace each
[ ]by[X]when the step is complete, and replace__with appropriate data:./mach build -ddoes not report any errors./mach test-tidy --fasterdoes not report any errorsEither:
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
This change is