[Bug 12574] AbstractWorker and WorkerGlobalScope should inherit EventTarget

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12574

Jonas Sicking <jonas@sicking.cc> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |

--- Comment #3 from Jonas Sicking <jonas@sicking.cc> 2011-06-21 17:58:52 UTC ---
All other specifications that define EventTargets are putting them on the
prototype chain. DOM Core[1], indexedDB[2], and XHR[3] already does this.

Further, it actually makes it possible to extend the EventTarget interface
which is a good thing (for example it lets people implement the "enumerate all
registered listener API which is asked for every now and then by overriding
add/removeEventListener).

[1]http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-node
[2]http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#request-api
[3]http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-xmlhttprequest-interface

We're planning on making the same change to other interfaces, like FileReader
and WebSocket in Firefox.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 21 June 2011 17:59:00 UTC