This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26578 - Register/unregister for certain event interface is incorrect.
Summary: Register/unregister for certain event interface is incorrect.
Status: NEW
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Image Capture API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-14 06:46 UTC by Alfredo Yang
Modified: 2014-08-21 10:07 UTC (History)
3 users (show)

See Also:


Attachments

Description Alfredo Yang 2014-08-14 06:46:48 UTC
https://dvcs.w3.org/hg/dap/raw-file/default/media-stream-capture/ImageCapture.html#widl-ImageCapture-onphoto

"Register/unregister for photo events of type BlobEvent. The handler should expect to get a BlobEvent object as its first parameter."

You don't register for certain event interface, like BlobEvent, you add handler for certain event type. And same event type can be used with many event interfaces.

It just means that event.type is "photo".
target.dispatchEvent(new MouseEvent("photo")); is perfectly valid.


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=916643#c44