<?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>101316</bug_id>
          
          <creation_ts>2012-11-06 00:28:15 -0800</creation_ts>
          <short_desc>ShadowRoot::insertedInto is called many times without calling removedFrom when parsing &lt;video controls&gt;</short_desc>
          <delta_ts>2019-10-04 22:48:34 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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>72352</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinya Kawanaka">shinyak</reporter>
          <assigned_to name="Web Components Team">webcomponents-bugzilla</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>morrita</cc>
    
    <cc>rniwa</cc>
    
    <cc>webcomponents-bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>759344</commentid>
    <comment_count>0</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-11-06 00:28:15 -0800</bug_when>
    <thetext>I noticed this when I was working for Bug 100922. This might cause mysterious errors in future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>760338</commentid>
    <comment_count>1</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-11-06 20:26:44 -0800</bug_when>
    <thetext>The root cause seems HTMLMediaElement creates Shadow subtree in insertedInto().
This seems a bad signal...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>762576</commentid>
    <comment_count>2</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2012-11-08 22:31:55 -0800</bug_when>
    <thetext>(In reply to comment #1)

&gt; The root cause seems HTMLMediaElement creates Shadow subtree in insertedInto().
&gt; This seems a bad signal...
It sounds reasonable to get rid of the shadow construction from insertedInto().
I&apos;m not sure where is the best place though. 
It needs further investigation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>763079</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2012-11-09 09:18:23 -0800</bug_when>
    <thetext>Yeah, this is crufty. insertedInto is a really low-level hook, and it&apos;s tempting to use it various convenient purposes. However, being a low-level hook, it&apos;s also a minefield in situations like this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1577184</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-10-04 22:48:34 -0700</bug_when>
    <thetext>configureMediaControls() is now called in HTMLMediaElement::didFinishInsertingNode() so this is no longer happening.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>