Description
What happened?
For each navigation start event there are generaly
(at least for normal https pages)
a first WebResourceRequest event with context
equal to COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT
That seems perfectly normal and useful,
but when a new page is created via NewWindowRequest/put_NewWindow,
there are a navigation start event but
no WebResourceRequest event with context
equal to COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT.
The document is loaded but the corresponding WebResourceRequest event
is missing.
the documention say :
Other methods which should affect the new web contents like
add_WebResourceRequested have to be called after setting NewWindow (put_NewWindow);
It's exactly what I did.
Importance
Low. My app is not very affected, or this only affects development.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
137.0.3296.93
SDK Version
1.0.2739.15
Framework
Win32
Operating System
Windows 10
OS Version
No response
Repro steps
just code and test.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response