<?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>235831</bug_id>
          
          <creation_ts>2022-01-28 12:12:08 -0800</creation_ts>
          <short_desc>ASSERT(Page::nonUtilityPageCount()) loading 9to5mac.com</short_desc>
          <delta_ts>2022-02-04 12:13:19 -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>SVG</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=227720</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>ap</cc>
    
    <cc>cdumez</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>1835097</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-01-28 12:12:08 -0800</bug_when>
    <thetext>Loading https://9to5mac.com in the iOS simulator hits:

* thread #1, queue = &apos;com.apple.main-thread&apos;, stop reason = breakpoint 3.1
  * frame #0: 0x0000000778b19209 WebCore`WebCore::SMILTimeContainer::begin(this=0x000000076b006de0) at SMILTimeContainer.cpp:119:5
    frame #1: 0x000000077889f47e WebCore`WebCore::SVGDocumentExtensions::startAnimations(this=0x000000076bcb9680) at SVGDocumentExtensions.cpp:115:34
    frame #2: 0x0000000776cd843d WebCore`WebCore::Document::implicitClose(this={ origin = https://9to5mac.com, url = https://9to5mac.com/, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }) at Document.cpp:3205:31
    frame #3: 0x000000077781dc9b WebCore`WebCore::FrameLoader::checkCallImplicitClose(this=0x000000076b1c51e0) at FrameLoader.cpp:942:25
    frame #4: 0x000000077781d6b9 WebCore`WebCore::FrameLoader::checkCompleted(this=0x000000076b1c51e0) at FrameLoader.cpp:883:5
    frame #5: 0x000000077781d745 WebCore`WebCore::FrameLoader::loadDone(this=0x000000076b1c51e0, type=Finish) at FrameLoader.cpp:801:9
    frame #6: 0x000000077793a0a8 WebCore`WebCore::CachedResourceLoader::loadDone(this=0x0000000765bcc830, type=Finish, shouldPerformPostLoadActions=true) at CachedResourceLoader.cpp:1446:27
    frame #7: 0x00000007778b42a0 WebCore`WebCore::SubresourceLoader::notifyDone(this=0x0000000761e83700, type=Finish) at SubresourceLoader.cpp:848:50
    frame #8: 0x00000007778b02ed WebCore`WebCore::SubresourceLoader::didFinishLoading(this=0x0000000761e83700, networkLoadMetrics=0x00007ff7bbf7b518) at SubresourceLoader.cpp:744:5
    frame #9: 0x0000000735f4ca12 WebKit`WebKit::WebResourceLoader::didFinishResourceLoad(this=0x000000076b4b7c60, networkLoadMetrics=0x00007ff7bbf7b518) at WebResourceLoader.cpp:238:19
    frame #10: 0x0000000736675f17 WebKit`void IPC::callMemberFunctionImpl&lt;WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&amp;), std::__1::tuple&lt;WebCore::NetworkLoadMetrics&gt;, 0ul&gt;(object=0x000000076b4b7c60, function=50 c7 f4 35 07 00 00 00 00 00 00 00 00 00 00 00, args=size=1, (null)=std::__1::index_sequence&lt;0UL&gt; @ 0x00007ff7bbf7b448)(WebCore::NetworkLoadMetrics const&amp;), std::__1::tuple&lt;WebCore::NetworkLoadMetrics&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt;) at HandleMessage.h:125:5
    frame #11: 0x0000000736675e6d WebKit`void IPC::callMemberFunction&lt;WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&amp;), std::__1::tuple&lt;WebCore::NetworkLoadMetrics&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt; &gt;(args=size=1, object=0x000000076b4b7c60, function=50 c7 f4 35 07 00 00 00 00 00 00 00 00 00 00 00)(WebCore::NetworkLoadMetrics const&amp;)) at HandleMessage.h:131:5
    frame #12: 0x0000000736673680 WebKit`void IPC::handleMessage&lt;Messages::WebResourceLoader::DidFinishResourceLoad, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&amp;)&gt;(connection=0x000000072d048680, decoder=0x0000000771a90940, object=0x000000076b4b7c60, function=50 c7 f4 35 07 00 00 00 00 00 00 00 00 00 00 00)(WebCore::NetworkLoadMetrics const&amp;)) at HandleMessage.h:197:5
    frame #13: 0x0000000736672dbe WebKit`WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(this=0x000000076b4b7c60, connection=0x000000072d048680, decoder=0x0000000771a90940) at WebResourceLoaderMessageReceiver.cpp:56:16
    frame #14: 0x0000000735f0f5a7 WebKit`WebKit::NetworkProcessConnection::didReceiveMessage(this=0x000000072d098580, connection=0x000000072d048680, decoder=0x0000000771a90940) at NetworkProcessConnection.cpp:98:32
    frame #15: 0x0000000735202d90 WebKit`IPC::Connection::dispatchMessage(this=0x000000072d048680, decoder=0x0000000771a90940) at Connection.cpp:1092:14
    frame #16: 0x0000000735203485 WebKit`IPC::Connection::dispatchMessage(this=0x000000072d048680, message=IPC::Decoder @ 0x0000000771a90940) at Connection.cpp:1137:9
    frame #17: 0x0000000735203a3d WebKit`IPC::Connection::dispatchOneIncomingMessage(this=0x000000072d048680) at Connection.cpp:1206:5
    frame #18: 0x0000000735221335 WebKit`IPC::Connection::enqueueIncomingMessage(this=0x00000007915b8178)::$_15::operator()() at Connection.cpp:1056:28
    frame #19: 0x0000000735221249 WebKit`WTF::Detail::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_15, void&gt;::call(this=0x00000007915b8170) at Function.h:53:39
    frame #20: 0x000000074fce6682 JavaScriptCore`WTF::Function&lt;void ()&gt;::operator(this=0x00007ff7bbf7ba60)() const at Function.h:82:35
    frame #21: 0x000000074fd6f262 JavaScriptCore`WTF::RunLoop::performWork(this=0x000000072d00c180) at RunLoop.cpp:133:9
    frame #22: 0x000000074fd72b8e JavaScriptCore`WTF::RunLoop::performWork(context=0x000000072d00c180) at RunLoopCF.cpp:46:37
    frame #23: 0x00007fff2037490f CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #24: 0x00007fff20374807 CoreFoundation`__CFRunLoopDoSource0 + 180
    frame #25: 0x00007fff20373cd4 CoreFoundation`__CFRunLoopDoSources0 + 242
    frame #26: 0x00007fff2036e3d0 CoreFoundation`__CFRunLoopRun + 871
    frame #27: 0x00007fff2036db6c CoreFoundation`CFRunLoopRunSpecific + 562
    frame #28: 0x00007fff20828861 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835101</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2022-01-28 12:21:12 -0800</bug_when>
    <thetext>Nice, I think this may have found the bug I was looking for.

We&apos;re starting an SVG animation in a process that no longer has any pages (besides the dummy SVG page). This was causing battery drain since cached WebProcesses could be running animations unnecessarily.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837546</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-04 12:13:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/88501817&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>