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

Issue 848303 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Extensions: "Load unpacked" opens file browser instead of file picker on Chrome OS

Project Member Reported by steve...@chromium.org, May 31 2018

Issue description

On Chrome 69.0.3446.0 (developer build):

1. Nav to chrome://extensions
2. Enable developer mode
3. Click 'Load unpacked'

Expected: File picker dialog with "Select a file to open" title and "Open" and "Cancel" buttons should apepar.

Result: Files app is opened with no title or buttons. Selecting a folder opens it, double clicking on a manifest views it as if from the Files app.

I can not repro this on an official 68 build.

 
Cc: sashab@chromium.org
This is interesting - we don't do any different calls on CrOS vs other platforms from the extensions API, where we just call SelectFileDialog methods.  I wonder if it's something in there?  (especially if it's a regression)
Labels: -Type-Bug Type-Bug-Regression
Owner: noel@chromium.org
Status: Assigned (was: Untriaged)
Oh dear, this doesn't look good. Thanks for filing.

noel - can you PTAL?

Comment 4 by m...@chromium.org, Jun 6 2018

Cc: noel@chromium.org
Owner: m...@chromium.org
Status: Started (was: Assigned)
This caused DCHECKs to fail on CrOS builds for me. Root cause was existing code using "default" clauses in "switch (type)" statements, which prevented the compiler from catching the missing impl. I took a quick look, and the fix seemed obvious/simple, and chrome:://extensions folder picker now works for me. Up for review: https://chromium-review.googlesource.com/#/c/chromium/src/+/1089877

Comment 5 by aee@chromium.org, Jun 6 2018

Cc: aee@chromium.org dpa...@chromium.org jawag@chromium.org m...@chromium.org
 Issue 849775  has been merged into this issue.
Labels: -M-69 ReleaseBlock-Stable M-68
Given that  issue 849775  was merged here, updating labels and RBS status.
Components: UI>Browser>ExtensionsManagement
Project Member

Comment 8 by bugdroid1@chromium.org, Jun 7 2018

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

commit eb43c62a34f5b7335a846d579143f8cc4cc777a8
Author: Yuri Wiitala <miu@chromium.org>
Date: Thu Jun 07 20:45:00 2018

CrOS: Fix DCHECK failures in SelectFileDialog.

Commit cc859bf07d39ffb99f1e19827c894327fb4d9849 introduced a new variant
of select file dialog: SELECT_EXISTING_FOLDER. Because existing code
used 'default' clauses in multiple switch statements, the compiler did
not catch that there was missing impl for the ChromeOS UI. This change
adds that missing impl.

Bug:  772180 , 848303 
Change-Id: Ic990bf838d3a8c300414259f246715ae2efdcfe3
Reviewed-on: https://chromium-review.googlesource.com/1089877
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Yuri Wiitala <miu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565396}
[modify] https://crrev.com/eb43c62a34f5b7335a846d579143f8cc4cc777a8/chrome/browser/chromeos/file_manager/select_file_dialog_util.cc
[modify] https://crrev.com/eb43c62a34f5b7335a846d579143f8cc4cc777a8/chrome/browser/chromeos/file_manager/url_util.cc
[modify] https://crrev.com/eb43c62a34f5b7335a846d579143f8cc4cc777a8/chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc
[modify] https://crrev.com/eb43c62a34f5b7335a846d579143f8cc4cc777a8/chrome/browser/ui/libgtkui/select_file_dialog_impl_kde.cc

Comment 9 by m...@chromium.org, Jun 7 2018

Labels: Merge-Request-68
Status: Fixed (was: Started)
Fixed. Requesting M68 merge.
Project Member

Comment 10 by sheriffbot@chromium.org, Jun 8 2018

Labels: -Merge-Request-68 Hotlist-Merge-Review Merge-Review-68
This bug requires manual review: M68 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), kariahda@(iOS), bhthompson@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Merge-Review -Merge-Review-68 Merge-Approved-68
Project Member

Comment 12 by sheriffbot@chromium.org, Jun 15 2018

Cc: bhthompson@google.com
This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
@miu: Merge has been approved. Can you post a status update on merging to M68?

Comment 14 by m...@chromium.org, Jun 18 2018

Just got back from vacation today. Will land today.
Project Member

Comment 15 by bugdroid1@chromium.org, Jun 18 2018

Labels: -merge-approved-68 merge-merged-3440
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/dac5bc2969e50cc116d11eccca55f2bb216b9af5

commit dac5bc2969e50cc116d11eccca55f2bb216b9af5
Author: Yuri Wiitala <miu@chromium.org>
Date: Mon Jun 18 21:27:37 2018

CrOS: Fix DCHECK failures in SelectFileDialog.

Commit cc859bf07d39ffb99f1e19827c894327fb4d9849 introduced a new variant
of select file dialog: SELECT_EXISTING_FOLDER. Because existing code
used 'default' clauses in multiple switch statements, the compiler did
not catch that there was missing impl for the ChromeOS UI. This change
adds that missing impl.

Bug:  772180 , 848303 
Change-Id: Ic990bf838d3a8c300414259f246715ae2efdcfe3
Reviewed-on: https://chromium-review.googlesource.com/1089877
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Yuri Wiitala <miu@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#565396}(cherry picked from commit eb43c62a34f5b7335a846d579143f8cc4cc777a8)
Reviewed-on: https://chromium-review.googlesource.com/1105237
Reviewed-by: Yuri Wiitala <miu@chromium.org>
Cr-Commit-Position: refs/branch-heads/3440@{#421}
Cr-Branched-From: 010ddcfda246975d194964ccf20038ebbdec6084-refs/heads/master@{#561733}
[modify] https://crrev.com/dac5bc2969e50cc116d11eccca55f2bb216b9af5/chrome/browser/chromeos/file_manager/select_file_dialog_util.cc
[modify] https://crrev.com/dac5bc2969e50cc116d11eccca55f2bb216b9af5/chrome/browser/chromeos/file_manager/url_util.cc
[modify] https://crrev.com/dac5bc2969e50cc116d11eccca55f2bb216b9af5/chrome/browser/ui/libgtkui/select_file_dialog_impl_gtk.cc
[modify] https://crrev.com/dac5bc2969e50cc116d11eccca55f2bb216b9af5/chrome/browser/ui/libgtkui/select_file_dialog_impl_kde.cc

Comment 16 by m...@chromium.org, Jun 18 2018

I've merged to refs/branch-heads/3440. Will ChromeOS release builds pick this up automatically, or do I need to cherry-pick into other branches?
Cc: steve...@chromium.org
Looking at the ChromeOS M68 branch instructions, it includes Chrome Branch: 3440, so I don't think you need to cherry-pick to any other branches.

Adding Steven to verify.
you should be fine - release builder will pick up changes on the Chrome branch (well, they already have for in this case)

Sign in to add a comment