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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>103257</bug_id>
          
          <creation_ts>2012-11-26 08:09:38 -0800</creation_ts>
          <short_desc>crossOrigin property on HTMLMediaElement is not supported</short_desc>
          <delta_ts>2022-06-03 11:38:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>159459</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=103926</see_also>
          <bug_file_loc>http://w3c-test.org/html/tests/submission/Opera/media/interfaces/HTMLElement/HTMLMediaElement/crossOrigin.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>electroteque</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>graouts</cc>
    
    <cc>syoichi</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>775489</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2012-11-26 08:09:38 -0800</bug_when>
    <thetext>It appears the crossOrigin property of HTMLMediaElement is not support at all. This makes the Opera-submitted test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/HTMLElement/HTMLMediaElement/crossOrigin.html fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>776494</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">ml</who>
    <bug_when>2012-11-27 01:52:42 -0800</bug_when>
    <thetext>&lt;rdar://problem/12756199&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142130</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-11-15 13:09:35 -0800</bug_when>
    <thetext>*** Bug 151294 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142165</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Rossi">electroteque</who>
    <bug_when>2015-11-15 23:08:27 -0800</bug_when>
    <thetext>Let me bring example code over to here with one exception. IOS didn&apos;t like the extra arguments to drawImage and produces a blank canvas ! 

this.canvas = document.createElement(&quot;canvas&quot;);
    this.canvas.setAttribute(&quot;width&quot;, width);
    this.canvas.setAttribute(&quot;height&quot;, height);
var ctx = this.canvas.getContext(&apos;2d&apos;);
 ctx.drawImage(video,0, 0, width, height);
var dataURL = this.canvas.toDataURL(&quot;image/&quot; + this.type, this.quality);

Without the proxy work around this will fail because lack of crossorigin attribute. The default android browser suffers the same issue however it also fails with the security work around ! 

Here is a working example for safari IOS and IE11 with the proxy work around, it makes a capture from an offscreen video tag with the reformatted url of the same sub domain, it will fail even with the same top level domain.

https://flowplayer.electroteque.org/snapshot/fp6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142166</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Rossi">electroteque</who>
    <bug_when>2015-11-15 23:10:19 -0800</bug_when>
    <thetext>An example of the nginx proxy in action,

flowplayer.electroteque.org/video/big_buck_bunny_480p_h264.mp4

it does an nginx reverse proxy to 

videos.electroteque.org/big_buck_bunny_480p_h264.mp4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873806</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-02 22:15:20 -0700</bug_when>
    <thetext>I think it is now supported because I can see &quot;crossOrigin&quot; in HTMLMediaElement source file on Webkit Github mirror.

Link - https://github.com/WebKit/WebKit/blob/cd3c4119cce0c4edca2a0b03a338e61f8ae03960/Source/WebCore/html/HTMLMediaElement.cpp

If someone else need to be done, please update or open separate bugs. Also I am unable to retrieve above Opera submitted result. I tried to look into WPT.FYI but didn&apos;t find this test as well (might have been renamed). Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1873964</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-06-03 11:36:57 -0700</bug_when>
    <thetext>Thank you for checking!

*** This bug has been marked as a duplicate of bug 159459 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>