New issue
Advanced search Search tips

Issue 869481 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Aug 31
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Unable to open drive files from launcher search results

Project Member Reported by sdantul...@chromium.org, Jul 31

Issue description

Google Chrome	69.0.3497.21 (Official Build) dev (64-bit)
Revision	a12232e11a0f5f038ba6f6651b58c9b876d0e7ee-refs/branch-heads/3497@{#198}
Platform	10895.9.0 (Official Build) dev-channel eve

What steps will reproduce the problem?
1. Open Files app -> Google Drive and make sure there are some files present.
2. Open launcher and search for any file by typing the file name
3. Click on any of the search results that have files app icon next to them.

What is the expected result?
File should be opened successfully.

What happens instead?
Nothing happens. Launcher gets dismissed.

Issue not reproduced on M68 live build 10718.63.0, 68.0.3440.76 beta-channel.
 
Owner: omrilio@chromium.org
Status: Assigned (was: Untriaged)
omrilio@ - This sounds like a Launcher bug? Is there someone on the team who can take a look?
Labels: Pri-1
Release blockers should be P1 or P0
Components: -Platform>Apps>FileManager
Labels: M-70
Owner: sdantul...@chromium.org
I have the exact same version and cannot reproduce the bug. Can you please check again?
Owner: omrilio@chromium.org
I am still able to repro the issue. Tested on eve, kevin, peppy with different user accounts
Tested on latest M69 build 10895.19.0, 69.0.3497.33
I'm able to reproduce this issue for Downloads folder as well. Unable to open the files of Downloads & Drive folders from Launcher search result.
Tested on M69 build 10895.19.0, 69.0.3497.33 on nautilus.
Owner: oxyflush@chromium.org
Owner: lucmult@chromium.org
Hi Luciano,

Did a bisect on this and it came out to this CL:

https://chromium-review.googlesource.com/c/chromium/src/+/1130559

Could you please investigate this further?
I'll check this today, thanks.
Status: Started (was: Assigned)
Components: -UI>Shell>Launcher Platform>Apps>FileManager
Found the issue and the fix is out for review.

Fix: crrev.com/c/1186006
Tests: crrev.com/c/1186295
Project Member

Comment 16 by bugdroid1@chromium.org, Aug 24

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

commit 1441a75447e7e60b160916ea28d7795f730576c2
Author: Luciano Pacheco <lucmult@chromium.org>
Date: Fri Aug 24 05:18:16 2018

Fix opening file from Launcher search

The IF condition is inverted, it should return when it isn't a native
FileEntry/DirectoryEntry, only FilesAppEntry's types have "type_name"
attribute defined.

Test: New browser test being added on crrev.com/c/1186295
Bug:  869481 
Change-Id: Icfdbdedc8289c65447f02c0604e6a36ac8176e6b
Reviewed-on: https://chromium-review.googlesource.com/1186006
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585698}
[modify] https://crrev.com/1441a75447e7e60b160916ea28d7795f730576c2/ui/file_manager/file_manager/background/js/launcher_search.js
[modify] https://crrev.com/1441a75447e7e60b160916ea28d7795f730576c2/ui/file_manager/file_manager/common/js/util.js
[modify] https://crrev.com/1441a75447e7e60b160916ea28d7795f730576c2/ui/file_manager/file_manager/foreground/js/file_tasks.js

Project Member

Comment 17 by bugdroid1@chromium.org, Aug 24

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

commit 8678da2a4bc31a3e5a273a20b745ea60e05880d8
Author: Luciano Pacheco <lucmult@chromium.org>
Date: Fri Aug 24 05:23:12 2018

Add tests for opening file from Launcher search

Add new test file for tests related to Launcher.

Add test util to call the Files app event listener that listens to
chrome.launcherSearchProvider.OnOpenResult event, which emulates a
call from the Launcher app.

Bug:  869481 
Change-Id: I178b20a8860348d613dd655291747a98e94cce95
Reviewed-on: https://chromium-review.googlesource.com/1186295
Reviewed-by: Noel Gordon <noel@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585699}
[modify] https://crrev.com/8678da2a4bc31a3e5a273a20b745ea60e05880d8/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
[modify] https://crrev.com/8678da2a4bc31a3e5a273a20b745ea60e05880d8/ui/file_manager/file_manager/background/js/test_util_base.js
[add] https://crrev.com/8678da2a4bc31a3e5a273a20b745ea60e05880d8/ui/file_manager/integration_tests/file_manager/launcher_search.js
[modify] https://crrev.com/8678da2a4bc31a3e5a273a20b745ea60e05880d8/ui/file_manager/integration_tests/file_manager_test_manifest.json

Labels: Merge-Request-69
Requesting merge of crrev.com/c/1186006

I've tested the fix by creating a new branch from branch-heads/3497, patched the cl and manually tested the issue which is working.
Project Member

Comment 19 by sheriffbot@chromium.org, Aug 24

Labels: -Merge-Request-69 Merge-Review-69 Hotlist-Merge-Review
This bug requires manual review: We are only 10 days from stable.
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), kariahda@(iOS), cindyb@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -M-70
Labels: -Merge-Review-69 Merge-Approved-69
Merge of #18 approved, M69.
Project Member

Comment 22 by bugdroid1@chromium.org, Aug 31

Labels: -merge-approved-69 merge-merged-3497
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2806df0b2c01350a441ffdb35d82293cf3575b0a

commit 2806df0b2c01350a441ffdb35d82293cf3575b0a
Author: Luciano Pacheco <lucmult@chromium.org>
Date: Fri Aug 31 05:34:23 2018

Fix opening file from Launcher search

The IF condition is inverted, it should return when it isn't a native
FileEntry/DirectoryEntry, only FilesAppEntry's types have "type_name"
attribute defined.

Test: New browser test being added on crrev.com/c/1186295
Bug:  869481 
Change-Id: Icfdbdedc8289c65447f02c0604e6a36ac8176e6b
Reviewed-on: https://chromium-review.googlesource.com/1186006
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: Noel Gordon <noel@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#585698}(cherry picked from commit 1441a75447e7e60b160916ea28d7795f730576c2)
Reviewed-on: https://chromium-review.googlesource.com/1198710
Reviewed-by: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/branch-heads/3497@{#858}
Cr-Branched-From: 271eaf50594eb818c9295dc78d364aea18c82ea8-refs/heads/master@{#576753}
[modify] https://crrev.com/2806df0b2c01350a441ffdb35d82293cf3575b0a/ui/file_manager/file_manager/background/js/launcher_search.js
[modify] https://crrev.com/2806df0b2c01350a441ffdb35d82293cf3575b0a/ui/file_manager/file_manager/common/js/util.js
[modify] https://crrev.com/2806df0b2c01350a441ffdb35d82293cf3575b0a/ui/file_manager/file_manager/foreground/js/file_tasks.js

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Verified on ChromeOS 10895.49.0, 69.0.3497.87 beta-channel

Sign in to add a comment