Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_resource_handler is not called for requests from worker #3780

Open
tomaszkunicki opened this issue Sep 2, 2024 · 2 comments
Open

get_resource_handler is not called for requests from worker #3780

tomaszkunicki opened this issue Sep 2, 2024 · 2 comments
Labels
bug Bug report needs user feedback Additional feedback required

Comments

@tomaszkunicki
Copy link

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):

  • OS: Windows 11
  • CEF Version: 128.4.5

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

@tomaszkunicki tomaszkunicki added the bug Bug report label Sep 2, 2024
@magreenblatt
Copy link
Collaborator

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

@magreenblatt magreenblatt added the needs user feedback Additional feedback required label Sep 5, 2024
@tomaszkunicki
Copy link
Author

tomaszkunicki commented Sep 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report needs user feedback Additional feedback required
Projects
None yet
Development

No branches or pull requests

2 participants