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

Issue 1253413003: Implement referrerpolicy attribute for anchor elements (Closed)

Created:
5 years, 4 months ago by estark
Modified:
5 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, Inactive, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, tyoshino+watch_chromium.org, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement referrerpolicy attribute for anchor elements The 'referrerpolicy' attribute controls the referrer for the outgoing request when an anchor is clicked. BUG=490608 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199997

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : ReflectOnly; runtime enabled feature; add test #

Patch Set 4 : add more tests #

Patch Set 5 : style fixes #

Patch Set 6 : rebase #

Patch Set 7 : add ReflectMissing and ReflectInvalid #

Patch Set 8 : test referrerpolicy attribute of dynamically created anchor #

Patch Set 9 : update webexposed layout tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -3 lines) Patch
A LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-policy.html View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-anchor-origin.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-anchor-origin-when-crossorigin.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-anchor-unsafe-url.html View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-noreferrer.html View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/referrer-policy-attribute-onclick.html View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/resources/referrer-attr-anchor-noreferrer-target.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/security/resources/referrer-attr-anchor-target.html View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.cpp View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.idl View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLAttributeNames.in View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
estark
jochen, could you please take a look and let me know if this is on ...
5 years, 4 months ago (2015-07-27 19:43:56 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1253413003/diff/1/Source/core/html/HTMLAnchorElement.idl File Source/core/html/HTMLAnchorElement.idl (right): https://codereview.chromium.org/1253413003/diff/1/Source/core/html/HTMLAnchorElement.idl#newcode32 Source/core/html/HTMLAnchorElement.idl:32: [Reflect] attribute DOMString referrerpolicy; this should be a guarded ...
5 years, 4 months ago (2015-07-28 14:35:37 UTC) #3
estark
Thanks, Jochen. https://codereview.chromium.org/1253413003/diff/1/Source/core/html/HTMLAnchorElement.idl File Source/core/html/HTMLAnchorElement.idl (right): https://codereview.chromium.org/1253413003/diff/1/Source/core/html/HTMLAnchorElement.idl#newcode32 Source/core/html/HTMLAnchorElement.idl:32: [Reflect] attribute DOMString referrerpolicy; On 2015/07/28 14:35:36, ...
5 years, 4 months ago (2015-07-29 20:54:41 UTC) #4
jochen (gone - plz use gerrit)
could you also add a test that reflects the valid values for referrerpolicy? and what ...
5 years, 4 months ago (2015-07-30 14:34:09 UTC) #5
estark
On 2015/07/30 14:34:09, jochen wrote: > could you also add a test that reflects the ...
5 years, 4 months ago (2015-07-31 23:35:37 UTC) #6
jochen (gone - plz use gerrit)
On 2015/07/31 at 23:35:37, estark wrote: > On 2015/07/30 14:34:09, jochen wrote: > > could ...
5 years, 4 months ago (2015-08-03 15:48:48 UTC) #7
estark
On 2015/08/03 15:48:48, jochen wrote: > On 2015/07/31 at 23:35:37, estark wrote: > > On ...
5 years, 4 months ago (2015-08-04 01:14:46 UTC) #8
jochen (gone - plz use gerrit)
can you also add a test that verifies that value of document.createElement('a').referrerpolicy? with that, lgtm
5 years, 4 months ago (2015-08-04 13:47:53 UTC) #9
estark
On 2015/08/04 13:47:53, jochen wrote: > can you also add a test that verifies that ...
5 years, 4 months ago (2015-08-04 16:38:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253413003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253413003/140001
5 years, 4 months ago (2015-08-04 16:39:09 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/72540)
5 years, 4 months ago (2015-08-04 17:49:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253413003/160001
5 years, 4 months ago (2015-08-04 18:12:33 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/64995)
5 years, 4 months ago (2015-08-04 20:01:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1253413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1253413003/160001
5 years, 4 months ago (2015-08-04 22:18:40 UTC) #22
commit-bot: I haz the power
5 years, 4 months ago (2015-08-04 22:22:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199997

Powered by Google App Engine
This is Rietveld 408576698