<?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>260468</bug_id>
          
          <creation_ts>2023-08-21 08:39:07 -0700</creation_ts>
          <short_desc>XSLT can take minutes to render with many &lt;audio&gt; elements</short_desc>
          <delta_ts>2023-09-29 02:11:39 -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>Media</component>
          <version>Safari 16</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 13</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=262165</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="Jonathan del Strother">jon</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1972380</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan del Strother">jon</who>
    <bug_when>2023-08-21 08:39:07 -0700</bug_when>
    <thetext>I&apos;d like to use XSLT to transform RSS feeds into user-viewable pages.

When Safari renders lots of &lt;audio&gt; elements via XSLT, it behaves terribly - seemingly getting exponentially slower as the number of &lt;audio&gt; elements increases.

On a sample feed with 515 episodes, Safari 16.5.2 appears to freeze while loading the page for around 52 seconds on my M1 Macbook Pro. Meanwhile a 2016 MBP takes 3 minutes 10 seconds…

Firefox &amp; Chrome both render the same page more-or-less instantly.

Here’s the sample page with 515 episodes: https://d1k0jgp8xx8zuc.cloudfront.net/jds/xsl/fish.rss
But for the sake of everyone’s sanity if you don’t want to sit there waiting for it to load, here’s a version with 100 episodes: https://d1k0jgp8xx8zuc.cloudfront.net/jds/xsl/fish-truncated.rss .  It ‘only’ takes 5 seconds to render, but hopefully that’s enough to demonstrate the problem.


(I&apos;ve also filed this via Feedback Assistant, if that helps: FB12904190)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972702</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-08-22 13:02:02 -0700</bug_when>
    <thetext>It is a known issue that rendering a page with many media elements is pathologically slow, but I cannot find the tracking bug now.

Doing an outrageous amount of work under HTMLMediaElement::ensureMediaControls() -&gt; HTMLMediaElement::setupAndCallJS() -&gt; ... jsCSSStyleDeclaration_propertyValueForCamelCasedIDLAttribute() ... Document::updateStyleIfNeeded().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972703</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-08-22 13:23:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/114278433&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1972752</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-08-22 15:16:03 -0700</bug_when>
    <thetext>rdar://113627244</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981093</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-09-28 14:34:43 -0700</bug_when>
    <thetext>This is covered by &lt;rdar://77347577&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981227</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan del Strother">jon</who>
    <bug_when>2023-09-29 02:11:39 -0700</bug_when>
    <thetext>Could you let us know the status of rdar://77347577 ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>