Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Issue 2278823004: Stop supporting legacy keywords in Referrer-Policy header (Closed)

Created:
4 years, 3 months ago by estark
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kenneth.christiansen, kinuko+watch, loading-reviews+parser_chromium.org, rwlbuis, sof, Yoav Weiss
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop supporting legacy keywords in Referrer-Policy header https://github.com/w3c/webappsec-referrer-policy/pull/66 removed support for legacy keywords in the Referrer-Policy header. There is no need to support these legacy keywords because the Referrer-Policy header is brand new (not shipped yet) and there is no legacy usage. In the course of implementing this, I realized that we do in fact support legacy keywords for 'referrerpolicy' content attributes. This is not necessary per the spec, but I left it as-is since we should measure usage before removing support for legacy keywords in 'referrerpolicy' attributes. BUG=641128 Committed: https://crrev.com/9517b0e7af83a9c482e1a02dd8c31d146caf9b37 Cr-Commit-Position: refs/heads/master@{#414903}

Patch Set 1 : rebase #

Patch Set 2 : fix comment #

Total comments: 2

Patch Set 3 : jochen comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -71 lines) Patch
M net/url_request/url_request_job.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M net/url_request/url_request_job_unittest.cc View 3 chunks +14 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/referrer-policy-invalid-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-always.php View 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-default.php View 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-never.php View 2 chunks +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/legacy-origin-when-crossorigin.php View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentTest.cpp View 1 chunk +23 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMetaElement-in.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityPolicy.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp View 1 2 3 chunks +38 lines, -22 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
estark
mmenke: can you please review net/url_request? jochen: can you please review the Blink changes? Thanks!
4 years, 3 months ago (2016-08-25 22:40:44 UTC) #7
mmenke
On 2016/08/25 22:40:44, estark wrote: > mmenke: can you please review net/url_request? > jochen: can ...
4 years, 3 months ago (2016-08-25 22:43:13 UTC) #9
jochen (gone - plz use gerrit)
lgtm with nit https://codereview.chromium.org/2278823004/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp File third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp (right): https://codereview.chromium.org/2278823004/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp#newcode61 third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp:61: static bool referrerPolicyFromStringImpl(const String& policy, bool ...
4 years, 3 months ago (2016-08-26 15:07:35 UTC) #12
estark
Thanks both. https://codereview.chromium.org/2278823004/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp File third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp (right): https://codereview.chromium.org/2278823004/diff/40001/third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp#newcode61 third_party/WebKit/Source/platform/weborigin/SecurityPolicy.cpp:61: static bool referrerPolicyFromStringImpl(const String& policy, bool supportLegacyKeywords, ...
4 years, 3 months ago (2016-08-26 16:23:44 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278823004/60001
4 years, 3 months ago (2016-08-26 16:24:21 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/285611)
4 years, 3 months ago (2016-08-26 18:58:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278823004/60001
4 years, 3 months ago (2016-08-27 00:55:38 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-08-27 10:50:07 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-08-27 10:52:10 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9517b0e7af83a9c482e1a02dd8c31d146caf9b37
Cr-Commit-Position: refs/heads/master@{#414903}

Powered by Google App Engine
This is Rietveld 408576698