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

Issue 2160983002: Change wildcard source expression matching to conform latest spec (Closed)

Created:
4 years, 5 months ago by Sergey Shekyan
Modified:
4 years, 4 months ago
CC:
achuith+watch_chromium.org, blink-reviews, chromium-reviews, dzhioev+watch_chromium.org, media-router+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change wildcard source expression matching to conform latest spec This changes wildcard source expression matching to require any schemes other than http/https/ws/wss be explicitly present in the source list to match, per https://w3c.github.io/webappsec-csp/#match-url-to-source-expression This also updates CSP injected in chrome/browser/ui/webui/ to explicitly allow `chrome:` as in `connect-src chrome:` to fix failing tests. Previous CL at https://codereview.chromium.org/1973933002/ is stale, so creating a new one to nail it this time. BUG=611314 R=mkwst@chromium.org Committed: https://crrev.com/6104167b0bf16a3520a898dbe67227637d1c214e Cr-Commit-Position: refs/heads/master@{#408654}

Patch Set 1 #

Patch Set 2 : Whitelist injected resources to pass browser_tests #

Patch Set 3 : Attempting to whitelist `chrome-extenstion` #

Patch Set 4 : Update right test, undo change in other #

Patch Set 5 : Make CSPs in chrome/browser/ui/webui/ stricter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPSourceList.cpp View 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/frame/csp/CSPSourceListTest.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (26 generated)
Sergey Shekyan
On 2016/07/20 08:15:21, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 5 months ago (2016-07-21 04:20:17 UTC) #9
Sergey Shekyan
I updated the wrong test yesterday. Fixed it. Can you please try? Also, if you ...
4 years, 5 months ago (2016-07-22 04:49:54 UTC) #14
Sergey Shekyan
On 2016/07/22 04:49:54, Sergey Shekyan wrote: > I updated the wrong test yesterday. Fixed it. ...
4 years, 5 months ago (2016-07-25 05:24:32 UTC) #15
Mike West
Sorry, was unexpectedly OOO through yesterday. The third_party/ bits LGTM. You'll need reviews of the ...
4 years, 4 months ago (2016-07-27 08:47:58 UTC) #18
Mike West
Trybots look happy. Perhaps Jochen can stamp //chrome?
4 years, 4 months ago (2016-07-27 10:27:43 UTC) #22
mark a. foltz
On 2016/07/27 at 10:27:43, mkwst wrote: > Trybots look happy. Perhaps Jochen can stamp //chrome? ...
4 years, 4 months ago (2016-07-27 16:59:07 UTC) #23
Sergey Shekyan
Folks, I updated changed policies in chrome/browser/ui/webui/ to remove `*` as unnecessary. Tests pass so ...
4 years, 4 months ago (2016-07-27 23:50:20 UTC) #28
Mike West
still LGTM.
4 years, 4 months ago (2016-07-28 13:42:16 UTC) #30
Sergey Shekyan
On 2016/07/28 13:42:16, Mike West wrote: > still LGTM. Can I commit or we are ...
4 years, 4 months ago (2016-07-28 19:26:31 UTC) #31
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-07-29 09:39:21 UTC) #32
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/2160983002/80001
4 years, 4 months ago (2016-07-29 15:18:28 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-29 16:30:57 UTC) #36
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6104167b0bf16a3520a898dbe67227637d1c214e Cr-Commit-Position: refs/heads/master@{#408654}
4 years, 4 months ago (2016-07-29 16:34:30 UTC) #38
Mike West
4 years, 4 months ago (2016-08-03 07:22:15 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2207643003/ by mkwst@chromium.org.

The reason for reverting is: This breaks PDFium's handling of PDFs hosted on
`file:`. Unfortunately, we didn't have tests covering this functionality, but we
still need to fix it. :).

Powered by Google App Engine
This is Rietveld 408576698