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

Issue 2574763003: Remove chrome-extension-resource:// scheme (Closed)

Created:
4 years ago by ncarter (slow)
Modified:
4 years ago
Reviewers:
James Cook, sky, Devlin, scottmg
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, arv+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove chrome-extension-resource:// scheme. As far as I can tell this scheme does not do anything. It serves files from a directory that appears not to exist in a default install of Chrome for Windows, and I do not see code (outside of tests of this scheme) that would serve to create such a directory. BUG=674272 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/0fbc39212270a8aa81a88ba25cc25fdf3a7ffd26 Cr-Commit-Position: refs/heads/master@{#439182}

Patch Set 1 #

Patch Set 2 : Silently strip chrome-extension-resource:// from CSP directives. #

Total comments: 4

Patch Set 3 : It turns out that patch set 2 was a terrible idea. #

Patch Set 4 : resolve jamescook suggestions #

Patch Set 5 : Rebase (no changes) #

Patch Set 6 : Remove BUILD reference to resources/extension outdir. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -458 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/extensions/extension_resource_protocols.h View 1 chunk +0 lines, -16 lines 0 comments Download
D chrome/browser/extensions/extension_resource_protocols.cc View 1 chunk +0 lines, -102 lines 0 comments Download
M chrome/browser/extensions/extension_resource_request_policy_apitest.cc View 2 chunks +0 lines, -20 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/BUILD.gn View 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/browser/resources/extension_resource/demo/library.js View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 5 chunks +9 lines, -19 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/templates/articles/app_codelab_import_todomvc.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/templates/articles/contentSecurityPolicy.html View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/url_constants.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/common/url_constants.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_renderer_client.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/resource_request_policy.h View 2 chunks +1 line, -8 lines 0 comments Download
M chrome/renderer/extensions/resource_request_policy.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
D chrome/test/data/extensions/api_test/accessible_cer/background.js View 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/test/data/extensions/api_test/accessible_cer/main.html View 1 chunk +0 lines, -7 lines 0 comments Download
D chrome/test/data/extensions/api_test/accessible_cer/manifest.json View 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/test/data/extensions/api_test/extension_resource_request_policy/web_accessible/nonaccessible_chrome_resource_scheme.html View 1 chunk +0 lines, -12 lines 0 comments Download
M extensions/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/extension_web_contents_observer.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/common/constants.h View 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/common/constants.cc View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/common/csp_validator.cc View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M extensions/common/csp_validator_unittest.cc View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M extensions/common/file_util.h View 1 chunk +0 lines, -5 lines 0 comments Download
M extensions/common/file_util.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M extensions/common/file_util_unittest.cc View 1 chunk +0 lines, -65 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 3 chunks +32 lines, -38 lines 0 comments Download
M extensions/shell/browser/shell_browser_context.cc View 1 chunk +1 line, -3 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/shell/common/shell_content_client.cc View 1 2 3 1 chunk +2 lines, -11 lines 0 comments Download
M extensions/test/extensions_unittests_main.cc View 1 2 3 2 chunks +2 lines, -11 lines 0 comments Download

Messages

Total messages: 47 (30 generated)
ncarter (slow)
James, Devlin: I've convinced myself that this removal is safe because there's no code to ...
4 years ago (2016-12-14 20:07:57 UTC) #10
Devlin
On 2016/12/14 20:07:57, ncarter wrote: > James, Devlin: > > I've convinced myself that this ...
4 years ago (2016-12-14 20:17:55 UTC) #11
James Cook
I don't have much to add here. When I worked on app_shell I suspect I ...
4 years ago (2016-12-14 20:41:50 UTC) #12
asargent_no_longer_on_chrome
On 2016/12/14 20:17:55, Devlin wrote: > On 2016/12/14 20:07:57, ncarter wrote: > > James, Devlin: ...
4 years ago (2016-12-14 21:18:00 UTC) #16
ncarter (slow)
https://codereview.chromium.org/2574763003/diff/20001/extensions/shell/common/shell_content_client.cc File extensions/shell/common/shell_content_client.cc (right): https://codereview.chromium.org/2574763003/diff/20001/extensions/shell/common/shell_content_client.cc#newcode77 extensions/shell/common/shell_content_client.cc:77: static const url::SchemeWithType kShellStandardURLSchemes[] = { On 2016/12/14 20:41:49, ...
4 years ago (2016-12-14 22:26:41 UTC) #19
ncarter (slow)
https://codereview.chromium.org/2574763003/diff/20001/extensions/shell/common/shell_content_client.cc File extensions/shell/common/shell_content_client.cc (right): https://codereview.chromium.org/2574763003/diff/20001/extensions/shell/common/shell_content_client.cc#newcode77 extensions/shell/common/shell_content_client.cc:77: static const url::SchemeWithType kShellStandardURLSchemes[] = { On 2016/12/14 20:41:49, ...
4 years ago (2016-12-14 22:26:42 UTC) #20
ncarter (slow)
On 2016/12/14 22:26:42, ncarter wrote: > https://codereview.chromium.org/2574763003/diff/20001/extensions/shell/common/shell_content_client.cc > File extensions/shell/common/shell_content_client.cc (right): > > https://codereview.chromium.org/2574763003/diff/20001/extensions/shell/common/shell_content_client.cc#newcode77 > ...
4 years ago (2016-12-14 22:40:27 UTC) #21
Devlin
woo! LGTM
4 years ago (2016-12-14 23:38:18 UTC) #22
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/2574763003/60001
4 years ago (2016-12-16 00:24:56 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/280760) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years ago (2016-12-16 01:37:25 UTC) #29
ncarter (slow)
sky: please review chrome/
4 years ago (2016-12-16 17:50:08 UTC) #31
sky
The non-extension chrome/ files LGTM (I'm assuming devlin@ reviewed them as he is an extensions ...
4 years ago (2016-12-16 18:24:15 UTC) #34
ncarter (slow)
+scottmg for root /BUILD.gn
4 years ago (2016-12-16 19:27:28 UTC) #36
scottmg
lgtm
4 years ago (2016-12-16 19:47:31 UTC) #37
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/2574763003/100001
4 years ago (2016-12-16 20:03:35 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-16 20:53:02 UTC) #45
commit-bot: I haz the power
4 years ago (2016-12-16 20:57:16 UTC) #47
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0fbc39212270a8aa81a88ba25cc25fdf3a7ffd26
Cr-Commit-Position: refs/heads/master@{#439182}

Powered by Google App Engine
This is Rietveld 408576698