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

Issue 2140113003: QuickView: Improve security by rendering images inside webview. (Closed)

Created:
4 years, 5 months ago by oka
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, fukino
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

QuickView: Improve security by rendering images inside webview. It addresses security concern raised on https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21 for images. Fixes for audio and video will be sent as a separate CL. BUG=614228, 627698 TEST=manually third_party/closure_compiler/run_compiler Committed: https://crrev.com/70d5586287eca66e4b7a3b4811ac091f74b0ebf9 Cr-Commit-Position: refs/heads/master@{#407960}

Patch Set 1 #

Patch Set 2 : Rebase && UI glitch fix. #

Patch Set 3 : Remove log #

Patch Set 4 : Nit #

Patch Set 5 : Closure compiler. #

Total comments: 16

Patch Set 6 : Address comments. #

Total comments: 14

Patch Set 7 : Address comments. #

Total comments: 3

Patch Set 8 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -40 lines) Patch
M tools/gritsettings/resource_ids View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/file_manager/file_manager/foreground/css/file_manager.css View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/elements/files_quick_view.css View 1 2 chunks +7 lines, -5 lines 0 comments Download
M ui/file_manager/file_manager/foreground/elements/files_quick_view.html View 1 4 chunks +4 lines, -3 lines 0 comments Download
M ui/file_manager/file_manager/foreground/elements/files_quick_view.js View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_safe_img.html View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_safe_img.js View 1 2 3 4 5 6 7 1 chunk +67 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.css View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.html View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
A ui/file_manager/file_manager/foreground/elements/files_safe_img_webview_content.js View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/quick_view_controller.js View 1 2 3 4 5 6 7 2 chunks +74 lines, -31 lines 0 comments Download
M ui/file_manager/file_manager/manifest.json View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager_resources.grd View 1 1 chunk +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (16 generated)
oka
Remove log
4 years, 5 months ago (2016-07-15 10:54:05 UTC) #1
oka
PTAL
4 years, 5 months ago (2016-07-15 13:58:34 UTC) #5
oka
Closure compiler.
4 years, 5 months ago (2016-07-15 14:22:09 UTC) #6
fukino
In a non-trivial CL like this, please add a CL description to explain what is ...
4 years, 5 months ago (2016-07-19 06:48:28 UTC) #8
oka
Address comments.
4 years, 5 months ago (2016-07-22 08:20:19 UTC) #9
oka
PTAL https://codereview.chromium.org/2140113003/diff/80001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js File ui/file_manager/file_manager/foreground/elements/files_safe_img.js (right): https://codereview.chromium.org/2140113003/diff/80001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js#newcode5 ui/file_manager/file_manager/foreground/elements/files_safe_img.js:5: var FILE_MANAGER_EXTENSIONS_ID = 'hhaomjibdihmijegdhdafkllkbggdgoj'; On 2016/07/19 06:48:28, fukino ...
4 years, 5 months ago (2016-07-22 08:24:15 UTC) #10
fukino
https://codereview.chromium.org/2140113003/diff/100001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js File ui/file_manager/file_manager/foreground/elements/files_safe_img.js (right): https://codereview.chromium.org/2140113003/diff/100001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js#newcode32 ui/file_manager/file_manager/foreground/elements/files_safe_img.js:32: var webview = document.createElement('webview'); question: Why do we have ...
4 years, 5 months ago (2016-07-25 14:07:47 UTC) #11
oka
PTAL https://codereview.chromium.org/2140113003/diff/100001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js File ui/file_manager/file_manager/foreground/elements/files_safe_img.js (right): https://codereview.chromium.org/2140113003/diff/100001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js#newcode32 ui/file_manager/file_manager/foreground/elements/files_safe_img.js:32: var webview = document.createElement('webview'); On 2016/07/25 14:07:46, fukino ...
4 years, 4 months ago (2016-07-26 06:19:22 UTC) #14
fukino
lgtm with nits https://codereview.chromium.org/2140113003/diff/120001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js File ui/file_manager/file_manager/foreground/elements/files_safe_img.js (right): https://codereview.chromium.org/2140113003/diff/120001/ui/file_manager/file_manager/foreground/elements/files_safe_img.js#newcode30 ui/file_manager/file_manager/foreground/elements/files_safe_img.js:30: this.webview_ = null; Please add a ...
4 years, 4 months ago (2016-07-26 06:39:31 UTC) #15
fukino
lgtm with nits
4 years, 4 months ago (2016-07-26 06:39:32 UTC) #16
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/2140113003/140001
4 years, 4 months ago (2016-07-26 07:54:23 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/224989)
4 years, 4 months ago (2016-07-26 08:00:43 UTC) #21
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/2140113003/140001
4 years, 4 months ago (2016-07-26 10:08:18 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/225093)
4 years, 4 months ago (2016-07-26 10:13:29 UTC) #25
oka
thestig@ PTAL for resource_ids.
4 years, 4 months ago (2016-07-26 10:19:03 UTC) #27
Lei Zhang
lgtm but next time file_manager needs more resource ids, we'll need to do more shuffling ...
4 years, 4 months ago (2016-07-26 17:40:44 UTC) #29
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/2140113003/140001
4 years, 4 months ago (2016-07-26 23:14:17 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-07-26 23:19:10 UTC) #33
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/70d5586287eca66e4b7a3b4811ac091f74b0ebf9 Cr-Commit-Position: refs/heads/master@{#407960}
4 years, 4 months ago (2016-07-26 23:21:29 UTC) #35
oka
4 years, 4 months ago (2016-07-27 07:23:34 UTC) #36
Message was sent while issue was closed.
On 2016/07/26 17:40:44, Lei Zhang (Very Slow) wrote:
> lgtm but next time file_manager needs more resource ids, we'll need to do more
> shuffling of the number space.

Thank you. Yes, will do. File manager typically consumes 3 (.js, .html, .css)
additional resource IDs for each new custom polymer element.
I am going to shuffle resources ids to make space of say, 30 for our file
manager.

Powered by Google App Engine
This is Rietveld 408576698