<?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>249736</bug_id>
          
          <creation_ts>2022-12-21 12:01:51 -0800</creation_ts>
          <short_desc>&quot;Commit time&quot; data is wrong with UI-side compositing</short_desc>
          <delta_ts>2022-12-22 11:44:37 -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>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>249750</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=249750</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=249796</see_also>
          <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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
    
    <cc>pangle</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1921174</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-12-21 12:01:51 -0800</bug_when>
    <thetext>When web inspecting iOS, or macOS with UI-side compositing enabled, the green &quot;commit time&quot; events in the timeline are always short. I think they only track the time in the fake CA commit triggers in RemoteLayerTreeDrawingArea::displayDidRefresh(), because they are registered like this:


void RemoteLayerTreeDrawingArea::addCommitHandlers()
{
    if (m_webPage.firstFlushAfterCommit())
        return;

    [CATransaction addCommitHandler:[retainedPage = Ref { m_webPage }] {
        if (Page* corePage = retainedPage-&gt;corePage()) {
            if (Frame* coreFrame = retainedPage-&gt;mainFrame())
                corePage-&gt;inspectorController().willComposite(*coreFrame);
        }
    } forPhase:kCATransactionPhasePreLayout];
    
    [CATransaction addCommitHandler:[retainedPage = Ref { m_webPage }] {
        if (Page* corePage = retainedPage-&gt;corePage()) {
            if (Frame* coreFrame = retainedPage-&gt;mainFrame())
                corePage-&gt;inspectorController().didComposite(*coreFrame);
        }
        retainedPage-&gt;setFirstFlushAfterCommit(false);
    } forPhase:kCATransactionPhasePostCommit];
    
    m_webPage.setFirstFlushAfterCommit(true);
}

This is wrong because there are no CA Commits (other than this garbage-collection one) in the web process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921175</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-12-21 12:02:17 -0800</bug_when>
    <thetext>&lt;rdar://problem/103608655&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1921444</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-12-22 11:44:37 -0800</bug_when>
    <thetext>Bug 249750 fixed this but see also bug 249796.

*** This bug has been marked as a duplicate of bug 249750 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>