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

Issue 674434 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Files app can fail to start when calling chrome.storage APIs fails.

Project Member Reported by fukino@chromium.org, Dec 15 2016

Issue description

Feedback report: #21496332704

In the report, Files app opens without any contents, and it keeps blank.

According to the log, a chrome.storage API call failed.
When a chrome.storage.get/set fails, chrome.runtime.lastError is set and we need to handle it.
In some parts in Files app, they are not handled and it result in empty Files app, since the initialization process aborts due to unhandled lastError.

We need to handle the error to ensure that Files app works even in such situations.
 

Comment 1 by fukino@chromium.org, Dec 15 2016

Description: Show this description

Comment 2 by fukino@chromium.org, Dec 15 2016

Files app looks like the attached screenshot when this issue happens.
Screenshot from 2016-12-15 18:31:42.png
24.7 KB View Download
Project Member

Comment 3 by bugdroid1@chromium.org, Dec 15 2016

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

commit 26defffaca3b257fae0f625d04fc14724fc71682
Author: fukino <fukino@chromium.org>
Date: Thu Dec 15 11:42:09 2016

Files app: Handle chrome.runtime.lastError for chrome.storage API calls.

BUG= 671080 , 674434 
TEST=manually tested by modifying chrome.storage API to return errors and
confirming that Files app works properly with default options.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

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

[modify] https://crrev.com/26defffaca3b257fae0f625d04fc14724fc71682/ui/file_manager/file_manager/common/js/util.js
[modify] https://crrev.com/26defffaca3b257fae0f625d04fc14724fc71682/ui/file_manager/file_manager/foreground/js/app_state_controller.js
[modify] https://crrev.com/26defffaca3b257fae0f625d04fc14724fc71682/ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js
[modify] https://crrev.com/26defffaca3b257fae0f625d04fc14724fc71682/ui/file_manager/file_manager/foreground/js/ui/banners.js

Comment 4 by fukino@chromium.org, Dec 16 2016

Labels: M-56 Merge-Request-56
I'd like to request a merge to M56, since:
- The issue doesn't occur frequently, but if it happens, it is serious. users can't download/open any files.
- The fix is not complex.

Comment 5 by dimu@chromium.org, Dec 16 2016

Labels: -Merge-Request-56 Merge-Approved-56 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M56 (branch: 2924)
Project Member

Comment 6 by bugdroid1@chromium.org, Dec 19 2016

Labels: -merge-approved-56 merge-merged-2924
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e8abe66c74b57ced730aa2977f93fdd59d7c4c72

commit e8abe66c74b57ced730aa2977f93fdd59d7c4c72
Author: Naoki Fukino <fukino@chromium.org>
Date: Mon Dec 19 08:18:35 2016

Files app: Handle chrome.runtime.lastError for chrome.storage API calls.

BUG= 671080 , 674434 
TEST=manually tested by modifying chrome.storage API to return errors and
confirming that Files app works properly with default options.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2578863003
Cr-Commit-Position: refs/heads/master@{#438806}
(cherry picked from commit 26defffaca3b257fae0f625d04fc14724fc71682)

Review-Url: https://codereview.chromium.org/2589493004 .
Cr-Commit-Position: refs/branch-heads/2924@{#542}
Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059}

[modify] https://crrev.com/e8abe66c74b57ced730aa2977f93fdd59d7c4c72/ui/file_manager/file_manager/common/js/util.js
[modify] https://crrev.com/e8abe66c74b57ced730aa2977f93fdd59d7c4c72/ui/file_manager/file_manager/foreground/js/app_state_controller.js
[modify] https://crrev.com/e8abe66c74b57ced730aa2977f93fdd59d7c4c72/ui/file_manager/file_manager/foreground/js/folder_shortcuts_data_model.js
[modify] https://crrev.com/e8abe66c74b57ced730aa2977f93fdd59d7c4c72/ui/file_manager/file_manager/foreground/js/ui/banners.js

Comment 7 by fukino@chromium.org, Dec 20 2016

Status: Fixed (was: Started)
Status: Verified (was: Fixed)

Sign in to add a comment