Skip to content

golem.de.js crashes angular app #444

Description

@4P-Reinhard

Prerequisites

  • [x ] I verified that this is not a filter issue
  • [ x] This is not a support issue or a question
  • [x ] I performed a cursory search of the issue tracker to avoid opening a duplicate issue
    • Your issue may already be reported.
  • I tried to reproduce the issue when...
    • [ x] uBlock Origin is the only extension
    • [ x] uBlock Origin with default lists/settings
    • using a new, unmodified browser profile
  • [ x] I am running the latest version of uBlock Origin
  • I checked the documentation to understand that the issue I report is not a normal behavior

Description

uBlock does break the angular app, because of this injected script:
# uBlockOrigin/uAssets#88
golem.de.js application/javascript
(function() {
var rael = window.addEventListener;
window.addEventListener = function(a, b, c) {
rael(a, b, c);
if ( /^\sfunction\s()\s*{\swindow.clearTimeout(r)\s}\s*$/.test(b.toString()) ) {
b();
}
}.bind(window);
})();

A specific URL where the issue occurs

https://app.netplay-config.4players.de/

Steps to Reproduce

  1. Load URL with uBlock enabled

Expected behavior:

Only ads & tracking are blocked

Actual behavior:

Angular app crashes because of injected javascript producing an error in the overwritten function addEventListener :

TypeError: b is null dashboard:29:3
addEventListener (index):29
(index):978
supportsPassiveEventListeners Angular
Bootstrap Webpack

Your environment

  • uBlock Origin version: uBlock Origin v1.18.4
  • Browser Name and version: Firefox 65.0.1 (64-Bit)
  • Operating System and version: Windows 10

Activity

  1. uBlock-user commented on Mar 1, 2019

    @uBlock-user
    Member

    same as #368

  2. added
    fixedissue has been addressed
    and removed on Mar 1, 2019
  3. gorhill commented on Mar 1, 2019

    @gorhill
    Member

    Oops, thanks for catching that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedissue has been addressed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions