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

fix(adblocker): match logic between onHeadersReceived and onBeforeRequest #2021

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

smalluban
Copy link
Collaborator

@smalluban smalluban commented Nov 3, 2024

This PR matches the logic of the onHeadersReceived listener with the onBeforeRequest.

if (details.tabId < 0 || details.type === 'main_frame') return;

The issue was found with the managed state of the extension. Requests to update the engines generate error logs, as there is no way that the engine is ready yet.

Zrzut ekranu 2024-11-3 o 17 34 24

@smalluban smalluban merged commit 0a8a9a4 into main Nov 4, 2024
2 checks passed
@smalluban smalluban deleted the fix-adblocker branch November 4, 2024 14:06
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

Successfully merging this pull request may close these issues.

2 participants