Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further improve google-ima shim script
I worked through some of the websites listed in the uBlock issue[1] for the google-ima.js surrogate script, to see what was going wrong. It turned out the addEventListener method supports an optional context Object, which is bound to the listener if provided. Some websites make use of that, and then break when `this` is not bound correctly when events are dispatched. See also duckduckgo/tracker-surrogates#24 1 - uBlockOrigin/uBlock-issues#2265
- Loading branch information