Skip to content
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

Tab Navigation in webview2 #94

Open
jcmontoya opened this issue Jun 8, 2021 · 2 comments
Open

Tab Navigation in webview2 #94

jcmontoya opened this issue Jun 8, 2021 · 2 comments

Comments

@jcmontoya
Copy link

I have not been bale to find a sample for tab navigation in C#. The current control does not support tab navigation. I found a sample in C++ but it would help a lot of people having an example of how to create multiple tabs in the same app and pass the security context from tab to tab.

@champnic
Copy link
Member

champnic commented Jun 9, 2021

Hey @jcmontoya - in general the model is to have 1:1 WebView2 to tab. If you use the same user data folder, the WebView2's will share the browser process and create separate renderer processes for the different sites, and this approximates the process model of the browser today. You can find out more about the process model here: https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/process-model

@tgraupmann
Copy link

The integration is not fully there. Right-clicking links show Open in New Window and not Open in New Tab. Links opened in New Windows make the URL readonly.

The best sample of tabs is here.
https://github.com/MicrosoftEdge/WebView2Browser

The browser sample lacks some of the other features from these WebView2Samples like password management.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants