Check context menu item visibility in UI code |
|||||
Issue descriptionsky@ and tapted@, what are thoughts on changing the UI code to support checking context menu item visibility? Background: The Extensions team is adding support for a visibility property in chrome.contextMenus items. See crbug.com/463476 for details. Currently, the context menu UI code* does not check menu items' visibilities and displays whatever is in the context menu model. This is a problem because the context menu model may include hidden items, and the UI code should not display them. We should change the UI code to check context menu item visibility before displaying items. The implementation of the change would be handled by the extensions team and be passed to a UI OWNER for review. *Mac: chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.mm Linux, Windows: chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
,
Jul 31 2017
,
Jul 31 2017
,
Jul 31 2017
does ExtensionContextMenuModel just need to override ui::SimpleMenuModel::IsCommandIdVisible() ? > Yes, this has been implemented. The other plumbing seems to be in place already: > True. Looking into this, the proper visibility checks are in place. I've run some test cases on the visibility checks in the UI code on Mac and Linux. There are a couple UI bugs with respect to item visibility. I have filed these bugs(see comments 2 and 3).
,
Aug 22 2017
,
Aug 23 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by tapted@chromium.org
, Jul 17 2017