You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made an nice Win32/Win64 app using webview2
and this app was very reliable before I meet this bug.
The BIG problem with this bug is
than it only happen without a debugger (and close abruptly my app) :
when running with the VS2022 debugger this bug never happen !
so I worked hard and used ASAN and Dbgview and I localized the problem:
the problem is than for some navigations sequence
I get a
WebResourceRequested event
with a get_Source returning an empty string (the context is COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING),
(I writed my code assuming than get_Source never could return an empty string)
and badly this event never happen when using the VS2022 debugger.
to reproduce (don't use a debugger) :
Navigate("data:,test")
then
Navigate("https://www.google.com") <- here WebResourceRequested with get_Source empty and COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT
GoBack() <- WebResourceRequested with get_Source empty and COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING ONLY WITHOUT DEBUGGER
note : the WebResourceRequested even with get_Source empty and COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT
happen with the VS2022 debugger.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The story :
I made an nice Win32/Win64 app using webview2
and this app was very reliable before I meet this bug.
The BIG problem with this bug is
than it only happen without a debugger (and close abruptly my app) :
when running with the VS2022 debugger this bug never happen !
so I worked hard and used ASAN and Dbgview and I localized the problem:
the problem is than for some navigations sequence
I get a
WebResourceRequested event
with a get_Source returning an empty string (the context is COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING),
(I writed my code assuming than get_Source never could return an empty string)
and badly this event never happen when using the VS2022 debugger.
to reproduce (don't use a debugger) :
Navigate("data:,test")
then
Navigate("https://www.google.com") <- here WebResourceRequested with get_Source empty and COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT
GoBack() <- WebResourceRequested with get_Source empty and COREWEBVIEW2_WEB_RESOURCE_CONTEXT_PING ONLY WITHOUT DEBUGGER
note : the WebResourceRequested even with get_Source empty and COREWEBVIEW2_WEB_RESOURCE_CONTEXT_DOCUMENT
happen with the VS2022 debugger.
Beta Was this translation helpful? Give feedback.
All reactions