<?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>12434</bug_id>
          
          <creation_ts>2007-01-27 03:21:50 -0800</creation_ts>
          <short_desc>Removing SVG animation element during animation crashes WebKit</short_desc>
          <delta_ts>2011-05-06 09:42:57 -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>SVG</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>http://www.w3.org/Graphics/SVG/Test/20061213/htmlEmbedHarness/full-animate-elem-40-t.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41761</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bdakin</cc>
    
    <cc>jeffschiller</cc>
    
    <cc>krit</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32124</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:21:50 -0800</bug_when>
    <thetext>This is similar to the bug:
http://bugs.webkit.org/show_bug.cgi?id=12065
which covers removing the animation *target* during animation.

This bug refers to removing the actual animation element.

See the attached test case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32125</commentid>
    <comment_count>1</comment_count>
      <attachid>12703</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:26:13 -0800</bug_when>
    <thetext>Created attachment 12703
test case (crashes safari)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32126</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:32:08 -0800</bug_when>
    <thetext>Part of the problem is that animation notification lists are held off of the time scheduler, which is held off of the containing &lt;svg&gt; element.  this is done because (according to the spec) each &lt;svg&gt; document fragment can have an independent animation timeline.  (Which sorta makes sense, given the desire to build an animation editor within SVG.)  So if you remove an animation element (even if it&apos;s kept alive) it will have trouble finding its &lt;svg&gt; element to remove itself from the notify list.

The best fix is to re-work the animation notify system, as discussed in:
http://bugs.webkit.org/show_bug.cgi?id=12432

But short of that, an easier fix, is to implement willRemove() and insertedIntoDocument() and add/remove the animation from the notify list on the parent &lt;svg&gt;.

In order to support independent timelines for &lt;svg&gt; document fragments (as mentioned in http://bugs.webkit.org/show_bug.cgi?id=12073), we&apos;ll need to actually be careful to update the animation element if moving between &lt;svg&gt; document fragments (that may also affect the target of the animation, among other things, and certainly would stop the animation when removing it from one fragment before inserting it into the other).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32108</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-01-27 03:51:59 -0800</bug_when>
    <thetext>I believe this bug is the cause of the crash here:
http://www.w3.org/Graphics/SVG/Test/20061213/htmlEmbedHarness/full-animate-elem-40-t.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31137</commentid>
    <comment_count>4</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-01-29 03:53:02 -0800</bug_when>
    <thetext>&lt;rdar://problem/4960664&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25387</commentid>
    <comment_count>5</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-07 01:09:03 -0800</bug_when>
    <thetext>&lt;rdar://problem/4960506&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21344</commentid>
    <comment_count>6</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2007-02-26 11:46:03 -0800</bug_when>
    <thetext>No longer a P1, since animation is disabled for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58779</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-18 00:31:17 -0700</bug_when>
    <thetext>Animation has been re-enabled on trunk (as part of SVG_EXPERIMENTAL_FEATURES) thus this should be bumped back to P1 according to the bug guidelines (and mjs).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65360</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-27 01:42:56 -0800</bug_when>
    <thetext>Animation is turned off again in trunk (a good thing).  This can be pushed down to a P3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75379</commentid>
    <comment_count>9</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-03-26 17:09:56 -0700</bug_when>
    <thetext>Animation is back on.  This goes back to p1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109615</commentid>
    <comment_count>10</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-02-12 21:35:26 -0800</bug_when>
    <thetext>Related to bug 12065?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399485</commentid>
    <comment_count>11</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2011-05-06 07:05:16 -0700</bug_when>
    <thetext>I can&apos;t reproduce this using a recent checkout.
Cheers,

Rob.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399568</commentid>
    <comment_count>12</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2011-05-06 09:42:57 -0700</bug_when>
    <thetext>This was fixed several month ago. Forgot to close the bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>12703</attachid>
            <date>2007-01-27 03:26:13 -0800</date>
            <delta_ts>2007-01-27 03:26:13 -0800</delta_ts>
            <desc>test case (crashes safari)</desc>
            <filename>test.svg</filename>
            <type>image/svg+xml</type>
            <size>511</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHJlY3QgaWQ9InJl
Y3QiIGZpbGw9ImdyZWVuIiB3aWR0aD0nNTAnIGhlaWdodD0nNTAnPgogICAgICA8YW5pbWF0ZVRy
YW5zZm9ybSBpZD0nYW5pbWF0aW9uJyBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNj
YWxlIiBmcm9tPSIxIiB0bz0iMiIgZHVyPSIxcyIgZmlsbD0iZnJlZXplIi8+CiAgICA8L3JlY3Q+
CgogICAgPHNjcmlwdD4KICAgICAgICA8IVtDREFUQVsKICAgICAgICB2YXIgdGVzdEZ1bmN0aW9u
ID0gZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHZhciBhbmltYXRpb24gPSBkb2N1bWVudC5nZXRF
bGVtZW50QnlJZCgiYW5pbWF0aW9uIikKICAgICAgICAgICAgYW5pbWF0aW9uLnBhcmVudE5vZGUu
cmVtb3ZlQ2hpbGQoYW5pbWF0aW9uKTsKICAgICAgICB9CiAgICAgICAgd2luZG93LnNldFRpbWVv
dXQodGVzdEZ1bmN0aW9uLCAxMCk7CiAgICAgICAgXV0+CiAgICA8L3NjcmlwdD4KPC9zdmc+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>