New issue
Advanced search Search tips

Issue 682544 link

Starred by 2 users

Issue metadata

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


Participants' hotlists:
MacViews-Task-Queue


Sign in to add a comment

MacViews: ASYNC flag may be ignored for COMBOBOX and CONTEXT_MENU types.

Project Member Reported by karandeepb@chromium.org, Jan 19 2017

Issue description

On MacViews, the COMBOBOX and CONTEXT_MENU menu run types are generally shown using
a native NSMenu which runs the run loop in NSEventTrackingRunLoopMode and
blocks. Hence the ASYNC run type is ignored for these menu run types on
MacViews.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Jan 20 2017

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

commit 454b8e5ae37b38fc67695e8a149dbe4bc982f3de
Author: karandeepb <karandeepb@chromium.org>
Date: Fri Jan 20 08:16:33 2017

MenuRunner: Add comment to specify blocking behavior on MacViews.

On MacViews, the COMBOBOX and CONTEXT_MENU menu run types are always shown using
a native NSMenu which runs the run loop in NSEventTrackingRunLoopMode and
blocks. Hence the ASYNC run type is ignored for these menu run types on
MacViews. Add comment to that effect.

BUG= 682544 

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

[modify] https://crrev.com/454b8e5ae37b38fc67695e8a149dbe4bc982f3de/ui/views/controls/menu/menu_runner.h

Labels: MacViews-Controls
Cc: tapted@chromium.org
Labels: MacViews-Browser
All views menus are supposed to be async now (since 5ab7c2d09320aa6f4fc6ba0118908ac7e378e77b), but this doesn't seem to have any negative effects in practice. tapted@, do you think we can punt this until MacViews-Browser time?

I'm speculatively tagging this MacViews-Browser.
Yeah there's no such thing as an asynchronous NSMenu (maybe if we spawn a thread....?). So this isn't really "fixable" without phasing out NSMenu. It's just something to be wary of. But like you say, nothing seems to be unhappy about menus being blocking on Mac, but async elsewhere.

(background: r466469 came about because menus on Android can never be blocking, but toolkit-views on Android is still ??).
Labels: M-X
Labels: -Pri-3 -M-X Target-67 Pri-2
Owner: sdy@chromium.org
Status: Assigned (was: Available)
MacViews triage: assigning to sdy@ as part of MacViews menu work. Let's target M67 for getting menus to do something sensible.

Comment 7 by gov...@chromium.org, Mar 27 2018

Cc: ellyjo...@chromium.org
Labels: M-67
As this is targeted for M67, pls have fix landed ASAP to trunk. Thank you

Comment 8 by sdy@chromium.org, Mar 28 2018

Cc: sdy@chromium.org
Owner: ellyjo...@chromium.org
ellyjones@: Over to you for assignment, unless I finish the compositing stuff and end up taking it back?

Comment 9 by sdy@chromium.org, Mar 28 2018

Cc: lgrey@chromium.org
lgrey@: This is relevant to you, too.
** Bulk Edit **

There are only two M67 dev releases left on 04/03 & 04/10 before M67 branch on 04/12. Please try to land the fix ASAP to trunk so we can move forward with 50%-50% experiment on M67 Canary/Dev (if possible at all). Thank you.
** Bulk Edit **

There is only one dev release left 04/10 before M67 branch on 04/12. Please try to land the fix ASAP to trunk so we can move forward with 50%-50% experiment on M67 Canary/Dev (if possible at all). Thank you.

FYI: Change/Fix has to be landed in trunk latest by 4:00 PM PT, Friday (04/06) so we can pick it up for next week dev release. 
Status: Started (was: Assigned)
This change will be fixed by <https://chromium-review.googlesource.com/c/chromium/src/+/998016>, which switches these menus to use Views menus.
Status: Fixed (was: Started)
Labels: Needs-Feedback
Tested the issue on latest chrome version 67.0.3396.0 using Mac 10.12.6 with steps mentioned below(checked as per comment# 12):
1) Launched chrome version and by enabling and disabling views-browser-windows flag from chrome://flags observed Three-dot menu, Combo box and Bookmarks bar
2) On enabling the views-browser-windows flag observed change in UI for the Three-dot menu, Combo box and Bookmarks bar

@karandeepb: Please find the attached screenshots on enabling and Disabling of views-browser-windows flag for your reference and help us in verifying the fix.

Thanks!
Disabled -MacViews flag - Three Dot Menu .png
34.4 KB View Download
Disabled -MacViews flag - Combo Box.png
49.3 KB View Download
Disabled -MacViews flag - Bookmarks bar.png
14.0 KB View Download
Enabled -MacViews flag - Three Dot Menu .png
36.5 KB View Download
Enabled -MacViews flag - Combo Box.png
50.2 KB View Download
Enabled -MacViews flag - Bookmarks bar.png
15.1 KB View Download
The design change was deliberate and that looks as expected.
Labels: TE-Verified-M68 TE-Verified-68.0.3401.0
The issue is fixed on the latest Canary 68.0.3401.0 on Mac OS 10.12.6 as per comment #14.

By enabling #views-browser-windows flag, can observe Three-dot menu, Combo box and Bookmarks bar as attached in comment #14.

Hence adding TE verified labels as the fix is working as intended.

Thanks..

Sign in to add a comment