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

Cannot listen onBeforeRequest on some webpage including Service Worker (Chrome) #48

Open
piroor opened this issue Nov 21, 2022 · 1 comment

Comments

@piroor
Copy link
Member

piroor commented Nov 21, 2022

Ref: ThinBridge/ThinBridge#8 https://gitlab.com/clear-code/browserselector/-/issues/10

Steps to reproduce

  1. Disable IE View WE on Chrome.
  2. Go to https://control.akamai.com/apps/auth/ and confirm that a Service Worker is registered.
  3. Enable IE View WE.
  4. Set IE View WE to open the webpage with IE.
  5. Reload the tab.

Expected

  • The tab is opened by IE.

Actual


On this situation webRequest.onBeforeRequest is not dispatched to addons. To listen events we need to unregister the Service Worker for the webpage.

@piroor
Copy link
Member Author

piroor commented Nov 25, 2022

Workaround: Delete %LocalAppData%\Google\Chrome\User Data\Default\Service Worker to unregister installed Service Workers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant