[Webkit-unassigned] [Bug 83688] File API does not support DOM events (like addEventListener)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 11 15:34:44 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83688





--- Comment #7 from Erik Arvidsson <arv at chromium.org>  2012-04-11 15:34:44 PST ---
(In reply to comment #6)
> It is not enough to include EventTarget as an extended attribute in the interface section. We also have to include the methods from the EventTarget interface.
> 
> For example, look at Node.idl and XMLHttpRequest.idl. They both include addEventListener, removeEventListener and dispatchEvent.
> 
> Here are the IDL files that are missing the implementation.
> 
> http://code.google.com/p/chromium/source/search?q=file%3A%5C.idl+%5CbEventTarget%28%2C%7C%5Cn%29+-addEventListener&origq=file%3A%5C.idl+%5CbEventTarget%28%2C%7C%5Cn%29+-addEventListener&btnG=Search+Trunk
> 
> The short fix is to add these 3 methods to the 3 incomplete idl files above. The long term, better solution is to implicitly add these method when we have an EventTarget.

Sorry, the long term solution is to follow the spec and make interfaces extend the EventTarget interface instead of implementing it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list