-
Notifications
You must be signed in to change notification settings - Fork 54
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
[Problem/Bug]: When using a custom scheme, opening a secondary window fails #4085
Comments
@yildirimcagri-msft this looks like a bug? |
This seems to be because the opened window is opened as a basic popup window and is not associated to a WebView2 and as a result the |
Thank you for the guidance. It sounds like the high level steps to get this to cooperate
|
In CEF3 when we did a window.open() call a new Window was automatically created and the referenced URI content was shown within it. That new Window mapped logically to a new tab in a regular browser. |
I ended up creating a new empty window as the parent for the new web view2 instance. |
What happened?
Our application uses a custom protocol (labware://labware).
![image](https://private-user-images.githubusercontent.com/143733690/277019915-dcf8e5d2-4a68-41f8-b4c3-a2cac2321b50.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDU0ODgsIm5iZiI6MTczOTMwNTE4OCwicGF0aCI6Ii8xNDM3MzM2OTAvMjc3MDE5OTE1LWRjZjhlNWQyLTRhNjgtNDFmOC1iNGMzLWEyY2FjMjMyMWI1MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMDE5NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMjNiNmE0ZDRkZGNmZmI0NGU5MGU4MTFjMGU5ZDkzZTAxNzc5MDA1OTI3Y2U4OWE1Nzk1MGUwNWNjMTE5OWU4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ijb4rG0MeIqfw_Wg6R2D7Rlq1T-MGt6vAvtuI3FfZw8)
Our first window loads successfully (bootstrap.html).
The top and bottom of the main console are shown below.
Our application then opens a second page using
![image](https://private-user-images.githubusercontent.com/143733690/277020326-9f85f849-1a21-4cb6-82c8-0891d33e3cd5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDU0ODgsIm5iZiI6MTczOTMwNTE4OCwicGF0aCI6Ii8xNDM3MzM2OTAvMjc3MDIwMzI2LTlmODVmODQ5LTFhMjEtNGNiNi04MmM4LTA4OTFkMzNlM2NkNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQyMDE5NDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZmQ5NDlhYTc1M2QzMzAyOTQ3MjAxOWQ1YjQxYTUxOWYwNjY4YzJiMTBiYjBlZWUzOWM3MDAzMzdlZTA1MmY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.pVBXOrPfsMLH8-6iBVvA8Zu4FaT7YoQ0YsA1PmO0Lbo)
window.open("whatever", "_blank")
That task page result is just grey for some reason. See the red error text in the console above.
It is odd that the tooltip for the main console log messages shows the custom scheme, things got loaded,
but the attempt to open another page seems to complain about the lack of a custom scheme
that seemed to have just worked.
In my support DLL which interfaces to WebView2 I do see logging entries for the main bootstrap page such as,
I do not see such any such entries for the second page.
Any direction on what I should be looking at would be appreciated.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
117.0.2045.31
SDK Version
No response
Framework
Win32
Operating System
Windows 10
OS Version
No response
Repro steps
This can be reproduced when using a custom schema and loading this HTML page
With the another.html file containing
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: