You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We modify the WebView2 default context menu in our application as described here. Among others we also need to remove the "Refresh" menu item. This page specifies that the Name property is "the English label of the menu item in lower camel case". However, there is no menu item with Name "refresh" although the English label is "Refresh". By pure accident we discovered that the actual Name of that menu item is "reload".
This is a minor inconsistency, but might be confusing to others as well. In the end, one could always enumerate all default menu items and their names to reverse engineer their names that way, but that kind of defeats the purpose of the documentation.
I understand that due to compatibility reasons, you probably cannot change the item name to "refresh" and most likely do not want to change the English label either. So the most likely solution is to change the documentation to point out this inconsistency. There might be other default context menu items affected by this as well.
Importance
Low. My app is not very affected, or this only affects development.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
129.0.2792.52
SDK Version
1.0.2792.45
Framework
Other
Operating System
Windows 11
OS Version
22631.4169
Repro steps
In the CoreWebView2ContextMenuRequested event, iterate over the args.MenuItems and find that the "Refresh" labeled menu item has Name "reload" rather than "refresh".
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
We modify the WebView2 default context menu in our application as described here. Among others we also need to remove the "Refresh" menu item. This page specifies that the Name property is "the English label of the menu item in lower camel case". However, there is no menu item with Name "refresh" although the English label is "Refresh". By pure accident we discovered that the actual Name of that menu item is "reload".
This is a minor inconsistency, but might be confusing to others as well. In the end, one could always enumerate all default menu items and their names to reverse engineer their names that way, but that kind of defeats the purpose of the documentation.
I understand that due to compatibility reasons, you probably cannot change the item name to "refresh" and most likely do not want to change the English label either. So the most likely solution is to change the documentation to point out this inconsistency. There might be other default context menu items affected by this as well.
Importance
Low. My app is not very affected, or this only affects development.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
129.0.2792.52
SDK Version
1.0.2792.45
Framework
Other
Operating System
Windows 11
OS Version
22631.4169
Repro steps
In the CoreWebView2ContextMenuRequested event, iterate over the args.MenuItems and find that the "Refresh" labeled menu item has Name "reload" rather than "refresh".
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: