Page 1 of 1

Adblock Plus broken in Safari Technology Preview release 11

Posted: Wed Aug 24, 2016 10:55 pm
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

Re: Adblock Plus broken in Safari Technology Preview release 11

Posted: Wed Aug 24, 2016 10:56 pm
by cdumez
The standard equivalent would be to call initEvent("eventName", false, false).

Re: Adblock Plus broken in Safari Technology Preview release 11

Posted: Thu Aug 25, 2016 8:30 am
by mapx
You should report the issue directly on bug tracker
https://issues.adblockplus.org

Re: Adblock Plus broken in Safari Technology Preview release 11

Posted: Thu Aug 25, 2016 3:48 pm
by lewisje