-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_NewWindowRequested does not handle Shift and middle mouse click #168
Comments
While we're on NewWindowRequested, target doesn't seem to be available anywhere. |
Thanks @TcT2k I would also expect that. We'll look into it. @ukandrewc, that sounds like a feature request. At the point that we're firing a NewWindowRequested we've already interpreted target and figured out that we need to handle the navigation in a new window. Do you need to do additional work on the target? |
@david-risney, yes. route it to a tab of the same name, if it's already open. |
Just thought, unless you would route to an existing target if there is one? |
Yes we currently respect the target and route to the existing WebView2 if there is already one and otherwise can end up firing the NewWindowRequested event. For example, if in webview A in script you do Did you want the target so that you could handle it correctly like described above, or are you trying to do some custom handling of the target? |
That workflow is just what we need for our tabbed browser. The only thing that may be useful, is to have the target in NewWindowRequestedEventArgs. |
@david-risney The middle mouse click issue is still not resolved in the GA version |
Hi Everyone, This issue has been resolved in the 1.0.707-prerelease package. |
Just tested with Edge canary, and can confirm it works. Thanks. |
While opening new windows via the context menu has been fixed in the latest release (see #108
Using Shift+Left Mouse Click or Middle mouse click still opens a new window without triggering the new window event.
I would expect the
NewWindowRequested
event to be triggered or at have another mechanism to detect and/or deny such actions.AB#26187414
The text was updated successfully, but these errors were encountered: