MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Clarify behavior of combination of SetVirtualHostNameToFolderMapping and WebResourceRequestFilter
@champnic is already working on this.
Since Jan 28, 2022.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm using the WebView2-SDK 1.0.818.41 in C++ and currently trying the following:
- first I call
AddWebResourceRequestedFilterto install a filter for all resources - then I add a
WebResourceRequestedevent handler - finally I call
SetVirtualHostNameToFolderMappingto provide a fall-through for all requests that weren't handled by my event handler. I thought this should work because in one of the samples it is mentioned that "Ifput_Responseis not called, the request will continue as normal."
When I try it like that my WebResourceRequested event handler is never called. It seems that SetVirtualHostNameToFolderMapping grabs the request before. The documentation of SetVirtualHostNameToFolderMapping doesn't contain anything obvious that describes the behavior. So it seems these two functionalities can't be combined.
Can you clarify this and maybe also add some info in the docs?
Thank you in advance!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.