<?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>6809</bug_id>
          
          <creation_ts>2006-01-25 17:23:34 -0800</creation_ts>
          <short_desc>Whole DOM tree can leak if Document is hover/active/focus node on quit</short_desc>
          <delta_ts>2019-02-06 09:04:09 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Maciej Stachowiak">mjs</reporter>
          <assigned_to name="Maciej Stachowiak">mjs</assigned_to>
          <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29943</commentid>
    <comment_count>0</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-01-25 17:23:34 -0800</bug_when>
    <thetext>DocumentImpl keeps the hover, active and focus nodes referenced, so the whole DOM tree can leak if the document itself is hover, active or focus when leaving the page. Without this fix, the editing layout tests show 175 NodeImpl leaks with the counter enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29945</commentid>
    <comment_count>1</comment_count>
      <attachid>5966</attachid>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-01-25 18:04:12 -0800</bug_when>
    <thetext>Created attachment 5966
patch to fix the leak when document is hover/active/focus node

I&apos;m not sure if this is the best approach. Maybe it should be FrameView, not Document, that tracks these nodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29946</commentid>
    <comment_count>2</comment_count>
      <attachid>5966</attachid>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2006-01-25 18:08:35 -0800</bug_when>
    <thetext>Comment on attachment 5966
patch to fix the leak when document is hover/active/focus node

r=me, although the hover/active node should never be the document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29965</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-01-25 19:04:31 -0800</bug_when>
    <thetext>The hover/active node becomes the document because detaching a node makes it walk up the parent chain until it finds a node with a renderer, which the document itself still does when first detaching.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503111</commentid>
    <comment_count>4</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:04:09 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5966</attachid>
            <date>2006-01-25 18:04:12 -0800</date>
            <delta_ts>2006-01-25 18:08:35 -0800</delta_ts>
            <desc>patch to fix the leak when document is hover/active/focus node</desc>
            <filename>hover-focus-active-leak.patch.txt</filename>
            <type>text/plain</type>
            <size>1971</size>
            <attacher name="Maciej Stachowiak">mjs</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDEyMzc1
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTcgQEAKKzIwMDYtMDEt
MjUgIE1hY2llaiBTdGFjaG93aWFrICA8bWpzQGFwcGxl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VudCAhPSAwKSBmcHJpbnRmKHN0ZGVyciwgIkxFQUs6ICVkIE5vZGVJbXBsXG4i
LCBjb3VudCk7IH0KIH07CiBpbnQgTm9kZUltcGxDb3VudGVyOjpjb3VudCA9IDA7CiBzdGF0aWMg
Tm9kZUltcGxDb3VudGVyIG5vZGVJbXBsQ291bnRlcjsK
</data>
<flag name="review"
          id="1407"
          type_id="1"
          status="+"
          setter="hyatt"
    />
          </attachment>
      

    </bug>

</bugzilla>