Replies: 1 comment 1 reply
-
The CEF behaviour has likely changed, you can review the latest API doc at
I don't believe this is correct, OnResourceResponse is not intended to cancel a request. To better understand what's going on you can review the source. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've used ResourceRequestHandler.OnResourceResponse to postpone resources loading (and rendering a new page) until my local job is not finished with previous page. And it worked in 73 version, but does not work in 91.
The comments in code for this part remain the same:
> To redirect or retry the resource load optionally modify and return true.
To recheck I've added 2 classes in CefSharp.Wpf.Example project.
And used URL check instead of more specific condition (I understand that cancellation of resource loading should be done in OnBeforeResourceLoad, just didn't come up with better example here).
So for this example expected behavior: google page won't be loaded.
Actual: it is loaded.
and
ExtendedRequestHandler is set to browser, so breakpoints work during debug in both classes.
Beta Was this translation helpful? Give feedback.
All reactions