<?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>262192</bug_id>
          
          <creation_ts>2023-09-27 09:07:41 -0700</creation_ts>
          <short_desc>A GitHub project page with embedded SVG takes an extremely long time to load</short_desc>
          <delta_ts>2023-11-03 01:45:28 -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>Safari 17</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=262343</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=264076</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>cueball045</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>karlcow</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1980531</commentid>
    <comment_count>0</comment_count>
    <who name="">cueball045</who>
    <bug_when>2023-09-27 09:07:41 -0700</bug_when>
    <thetext>Website: https://github.com/facebookincubator/below

The website takes a long time to load, the page hangs. Navigating to sub-links is also slow. This is a WebKit specific behavior, the website loads fine on Chrome. I also tried disabling all the extensions but this looks like a bug with WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980744</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-09-27 17:56:52 -0700</bug_when>
    <thetext>Thsnk you for the report! As this is reported against Safari 17, do you happen to know if this was happening with Safari 16.x before?

It&apos;s taking time under LegacyRenderSVGRoot::layout -&gt; SVGTextMetricsBuilder::walkTree -&gt; WebCore::Font::applyTransforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980758</commentid>
    <comment_count>2</comment_count>
    <who name="">cueball045</who>
    <bug_when>2023-09-27 18:15:41 -0700</bug_when>
    <thetext>Thanks for the prompt response. Yes, this was happening in Safari 16.x as well.
I had reported this for Safari 16 using Feedback Assistant but I should have known better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981016</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-09-28 09:49:09 -0700</bug_when>
    <thetext>Lots of time under:
     2404 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&amp;)  (in WebCore) + 4960  [0x61767b2b0]
       2404 WebCore::LegacyRenderSVGRoot::layout()  (in WebCore) + 1094  [0x6178bfe86]
         2404 WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)  (in WebCore) + 706  [0x6178a03d2]
           2404 WebCore::LegacyRenderSVGContainer::layout()  (in WebCore) + 269  [0x6178b5a6d]
             2404 WebCore::SVGRenderSupport::layoutChildren(WebCore::RenderElement&amp;, bool)  (in WebCore) + 706  [0x6178a03d2]
               2402 WebCore::RenderSVGText::layout()  (in WebCore) + 1309  [0x61558439d]
               ! 2398 WebCore::SVGTextMetricsBuilder::walkTree(WebCore::RenderElement&amp;, WebCore::RenderSVGInlineText*, WebCore::MeasureTextData*)  (in WebCore) + 127  [0x6178b3b4f]
               ! : 2329 WebCore::SVGTextMetricsBuilder::walkTree(WebCore::RenderElement&amp;, WebCore::RenderSVGInlineText*, WebCore::MeasureTextData*)  (in WebCore) + 127  [0x6178b3b4f]
               ! : | 2279 WebCore::SVGTextMetricsBuilder::walkTree(WebCore::RenderElement&amp;, WebCore::RenderSVGInlineText*, WebCore::MeasureTextData*)  (in WebCore) + 92  [0x6178b3b2c]
               ! : | + 1997 WebCore::SVGTextMetricsBuilder::measureTextRenderer(WebCore::RenderSVGInlineText&amp;, WebCore::MeasureTextData*)  (in WebCore) + 1358  [0x6178b31ce]
               ! : | + ! 1404 WebCore::WidthIterator::advance(unsigned int, WebCore::GlyphBuffer&amp;)  (in WebCore) + 188  [0x6174737cc]
               ! : | + ! : 1098 WebCore::WidthIterator::advanceInternal&lt;WebCore::Latin1TextIterator&gt;(WebCore::Latin1TextIterator&amp;, WebCore::GlyphBuffer&amp;)  (in WebCore) + 4011  [0x617474c7b]
               ! : | + ! : | 1054 WebCore::WidthIterator::commitCurrentFontRange(WebCore::AdvanceInternalState&amp;)  (in WebCore) + 963  [0x6174722d3]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981017</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-28 09:49:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/116188712&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981023</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-28 10:27:49 -0700</bug_when>
    <thetext>One potential merge: https://src.chromium.org/viewvc/blink?view=revision&amp;revision=168005

&gt; Eliminate recursion in SVGTextMetricsBuilder::walkTree</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989524</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-02 14:42:37 -0700</bug_when>
    <thetext>I think it is fixed on WebKit ToT (270133@main).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989527</commentid>
    <comment_count>7</comment_count>
    <who name="">cueball045</who>
    <bug_when>2023-11-02 14:50:37 -0700</bug_when>
    <thetext>Is there a way to verify this, maybe in Safari TP? I am not sure which commit fixed it, so cannot check in release notes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989529</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-02 14:52:02 -0700</bug_when>
    <thetext>(In reply to cueball045 from comment #7)
&gt; Is there a way to verify this, maybe in Safari TP? I am not sure which
&gt; commit fixed it, so cannot check in release notes.

I think it might be fixed because of following commit:

https://commits.webkit.org/270110@main

Which is not in Safari Technology Preview. It might be in STP183 or STP184 or even STP185.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989530</commentid>
    <comment_count>9</comment_count>
    <who name="">cueball045</who>
    <bug_when>2023-11-02 14:53:09 -0700</bug_when>
    <thetext>That&apos;s super helpful. Thanks a lot!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989634</commentid>
    <comment_count>10</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2023-11-03 01:45:28 -0700</bug_when>
    <thetext>Yeah, this appears to be fixed on trunk.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>