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

Issue 2464123004: Enforce form-action CSP even when form.target is present. (Closed)

Created:
4 years, 1 month ago by Łukasz Anforowicz
Modified:
4 years, 1 month ago
Reviewers:
Mike West, estark
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enforce form-action CSP even when form.target is present. BUG=630332 Committed: https://crrev.com/4ac4aff49c4c539bce6d8a0d8800c01324bb6bc0 Cr-Commit-Position: refs/heads/master@{#429922}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed CR feedback from estark@. #

Patch Set 3 : Removed history from output of the new test - this doesn't work for OOPIFs. #

Patch Set 4 : Added verification of 'securitypolicyviolation' and 'submit' events. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -12 lines) Patch
A + third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-blank.html View 1 2 3 1 chunk +17 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-blank-expected.txt View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-cross-site-window.html View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-cross-site-window-expected.txt View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-src-blocked.html View 1 2 3 1 chunk +15 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-src-blocked-expected.txt View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-src-get-blocked-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormElement.cpp View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
Łukasz Anforowicz
mkwst@ / estark@, could you please take a look? I think it makes sense to ...
4 years, 1 month ago (2016-11-02 04:32:41 UTC) #6
estark
Thank you so much for picking this up! LGTM, I think enforcing only for initial ...
4 years, 1 month ago (2016-11-02 23:26:47 UTC) #7
Łukasz Anforowicz
Thanks for the review. mkwst@ - your turn please? :-) https://codereview.chromium.org/2464123004/diff/1/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-blank.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-blank.html (right): https://codereview.chromium.org/2464123004/diff/1/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/form-action-blocked-when-target-blank.html#newcode24 ...
4 years, 1 month ago (2016-11-03 00:15:30 UTC) #10
Mike West
This LGTM for the moment, but as discussed on the bug, I think there's more ...
4 years, 1 month ago (2016-11-03 12:48:26 UTC) #15
Łukasz Anforowicz
On 2016/11/03 12:48:26, Mike West wrote: > This LGTM for the moment, but as discussed ...
4 years, 1 month ago (2016-11-03 18:41:50 UTC) #17
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/2464123004/60001
4 years, 1 month ago (2016-11-04 17:03:31 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-04 17:10:21 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 17:16:14 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4ac4aff49c4c539bce6d8a0d8800c01324bb6bc0
Cr-Commit-Position: refs/heads/master@{#429922}

Powered by Google App Engine
This is Rietveld 408576698