New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 681796 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Files app: Error is output in console when right click a file.

Project Member Reported by fukino@chromium.org, Jan 17 2017

Issue description

Chrome Version: ToT
OS: Chrome OS

What steps will reproduce the problem?
(1) Open Files app
(2) In Downloads, right click any file.

What is the expected result?
No error happens.

What happens instead?
Error is output as seen in the screenshot.
"TypeError: Cannot read property 'width' of undefined", which comes from FileTransferController.preloadThumbnailImage_.

Please use labels and text to provide additional information.


For graphics-related bugs, please copy/paste the contents of the about:gpu
page at the end of this report.

 
Screenshot from 2017-01-17 20:52:08.png
202 KB View Download

Comment 1 by fukino@chromium.org, Jan 17 2017

Cc: oka@chromium.org fukino@chromium.org
Owner: yamaguchi@chromium.org
yamaguchi@, can this be related to the recent update on drag images?

Comment 2 by fukino@chromium.org, Jan 17 2017

Status: Assigned (was: Available)
Status: Started (was: Assigned)
I confirmed it happens when clicking on or dragging a non-image file which is not yet previously selected, and it's introduced by a recent change.
I'll revert the affecting part of the change once by:
https://codereview.chromium.org/2641743002/
Project Member

Comment 5 by bugdroid1@chromium.org, Jan 18 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/461ae5544464cdc9d3429311f553568f95da2b2a

commit 461ae5544464cdc9d3429311f553568f95da2b2a
Author: yamaguchi <yamaguchi@chromium.org>
Date: Wed Jan 18 09:25:52 2017

Change the drag thumbnail rendering back to IMAGE mode to fix a regression.

Here is the change that caused  crbug.com/681796 . This changelist partially reverts its change that affected drag thumbnail rendering.
https://codereview.chromium.org/2630283002/

When an item is rendered in CANVAS mode, some metadata field are not
filled unlike IMAGE mode. It causes unexpected execution path and
outputs an error when clicking on a non-image file whose thumbnail is
not yet cached.

BUG= 681796 , 680420 
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2641743002
Cr-Commit-Position: refs/heads/master@{#444311}

[modify] https://crrev.com/461ae5544464cdc9d3429311f553568f95da2b2a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js

Status: Fixed (was: Started)

Comment 7 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58
Status: Verified (was: Fixed)

Sign in to add a comment