-
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]: attachment:// scheme not working anymore #5086
Comments
I tried it in a new project and it worked as expected. I will keep trying to understand what's going on. |
I did some more testing, and the issue didn’t occur because I was testing on another machine with Runtime 132.0.2957.140. |
@Hyrius please share a snippet of how you are using the API. |
Hey! I attached a sample project in my last comment. Clicking the link in the WebView2 works if the Runtime is 132, but is blocked if it is 133. |
Thanks @Hyrius, somehow my brain skipped over it. Marking the regression as tracked. |
This is due to "|" not a valid character in URL path. which makes the URL invalid. This is in line with what is true with edge/chrome behavior. Also I do see you are handling navigationStarting event and cancelling the request. You can also look at implementing custom scheme and listening to WebResourceRequested event for that filter. |
I'm canceling in this example to prevent navigation to about:blank#blocked, which would make the link disappear. It worked perfectly in Runtime version 133 with valid links, and I didn’t need to implement a custom scheme for my use case. |
@Hyrius I tried with runtime 132 as well, and it is failing with "|". Can you please share etw traces if it is working for older runtime. |
@prija-microsoft Okay, so I did what you asked, but it seems like it failed... I think the ETL file wasn't created. |
What happened?
I have links referencing attachment://file.ext that I handled programmatically, but it just stopped working and now I'm getting the Uri as about:blank#blocked in my events. Did anything change?
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
133.0.3065.39
SDK Version
No response
Framework
Winforms
Operating System
Windows 11
OS Version
No response
Repro steps
It's a manually loaded HTML page containing links like
<a href="attachment://file.jpg">attachment 1</a>
and I used to be able to deal with them programmatically in the NavigationStarting event.Now, e.Uri is about:blank#blocked.
It seems to only occur in links added using JavaScript, a sample project was added in the comments.
Repros in Edge Browser
No response
Regression
Regression in newer Runtime
Last working version (if regression)
132.0.2957.140
The text was updated successfully, but these errors were encountered: