<?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>247655</bug_id>
          
          <creation_ts>2022-11-08 16:49:48 -0800</creation_ts>
          <short_desc>REGRESSION (256048@main): ASSERTION FAILED: m_clients.contains(&amp;client) in WebCore::FontCache::removeClient()</short_desc>
          <delta_ts>2022-11-08 16:50:16 -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>New Bugs</component>
          <version>Other</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=244919</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mattwoodrow</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911144</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-11-08 16:49:48 -0800</bug_when>
    <thetext>The following two API tests are consistently asserting on iOS simulator debug bots after https://commits.webkit.org/256048@main landed:

TestWebKitAPI.CopyHTML.SanitizationPreservesCharacterSet
TestWebKitAPI.CopyHTML.SanitizationPreservesCharacterSetInSelectedText

        ASSERTION FAILED: m_clients.contains(&amp;client)
        platform/graphics/FontCache.cpp(400) : void WebCore::FontCache::removeClient(WebCore::FontSelector &amp;)
        1   0x11c7423d9 WTFCrash
        2   0x173fc22eb WTFCrashWithInfo(int, char const*, char const*, int)
        3   0x178ec7f36 WebCore::FontCache::removeClient(WebCore::FontSelector&amp;)
        4   0x177529c61 WebCore::CSSFontSelector::~CSSFontSelector()
        5   0x177529f25 WebCore::CSSFontSelector::~CSSFontSelector()
        6   0x177529f89 WebCore::CSSFontSelector::~CSSFontSelector()
        7   0x17707d4bc std::__1::default_delete&lt;WebCore::FontSelector&gt;::operator()(WebCore::FontSelector*) const
        8   0x17707d487 WTF::RefCounted&lt;WebCore::FontSelector, std::__1::default_delete&lt;WebCore::FontSelector&gt; &gt;::deref() const
        9   0x17752dd59 WebCore::CSSFontSelector::deref()
        10  0x177534c49 WTF::Ref&lt;WebCore::CSSFontSelector, WTF::RawPtrTraits&lt;WebCore::CSSFontSelector&gt; &gt;::~Ref()
        11  0x177529325 WTF::Ref&lt;WebCore::CSSFontSelector, WTF::RawPtrTraits&lt;WebCore::CSSFontSelector&gt; &gt;::~Ref()
        12  0x177a1bdc9 WebCore::Document::~Document()
        13  0x177f8342f WebCore::HTMLDocument::~HTMLDocument()
        14  0x177f83455 WebCore::HTMLDocument::~HTMLDocument()
        15  0x177f83539 WebCore::HTMLDocument::~HTMLDocument()
        16  0x177a1e673 WebCore::Document::decrementReferencingNodeCount()
        17  0x177a1df47 WebCore::Document::removedLastRef()
        18  0x177c0b034 WebCore::Node::removedLastRef()
        19  0x17412c8dc WebCore::Node::deref() const
        20  0x174fe3a7e WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;::derefIfNotNull(WebCore::Document*)
        21  0x174fe3a49 WTF::RefPtr&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt; &gt;::~RefPtr()
        22  0x174fe37c5 WTF::RefPtr&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt; &gt;::~RefPtr()
        23  0x178726157 WebCore::DocumentWriter::begin(WTF::URL const&amp;, bool, WebCore::Document*, WebCore::ProcessQualified&lt;WTF::UUID&gt;, WebCore::NavigationAction const*)
        24  0x17871d96d WebCore::DocumentLoader::commitData(WebCore::SharedBuffer const&amp;)
        25  0x1262426d3 -[WebFrame(WebInternal) _commitData:]
        26  0x12631ddc6 -[WebHTMLRepresentation receivedData:withDataSource:]
        27  0x12622c15a -[WebDataSource(WebInternal) _receivedData:]
        28  0x12622301c WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, WebCore::SharedBuffer const&amp;)
        29  0x17872526e WebCore::DocumentLoader::commitLoad(WebCore::SharedBuffer const&amp;)
        30  0x178726e13 WebCore::DocumentLoader::dataReceived(WebCore::SharedBuffer const&amp;)
        31  0x17875ff90 auto WebCore::DocumentLoader::continueAfterContentPolicy(WebCore::PolicyAction)::$_9::operator()&lt;WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt; &gt; &gt;(WTF::Ref&lt;WebCore::SharedBuffer, WTF::RawPtrTraits&lt;WebCore::SharedBuffer&gt; &gt;&amp;&amp;) const
        Child process terminated with signal 11: Segmentation fault

https://results.webkit.org/?suite=api-tests&amp;suite=api-tests&amp;test=TestWebKitAPI.CopyHTML.SanitizationPreservesCharacterSetInSelectedText&amp;test=TestWebKitAPI.CopyHTML.SanitizationPreservesCharacterSet</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911145</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-08 16:50:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/102115713&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>