Adblock Plus broken in Safari Technology Preview release 11

Everything about using Adblock Plus on Safari
Post Reply
cdumez
Posts: 2
Joined: Wed Aug 24, 2016 10:52 pm

Adblock Plus broken in Safari Technology Preview release 11

Post by cdumez »

Adblock Plus broken in Safari Technology Preview release 11:
https://developer.apple.com/safari/download/

The reason is that AdBlockPlus calls Event.initEvent() with a single parameter instead of 3:
./ext/content.js: beforeLoadEvent.initEvent("beforeload");
./ext/content.js: evt.initEvent(eventName);
./include.youtube.js: beforeLoadEvent.initEvent("beforeload");

As per the latest DOM specification, all 3 parameters are mandatory:
https://dom.spec.whatwg.org/#event
cdumez
Posts: 2
Joined: Wed Aug 24, 2016 10:52 pm

Re: Adblock Plus broken in Safari Technology Preview release 11

Post by cdumez »

The standard equivalent would be to call initEvent("eventName", false, false).
User avatar
mapx
Posts: 21942
Joined: Thu Jan 06, 2011 2:01 pm

Re: Adblock Plus broken in Safari Technology Preview release 11

Post by mapx »

You should report the issue directly on bug tracker
https://issues.adblockplus.org
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Adblock Plus broken in Safari Technology Preview release 11

Post by lewisje »

There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Post Reply