New issue
Advanced search Search tips

Issue 845463 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

[MacViews] Web content context menu doesn't take keyboard input

Project Member Reported by thakis@chromium.org, May 22 2018

Issue description

What steps will reproduce the problem?
1. Click omnibox
2. ctrl-click web area to open context menu, keep it open
3. arrow up/down

What is the expected result?

The selection in the context menu moves up and down.


What happens instead of that?

The selection in the omnibox moves up and down.


Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.106 Safari/537.36



 

Comment 1 by thakis@chromium.org, May 22 2018

err "ctrl-click", not "option-click" in 2 of course.

Comment 2 by meh...@chromium.org, May 22 2018

Labels: -Pri-3 Pri-2
Description: Show this description
Adjusted description.
Labels: Needs-TestConfirmation
Status: Unconfirmed (was: Untriaged)
Components: -UI>Browser UI>Browser>Omnibox
Labels: -Needs-TestConfirmation Needs-Feedback Triaged-ET
Tested the issue on chrome version# 68.0.3438.0 using Mac 10.12.6 with steps mentioned below:
1) Launched chrome version, navigated to chrome:/flags and enabled #views-browser-windows flag
2) clicked on omnibox, able to see focus on omnibox
3) Ctrl+Click on web area, context menu opened, used arrow up/down, observed web page moves up and down

@Reporter: Please find the attached screencast for your reference and let us know if you are also observing the same issue which i have captured in the screencast, provide your feedback on it which help in further triaging it.

Thanks!
845463.mp4
2.1 MB View Download

Comment 8 by sdy@chromium.org, May 29 2018

Labels: -Pri-2 -Needs-Feedback Pri-1
Owner: ellyjo...@chromium.org
Status: Assigned (was: Unconfirmed)
Summary: [MacViews] Web content context menu doesn't take keyboard input (was: [macviews] keyboard focus goes to the wrong place when a context menu is open)
I can do this without focusing the omnibox — the up and down arrows scroll the web content with a context menu open. Over to ellyjones@ for triage/assignment.

Comment 9 by sdy@chromium.org, May 29 2018

Here's a quick demo.
crbug_845463_context_menu_keyboard.mp4
2.0 MB View Download
Labels: -Pri-1 M-69 Proj-MacViews Target-69 Pri-2
Cc: ellyjo...@chromium.org
Owner: tapted@chromium.org
Status: Started (was: Assigned)
I'll take it

https://chromium-review.googlesource.com/c/chromium/src/+/1080427
Project Member

Comment 12 by bugdroid1@chromium.org, Jun 1 2018

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

commit 37806cbab68a9100c6e2c5ce99a010f34c533816
Author: Trent Apted <tapted@chromium.org>
Date: Fri Jun 01 03:10:04 2018

Give MacViews renderer context menus an owner.

Menus need an owner to share key handling and for other reasons.

Make them owned in the same way as on other platforms.

TEST=With chrome://flags/#views-browser-windows on Mac, right-click on
WebContents, then press arrow-keys. Menu highlight should move up/down.

Bug:  845463 
Change-Id: Ie3b578db1c2427b7e3367784f8a476b13c9104ed
Reviewed-on: https://chromium-review.googlesource.com/1080427
Reviewed-by: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563512}
[modify] https://crrev.com/37806cbab68a9100c6e2c5ce99a010f34c533816/chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac_views.mm

Status: Fixed (was: Started)
Labels: TE-Verified-M69 TE-Verified-69.0.3449.0
Able to reproduce the issue on chrome reported version 69.0.3447.0(build without fix)
Verified the fix on Mac 10.12.6 on Chrome version# 69.0.3449.0 as per the comment#0
Attaching screen cast for reference.
Observed "The selection in the context menu moves up and down"
Hence, the fix is working as expected.
Adding the verified label.

Thanks!
845463.mp4
3.2 MB View Download
Nice! Filed  issue 849298  as follow-up for arrow-up not doing the right thing now that it does something.

Sign in to add a comment