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

Issue 630243002: Fix extension content verification handling of ./ in icon paths (Closed)

Created:
6 years, 2 months ago by asargent_no_longer_on_chrome
Modified:
6 years, 2 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix extension content verification handling of ./ in icon paths When extension manifests contain icon paths with a leading ./, we were failing to process them properly BUG=410666 Committed: https://crrev.com/7cc29ce343a235f9067545ddd19ba2d982c4595f Cr-Commit-Position: refs/heads/master@{#298979}

Patch Set 1 #

Patch Set 2 : minor cleanup #

Total comments: 2

Patch Set 3 : properly handle paths with subdirectories #

Patch Set 4 : added source for dot_slash_paths extension #

Patch Set 5 : fixed incorrect path separator issue on win #

Patch Set 6 : added copyright headers to .js files to fix presubmit error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -20 lines) Patch
M chrome/browser/extensions/content_verifier_browsertest.cc View 1 2 4 chunks +114 lines, -8 lines 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths.crx View 1 2 Binary file 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/_metadata/verified_contents.json View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/content_verifier/dot_slash_paths/background.js View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/dir/page2.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/icon.png View 1 2 3 Binary file 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/icon2.png View 1 2 3 Binary file 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/icon3.png View 1 2 3 Binary file 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/img/test/icon4.png View 1 2 3 Binary file 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/img/test/icon5.png View 1 2 3 Binary file 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/manifest.json View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/content_verifier/dot_slash_paths/page.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/content_verifier/dot_slash_paths/page.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/content_verifier/dot_slash_paths/page2.js View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/content_verifier.cc View 1 2 3 4 4 chunks +37 lines, -2 lines 0 comments Download
M extensions/browser/content_verifier_io_data.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/browser/content_verifier_io_data.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M extensions/browser/content_verify_job.h View 1 chunk +11 lines, -0 lines 0 comments Download
M extensions/browser/content_verify_job.cc View 5 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
asargent_no_longer_on_chrome
6 years, 2 months ago (2014-10-07 16:55:51 UTC) #2
Ken Rockot(use gerrit already)
https://codereview.chromium.org/630243002/diff/20001/extensions/browser/content_verifier.cc File extensions/browser/content_verifier.cc (right): https://codereview.chromium.org/630243002/diff/20001/extensions/browser/content_verifier.cc#newcode219 extensions/browser/content_verifier.cc:219: for (const auto& image_path : browser_images) { YAY AUTO ...
6 years, 2 months ago (2014-10-07 17:25:51 UTC) #3
asargent_no_longer_on_chrome
Ok, PTAL. I switched to transforming the browser icon paths we get at extension load ...
6 years, 2 months ago (2014-10-08 17:49:57 UTC) #4
asargent_no_longer_on_chrome
Oh one more thing too - I added the source to the dot_slash_paths.crx extension, even ...
6 years, 2 months ago (2014-10-08 17:50:34 UTC) #5
asargent_no_longer_on_chrome
New version up which fixes the two problems on windows: the FILE_PATH_LITERAL compile error and ...
6 years, 2 months ago (2014-10-09 19:23:01 UTC) #6
Ken Rockot(use gerrit already)
lgtm
6 years, 2 months ago (2014-10-09 19:51:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/630243002/80001
6 years, 2 months ago (2014-10-09 19:54:23 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/16735) mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/23597)
6 years, 2 months ago (2014-10-09 20:03:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/630243002/290001
6 years, 2 months ago (2014-10-09 20:12:37 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:290001)
6 years, 2 months ago (2014-10-09 21:28:08 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 21:28:56 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7cc29ce343a235f9067545ddd19ba2d982c4595f
Cr-Commit-Position: refs/heads/master@{#298979}

Powered by Google App Engine
This is Rietveld 408576698