<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26578</bug_id>
          
          <creation_ts>2014-08-14 06:46:48 +0000</creation_ts>
          <short_desc>Register/unregister for certain event interface is incorrect.</short_desc>
          <delta_ts>2014-08-21 10:07:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>Image Capture API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alfredo Yang">ayang</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>adam.bergkvist</cc>
    
    <cc>mandyam</cc>
    
    <cc>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>110165</commentid>
    <comment_count>0</comment_count>
    <who name="Alfredo Yang">ayang</who>
    <bug_when>2014-08-14 06:46:48 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/dap/raw-file/default/media-stream-capture/ImageCapture.html#widl-ImageCapture-onphoto

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

You don&apos;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 &quot;photo&quot;.
target.dispatchEvent(new MouseEvent(&quot;photo&quot;)); is perfectly valid.


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

    </bug>

</bugzilla>