chromiumembedded / cef

Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
https://bitbucket.org/chromiumembedded/cef/
Other
3.24k stars 455 forks source link

get_resource_handler is not called for requests from worker #3780

Open tomaszkunicki opened 2 weeks ago

tomaszkunicki commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Setup resource handler to show requests
  2. Load worker and execute fetch() (i.e. fetch('/test.json')
  3. resource handler is not called for the worker request

Expected behavior get_resource_handler function should be called for all requests and it was wworking in previous versions

Versions (please complete the following information):

Additional context It requires creating minimum browser with request handler and worker

magreenblatt commented 1 week ago

WebWorker requests will go to CefRequestContextHandler::GetResourceRequestHandler. Did you implement that?

tomaszkunicki commented 1 week ago

@magreenblatt Yes. It works perfectly in CEF 127. In CEF 128 the handler is never called if fetch is called from the worker.