<?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>17005</bug_id>
          
          <creation_ts>2012-05-08 21:20:05 +0000</creation_ts>
          <short_desc>&lt;embed&gt;: &quot;Whenever an embed element that was not potentially active becomes potentially active, and whenever a potentially active embed element&apos;s src attribute is set, changed, or removed, and whenever a potentially active embed element&apos;s type attribute i</short_desc>
          <delta_ts>2013-04-02 01:00:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#mime-types</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>johns</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67505</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-05-08 21:20:05 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#mime-types
Complete: http://www.whatwg.org/c#mime-types

Comment:
&lt;embed&gt;: &quot;Whenever an embed element that was not potentially active becomes
potentially active, and whenever a potentially active embed element&apos;s src
attribute is set, changed, or removed, and whenever a potentially active embed
element&apos;s type attribute is set, changed, or removed, the appropriate set of
steps from the following is then applied&quot; — that should be done async via a
task, i think (at a minimum in the case of the &apos;being rendered&apos; state
changing, anyway).

Posted from: 216.239.45.4 by ian@hixie.ch
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.10 (KHTML, like Gecko) Chrome/20.0.1123.4 Safari/536.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70759</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:26:26 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18146 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72771</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-25 16:46:53 +0000</bug_when>
    <thetext>(also &quot;is then&quot; should be &quot;must then&quot;, surely...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77481</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-31 00:15:45 +0000</bug_when>
    <thetext>Testing Chrome here is pointless, it even fails tests like:
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1874

Firefox and Opera seem to resolve the URL in the queued task, not before:
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1875
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1876

But it seems they give that task a lower priority than timeout tasks (you can even increase the timeout to more than 10ms and still have it take effect, though anything larger than about 25ms is too much on my machine for Opera, and greater than 150ms is too large for me in Firefox):
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1877

I don&apos;t really understand that last part.

bz: Any input here? Does Gecko really just wait for a over a hundred milliseconds before deciding to actually figure out what&apos;s going on with the &lt;embed&gt; element?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78814</commentid>
    <comment_count>4</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-11-26 05:15:49 +0000</bug_when>
    <thetext>I would guess that the issue is that the fetch of the src is not done until after the Flash plug-in has been instantiated for that &lt;embed&gt;.  And that won&apos;t happen until at least after CSS box construction, whatever IPC is involved in setting up the plug-in, whatever thumb-twiddling Flash itself decides to do, and so forth.  It&apos;s a bit surprising to me if that takes 100+ms, but not surprising enough to rule out...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78866</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-26 20:51:26 +0000</bug_when>
    <thetext>Well I don&apos;t see this leading to much in the way of interop, but it&apos;s just plugins, so I can&apos;t say I&apos;m overly concerned. I guess I can try to spec that you resolve the URL that late, since it&apos;s what browsers are doing anyway. It&apos;ll only break people doing really weird things.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82709</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-02-07 19:40:11 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7703.
Check-in comment: Better match reality, however weird it is.
http://html5.org/tools/web-apps-tracker?from=7702&amp;to=7703</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82710</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-07 19:40:23 +0000</bug_when>
    <thetext>bz: Actually it can&apos;t be that the flash plugin is instantiated before the URL is resolved, because until you fetch the URL, you&apos;ve no idea what plugin you have to instantiate. In fact on my Gecko instance on this (much faster) computer, Flash isn&apos;t installed and I still get different results based on whether the timeout is 30ms (new base URL affects result) or 40ms (new base URL doesn&apos;t affect result).

Anyway, I&apos;ve tried to fix this, as per the diff above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82762</commentid>
    <comment_count>8</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-02-08 17:00:50 +0000</bug_when>
    <thetext>Ian, mind filing a Gecko bug for your issue so we can actually sort out what&apos;s going on there?  Something here is very very fishy...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82831</commentid>
    <comment_count>9</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-09 06:04:37 +0000</bug_when>
    <thetext>bz: You bet. I&apos;ll reopen this to remind me to do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85329</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-01 21:37:33 +0000</bug_when>
    <thetext>bz: Filed https://bugzilla.mozilla.org/show_bug.cgi?id=856816</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85353</commentid>
    <comment_count>11</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2013-04-02 01:00:25 +0000</bug_when>
    <thetext>Ian, thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>