Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to inject scriptlets at onResponseStarted() time
Related issue: - uBlockOrigin/uBlock-issues#2350 As per AdGuard findings, it's possible (though unreliable) to try to inject scriptlets at webRequest.onResponseStarted time, which increases scriptlet injection reliability overall when injecting from multiple entry points. uBO was already injecting at webNavigation.onCommitted and main content script time, and adding webRequest.onResponseStarted as an entry point for scriptlet injection increases reliability for webpages which executes inline scripts at the top of the DOM. References: - AdguardTeam/AdguardBrowserExtension#1029 - https://github.com/AdguardTeam/AdguardBrowserExtension/blob/9ab85be5/Extension/src/background/webrequest.js#L620
- Loading branch information