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

Issue 2453093003: child-src and frame-src CSP are not applicable when navigating a new window. (Closed)

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

Description

child-src and frame-src CSP are not applicable when navigating a new window. Shift-clicking an anchor/link will open the link in a new window (similarily ctrl-clicking or middle-clicking will open the link in a new background tab). In this scenario child-src and frame-src Content Security Policies of the parent frame are not applicable (because we are not navigating the frame containing the anchor, but instead we are navigating a brand new frame in a new window). BUG=658701 Committed: https://crrev.com/d7e5f244d54d0a0c8615e4ff216f906851e9fb64 Cr-Commit-Position: refs/heads/master@{#428069}

Patch Set 1 #

Patch Set 2 : Self-review. #

Total comments: 4

Patch Set 3 : Address a CR feedback nit - get rid of unnecessary parens. #

Messages

Total messages: 24 (16 generated)
Łukasz Anforowicz
japhet@, can you take a look please? If things look okay to you, I'll ask ...
4 years, 1 month ago (2016-10-26 23:22:44 UTC) #8
Nate Chapin
Fine by me, but mkwst knows CSP much better than I do.
4 years, 1 month ago (2016-10-26 23:24:45 UTC) #9
Łukasz Anforowicz
Mike, can you take a look please? Note that the issue fixed by this CL ...
4 years, 1 month ago (2016-10-27 00:03:04 UTC) #10
Mike West
LGTM % nits. Thanks for the fix! https://codereview.chromium.org/2453093003/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html (right): https://codereview.chromium.org/2453093003/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html#newcode58 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html:58: var anchor ...
4 years, 1 month ago (2016-10-27 07:39:43 UTC) #13
Łukasz Anforowicz
Thanks for reviewing. I'll push to CQ later today. https://codereview.chromium.org/2453093003/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html (right): https://codereview.chromium.org/2453093003/diff/20001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html#newcode58 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/frame-src-vs-shift-click.html:58: ...
4 years, 1 month ago (2016-10-27 15:28:55 UTC) #14
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/2453093003/40001
4 years, 1 month ago (2016-10-27 17:29:34 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-27 17:35:55 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 18:00:25 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d7e5f244d54d0a0c8615e4ff216f906851e9fb64
Cr-Commit-Position: refs/heads/master@{#428069}

Powered by Google App Engine
This is Rietveld 408576698