<?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>85447</bug_id>
          
          <creation_ts>2012-05-02 18:49:47 -0700</creation_ts>
          <short_desc>Prevent Encrypted Media Extensions events from being reported when !encryptedMediaEnabled()</short_desc>
          <delta_ts>2020-05-04 07:48:04 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>
          
          <blocked>82968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Dorwin">ddorwin</reporter>
          <assigned_to name="David Dorwin">ddorwin</assigned_to>
          <cc>cturner</cc>
    
    <cc>eric.carlson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>614931</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-05-02 18:49:47 -0700</bug_when>
    <thetext>The [V8EnabledAtRuntime=encryptedMedia] markup in the IDL prevents the Encrypted Media Extensions methods from being called because they are not available to JavaScript. However, at least one of the events and the new error could be reported by the port without the page initiating it. Specifically, a needkey event may be fired if the port detects and encrypted file. Also, it might report MEDIA_ERR_ENCRYPTED.

Rather than modify the behavior of the port, which require passing encryptedMediaEnabled() to various layers, we should prevent the new events and error from being reported. It should be safe to just drop the event and convert MEDIA_ERR_ENCRYPTED to MEDIA_ERR_DECODE since decode is where encrypted content would cause a failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1648528</commentid>
    <comment_count>1</comment_count>
    <who name="Charlie Turner">cturner</who>
    <bug_when>2020-05-04 07:48:04 -0700</bug_when>
    <thetext>This is from old versions of the spec, don&apos;t believe it&apos;s an issue today.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>