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

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

Created:
4 years, 4 months ago by Sergey Shekyan
Modified:
4 years, 4 months ago
CC:
achuith+watch_chromium.org, apacible+watch_chromium.org, arv+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 patch changes wildcard source expression matching to require 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 inline_login_ui.cc to explicitly allow `chrome:` as in `connect-src * chrome:` to fix failing tests. This also changes Content Security Policy in manifests of Feedback and PDF Viewer extensions to allow objects from `file:`. BUG=611314 R=mkwst@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/39d12f5665910578d2e18251a0225a7aebe6964b Cr-Commit-Position: refs/heads/master@{#410566}

Patch Set 1 #

Patch Set 2 : Change wildcard source expression matching to conform latest spec #

Patch Set 3 : Test to ensure PDF loads from URL with `file:` scheme #

Total comments: 5

Patch Set 4 : Test to ensure PDF loads from URL with `file:` scheme + addressed comments #

Patch Set 5 : Renamed a variable to stay consistent with the rest of the file #

Total comments: 3

Patch Set 6 : Addressed comment on introducing `test_data_file` #

Patch Set 7 : Adjust CSP of feedback extension #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -12 lines) Patch
M chrome/browser/pdf/pdf_extension_test.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/feedback/manifest.json View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/pdf/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui.cc View 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: 53 (24 generated)
Sergey Shekyan
Mike, I'd be happy to write tests for extensions, but can you please suggest on ...
4 years, 4 months ago (2016-08-04 06:24:51 UTC) #4
Mike West
+jochen@, jam@, who might have a good idea where to land a test for PDFium. ...
4 years, 4 months ago (2016-08-04 11:24:00 UTC) #8
jam
On 2016/08/04 11:24:00, Mike West wrote: > +jochen@, jam@, who might have a good idea ...
4 years, 4 months ago (2016-08-04 18:13:15 UTC) #11
Lei Zhang
On 2016/08/04 18:13:15, jam wrote: > On 2016/08/04 11:24:00, Mike West wrote: > > +jochen@, ...
4 years, 4 months ago (2016-08-04 18:21:17 UTC) #12
Lei Zhang
BTW, for future CLs - when relanding, upload the reverted CL as patch set 1, ...
4 years, 4 months ago (2016-08-04 18:22:30 UTC) #13
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-08-05 11:46:07 UTC) #14
Lei Zhang
On 2016/08/04 18:21:17, Lei Zhang wrote: > I'm guessing you want a test for the ...
4 years, 4 months ago (2016-08-05 19:04:06 UTC) #15
Sergey Shekyan
On 2016/08/05 19:04:06, Lei Zhang wrote: > On 2016/08/04 18:21:17, Lei Zhang wrote: > > ...
4 years, 4 months ago (2016-08-05 19:34:04 UTC) #16
Sergey Shekyan
I don't think there are any tests around feedback component.
4 years, 4 months ago (2016-08-08 17:45:24 UTC) #19
Sergey Shekyan
On 2016/08/04 18:21:17, Lei Zhang wrote: > On 2016/08/04 18:13:15, jam wrote: > > On ...
4 years, 4 months ago (2016-08-08 23:13:02 UTC) #22
Lei Zhang
Thanks for adding the test. https://codereview.chromium.org/2209113002/diff/40001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2209113002/diff/40001/chrome/browser/pdf/pdf_extension_test.cc#newcode470 chrome/browser/pdf/pdf_extension_test.cc:470: ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_dir)); You can ...
4 years, 4 months ago (2016-08-08 23:16:25 UTC) #23
Sergey Shekyan
https://codereview.chromium.org/2209113002/diff/40001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2209113002/diff/40001/chrome/browser/pdf/pdf_extension_test.cc#newcode470 chrome/browser/pdf/pdf_extension_test.cc:470: ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_dir)); On 2016/08/08 23:16:24, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-08-08 23:55:42 UTC) #24
Lei Zhang
https://codereview.chromium.org/2209113002/diff/40001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2209113002/diff/40001/chrome/browser/pdf/pdf_extension_test.cc#newcode470 chrome/browser/pdf/pdf_extension_test.cc:470: ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &test_dir)); On 2016/08/08 23:55:42, Sergey Shekyan wrote: > ...
4 years, 4 months ago (2016-08-08 23:57:16 UTC) #25
Lei Zhang
On 2016/08/08 23:57:16, Lei Zhang wrote: > Really? Because we use just that in several ...
4 years, 4 months ago (2016-08-08 23:57:37 UTC) #26
Sergey Shekyan
On 2016/08/08 23:57:37, Lei Zhang wrote: > On 2016/08/08 23:57:16, Lei Zhang wrote: > > ...
4 years, 4 months ago (2016-08-09 00:00:22 UTC) #27
Lei Zhang
On 2016/08/09 00:00:22, Sergey Shekyan wrote: > You are right, I missed the `chrome::` part ...
4 years, 4 months ago (2016-08-09 00:02:20 UTC) #28
Sergey Shekyan
On 2016/08/09 00:02:20, Lei Zhang wrote: > On 2016/08/09 00:00:22, Sergey Shekyan wrote: > > ...
4 years, 4 months ago (2016-08-09 00:07:04 UTC) #29
Sergey Shekyan
On 2016/08/09 00:07:04, Sergey Shekyan wrote: > On 2016/08/09 00:02:20, Lei Zhang wrote: > > ...
4 years, 4 months ago (2016-08-09 00:28:38 UTC) #30
Lei Zhang
Just double checking locally to make sure the new PDF test fails when the reverted ...
4 years, 4 months ago (2016-08-09 00:28:45 UTC) #31
Lei Zhang
On 2016/08/09 00:28:45, Lei Zhang wrote: > Just double checking locally to make sure the ...
4 years, 4 months ago (2016-08-09 00:32:39 UTC) #32
Sergey Shekyan
https://codereview.chromium.org/2209113002/diff/80001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2209113002/diff/80001/chrome/browser/pdf/pdf_extension_test.cc#newcode472 chrome/browser/pdf/pdf_extension_test.cc:472: test_data_dir = test_data_dir.AppendASCII("test.pdf"); On 2016/08/09 00:28:45, Lei Zhang wrote: ...
4 years, 4 months ago (2016-08-09 00:38:28 UTC) #33
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/2209113002/100001
4 years, 4 months ago (2016-08-09 00:40:01 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/179967)
4 years, 4 months ago (2016-08-09 00:48:35 UTC) #38
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/2209113002/100001
4 years, 4 months ago (2016-08-09 03:33:27 UTC) #44
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-09 03:39:26 UTC) #46
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/39d12f5665910578d2e18251a0225a7aebe6964b Cr-Commit-Position: refs/heads/master@{#410566}
4 years, 4 months ago (2016-08-09 03:42:05 UTC) #48
Sergey Shekyan
On 2016/08/09 03:42:05, commit-bot: I haz the power wrote: > Patchset 6 (id:??) landed as ...
4 years, 4 months ago (2016-08-10 17:05:06 UTC) #51
Lei Zhang
On 2016/08/10 17:05:06, Sergey Shekyan wrote: > On 2016/08/09 03:42:05, commit-bot: I haz the power ...
4 years, 4 months ago (2016-08-10 17:12:51 UTC) #52
jww
4 years, 4 months ago (2016-08-10 19:12:10 UTC) #53
Message was sent while issue was closed.
On 2016/08/10 17:12:51, Lei Zhang (Soon to be OOO) wrote:
> On 2016/08/10 17:05:06, Sergey Shekyan wrote:
> > On 2016/08/09 03:42:05, commit-bot: I haz the power wrote:
> > > Patchset 6 (id:??) landed as
> > > https://crrev.com/39d12f5665910578d2e18251a0225a7aebe6964b
> > > Cr-Commit-Position: refs/heads/master@{#410566}
> > 
> > jww@, all other reviewers are OOO, can you please take a look? I am not sure
> if
> > I can update already landed CL, or I need to revert and land again with the
> last
> > patch set.
> 
> Just start a new CL for the changes in patch set 7.

Indeed, as thestig@ says, that's the best approach. Happy to take a look at that
patch set once it's up.

Powered by Google App Engine
This is Rietveld 408576698