| Index: core/events/EventTarget.idl
|
| diff --git a/core/events/EventTarget.idl b/core/events/EventTarget.idl
|
| index 3a37d1936b3dc974e47dc8b287eeb4d89fd56235..b17db3f6d626bb48f82fe7683f81c66501e536ea 100644
|
| --- a/core/events/EventTarget.idl
|
| +++ b/core/events/EventTarget.idl
|
| @@ -21,14 +21,11 @@
|
| // https://dom.spec.whatwg.org/#interface-eventtarget
|
|
|
| [
|
| - CheckSecurity=Window,
|
| + CheckSecurity=Receiver,
|
| WillBeGarbageCollected,
|
| Exposed=(Window,Worker)
|
| ] interface EventTarget {
|
| - // FIXME: first 2 args should be required, but throwing TypeError breaks
|
| - // legacy content. http://crbug.com/353484
|
| - // FIXME: type should not be nullable.
|
| - [Custom=(CallPrologue,CallEpilogue)] void addEventListener(optional DOMString? type = null, optional EventListener? listener = null, optional boolean capture = false);
|
| - [Custom=(CallPrologue,CallEpilogue)] void removeEventListener(optional DOMString? type = null, optional EventListener? listener = null, optional boolean capture = false);
|
| - [RaisesException] boolean dispatchEvent(Event event);
|
| + [Custom] void addEventListener(DOMString type, EventListener? listener, optional (EventListenerOptions or boolean) options);
|
| + [Custom] void removeEventListener(DOMString type, EventListener? listener, optional (EventListenerOptions or boolean) options);
|
| + [ImplementedAs=dispatchEventForBindings, RaisesException] boolean dispatchEvent(Event event);
|
| };
|
|
|