Is it possible to combine the files for image, video, and audio? The implementation looks ...
4 years, 4 months ago
(2016-07-27 07:36:06 UTC)
#6
Is it possible to combine the files for image, video, and audio? The
implementation looks similar, so combining them will work doing to avoid
unnecessary imports and reduce the size (and easier maintenance).
Also, if there is no UI tests for quick view yet, could you add some? (It's OK
to have It in a separate CL)
https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_m...
File ui/file_manager/file_manager/foreground/js/quick_view_controller.js
(right):
https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_m...
ui/file_manager/file_manager/foreground/js/quick_view_controller.js:234:
reject();
It should be better to keep the error object from entry.file(), like:
entry.file(resolve, function(error) {
console.error('Failed to get file.');
reject(error);
});
Or, simply
entry.file(resolve, reject);
https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_m...
ui/file_manager/file_manager/foreground/js/quick_view_controller.js:287: var /**
@type {!Array<!MetadataItem>} */ items = values[0];
This annotation looks unusual.
It may be
var items = /** @type {!Array<!MetadataItem>} */ (values[0]);
or
/** @type {!Array<!MetadataItem>} */
var items = values[0];
?
oka
rebase.
4 years, 4 months ago
(2016-07-27 08:44:41 UTC)
#7
rebase.
oka
Address comments.
4 years, 4 months ago
(2016-07-27 09:32:48 UTC)
#8
Address comments.
oka
Add files-safe-media element which unifies files-safe-{img,video,audio}.
4 years, 4 months ago
(2016-07-27 10:30:15 UTC)
#9
Add files-safe-media element which unifies files-safe-{img,video,audio}.
oka
nit
4 years, 4 months ago
(2016-07-27 10:41:47 UTC)
#10
nit
oka
Description was changed from ========== Improved security of Quick View by rendering videos and audios ...
4 years, 4 months ago
(2016-07-27 10:42:08 UTC)
#11
Description was changed from
==========
Improved security of Quick View by rendering videos and audios inside webview.
Added files-safe-video and files-safe-audio tag, which renders contents
inside webview, and used them in Quick View.
This addresses security concern raised on
https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21.
BUG=614228,627698
TEST=manually
third_party/closure_compiler/run_compiler
==========
to
==========
Improved security of Quick View by rendering videos and audios inside webview.
Added files-safe-media tag which generalizes and replaces files-safe-img, and
used them in Quick View.
This addresses security concern raised on
https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21.
BUG=614228,627698
TEST=manually
third_party/closure_compiler/run_compiler
==========
oka
nit
4 years, 4 months ago
(2016-07-27 10:45:54 UTC)
#12
nit
oka
PTAL. https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js File ui/file_manager/file_manager/foreground/js/quick_view_controller.js (right): https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js#newcode234 ui/file_manager/file_manager/foreground/js/quick_view_controller.js:234: reject(); On 2016/07/27 07:36:06, fukino wrote: > It ...
4 years, 4 months ago
(2016-07-27 10:46:18 UTC)
#13
PTAL.
https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_m...
File ui/file_manager/file_manager/foreground/js/quick_view_controller.js
(right):
https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_m...
ui/file_manager/file_manager/foreground/js/quick_view_controller.js:234:
reject();
On 2016/07/27 07:36:06, fukino wrote:
> It should be better to keep the error object from entry.file(), like:
>
> entry.file(resolve, function(error) {
> console.error('Failed to get file.');
> reject(error);
> });
>
> Or, simply
>
> entry.file(resolve, reject);
Done.
https://codereview.chromium.org/2181953003/diff/120001/ui/file_manager/file_m...
ui/file_manager/file_manager/foreground/js/quick_view_controller.js:287: var /**
@type {!Array<!MetadataItem>} */ items = values[0];
On 2016/07/27 07:36:06, fukino wrote:
> This annotation looks unusual.
>
> It may be
>
> var items = /** @type {!Array<!MetadataItem>} */ (values[0]);
>
> or
>
> /** @type {!Array<!MetadataItem>} */
> var items = values[0];
>
> ?
Done.
fukino
lgtm with nits. https://codereview.chromium.org/2181953003/diff/220001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js File ui/file_manager/file_manager/foreground/js/quick_view_controller.js (right): https://codereview.chromium.org/2181953003/diff/220001/ui/file_manager/file_manager/foreground/js/quick_view_controller.js#newcode248 ui/file_manager/file_manager/foreground/js/quick_view_controller.js:248: params.contentUrl = URL.createObjectURL(file); nit: Should be ...
4 years, 4 months ago
(2016-07-28 12:31:38 UTC)
#14
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/255189)
4 years, 4 months ago
(2016-08-04 08:26:59 UTC)
#22
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/255254)
4 years, 4 months ago
(2016-08-04 10:31:22 UTC)
#26
Description was changed from ========== Improved security of Quick View by rendering videos and audios ...
4 years, 4 months ago
(2016-08-10 08:27:31 UTC)
#30
Message was sent while issue was closed.
Description was changed from
==========
Improved security of Quick View by rendering videos and audios inside webview.
Added files-safe-media tag which generalizes and replaces files-safe-img, and
used them in Quick View.
This addresses security concern raised on
https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21.
BUG=614228,627698
TEST=manually
third_party/closure_compiler/run_compiler
==========
to
==========
Improved security of Quick View by rendering videos and audios inside webview.
Added files-safe-media tag which generalizes and replaces files-safe-img, and
used them in Quick View.
This addresses security concern raised on
https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21.
BUG=614228,627698
TEST=manually
third_party/closure_compiler/run_compiler
==========
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 4 months ago
(2016-08-10 08:27:33 UTC)
#31
Message was sent while issue was closed.
Committed patchset #16 (id:300001)
commit-bot: I haz the power
Description was changed from ========== Improved security of Quick View by rendering videos and audios ...
4 years, 4 months ago
(2016-08-10 08:28:54 UTC)
#32
Message was sent while issue was closed.
Description was changed from
==========
Improved security of Quick View by rendering videos and audios inside webview.
Added files-safe-media tag which generalizes and replaces files-safe-img, and
used them in Quick View.
This addresses security concern raised on
https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21.
BUG=614228,627698
TEST=manually
third_party/closure_compiler/run_compiler
==========
to
==========
Improved security of Quick View by rendering videos and audios inside webview.
Added files-safe-media tag which generalizes and replaces files-safe-img, and
used them in Quick View.
This addresses security concern raised on
https://bugs.chromium.org/p/chromium/issues/detail?id=614228#c21.
BUG=614228,627698
TEST=manually
third_party/closure_compiler/run_compiler
Committed: https://crrev.com/efc63a360e385ffc9f7c72d47e0aef618b594e6c
Cr-Commit-Position: refs/heads/master@{#411004}
==========
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/efc63a360e385ffc9f7c72d47e0aef618b594e6c Cr-Commit-Position: refs/heads/master@{#411004}
4 years, 4 months ago
(2016-08-10 08:28:56 UTC)
#33
Issue 2181953003: Improved security of Quick View by rendering videos and audios inside webview.
(Closed)
Created 4 years, 4 months ago by oka
Modified 4 years, 4 months ago
Reviewers: fukino
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 10