<?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>240677</bug_id>
          
          <creation_ts>2022-05-19 11:32:48 -0700</creation_ts>
          <short_desc>Need to keep the document alive in KeyframeEffect::processKeyframes()</short_desc>
          <delta_ts>2022-05-19 12:48:45 -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>Animations</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>darin</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>saam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1870479</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-19 11:32:48 -0700</bug_when>
    <thetext>Since we use the provided Document in KeyframeEffect::processKeyframes() and it&apos;s just a reference, we should ensure it&apos;s kept alive while this method is called.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870480</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-19 11:33:04 -0700</bug_when>
    <thetext>rdar://93513759</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870485</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-19 11:41:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/796</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870487</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-05-19 11:42:53 -0700</bug_when>
    <thetext>Landed https://commits.webkit.org/250756@main (r294497)!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1870506</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-05-19 12:48:45 -0700</bug_when>
    <thetext>We are really going to have to discuss this as a team. Our overall strategy was supposed to be that callers have to ref/deref things, not that functions must protect the things they are passed. So the caller is supposed to ref/deref the document, not the processKeyframes function. But maybe that strategy is impractical, since even a Node&apos;s document is not ref&apos;d if the Node is moved to another document?

If we do need to &quot;protect&quot; things then we need a discipline for knowing when it’s needed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>