<?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>282814</bug_id>
          
          <creation_ts>2024-11-07 22:24:00 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: m_start != m_end in WTF::Deque&lt;WTF::String&gt;::last() under WebCore::FragmentDirectiveParser::parseFragmentDirective</short_desc>
          <delta_ts>2024-11-18 23:34:29 -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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231410</see_also>
    
    <see_also>https://github.com/web-platform-tests/wpt/pull/49248</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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>megan_gardner</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2073730</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-11-07 22:24:00 -0800</bug_when>
    <thetext>ASSERTION FAILED: m_start != m_end in WTF::Deque&lt;WTF::String&gt;::last() under WebCore::FragmentDirectiveParser::parseFragmentDirective

1. Start your favorite WebKit based browser
2. Load https://webkit.org/#:~:text=prefix-
3. Crash

ASSERTION FAILED: m_start != m_end
C:\webkit\wb\WebKitBuild\Debug\WTF\Headers\wtf/Deque.h(86) : T &amp;WTF::Deque&lt;WTF::String&gt;::last()
&apos;WebKitNetworkProcess.exe&apos; (Win32): Loaded &apos;C:\Windows\System32\msctf.dll&apos;. 
1   00007FF821562C83 WTF::Deque&lt;WTF::String,0&gt;::last
2   00007FF8215622E1 WebCore::FragmentDirectiveParser::parseFragmentDirective
3   00007FF821561A96 WebCore::FragmentDirectiveParser::FragmentDirectiveParser
4   00007FF8222E6743 WebCore::LocalFrameView::scrollToFragment
5   00007FF8220387A6 WebCore::FrameLoader::scrollToFragmentWithParentBoundary
6   00007FF822036205 WebCore::FrameLoader::finishedParsing
7   00007FF821409BE8 WebCore::Document::finishedParsing
8   00007FF821B15BC9 WebCore::HTMLConstructionSite::finishedParsing
9   00007FF821B82C4F WebCore::HTMLTreeBuilder::finished
10  00007FF821B1FFD2 WebCore::HTMLDocumentParser::end
11  00007FF821B1E827 WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd
12  00007FF821B20621 WebCore::HTMLDocumentParser::notifyFinished
13  00007FF8215F5ADC WebCore::PendingScript::notifyClientFinished
14  00007FF8215F5B18 WebCore::PendingScript::notifyFinished
15  00007FF821598C9A WebCore::LoadableScript::notifyClientFinished
16  00007FF8215963F9 WebCore::LoadableNonModuleScriptBase::notifyFinished
17  00007FF82214FF60 WebCore::CachedResource::checkNotify
18  00007FF8221500E4 WebCore::CachedResource::finishLoading
19  00007FF822183990 WebCore::CachedScript::finishLoading
20  00007FF8220D061D WebCore::SubresourceLoader::didFinishLoading
21  00007FF82856259B WebKit::WebResourceLoader::didFinishResourceLoad
22  00007FF82720AFA0 IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void (WebCore::NetworkLoadMetrics &amp;&amp;),std::tuple&lt;WebCore::NetworkLoadMetrics&gt; &gt;::&lt;lambda_1&gt;::operator()&lt;WebCore::NetworkLoadMetrics&gt;
23  00007FF82720AF5D std::invoke&lt;`lambda at C:\webkit\wb\Source\WebKit\Platform\IPC\HandleMessage.h:132:9&apos;,WebCore::NetworkLoadMetrics&gt;
24  00007FF82720AF3A std::_Apply_impl&lt;`lambda at C:\webkit\wb\Source\WebKit\Platform\IPC\HandleMessage.h:132:9&apos;,std::tuple&lt;WebCore::NetworkLoadMetrics&gt;,0&gt;
25  00007FF82720AF02 std::apply&lt;`lambda at C:\webkit\wb\Source\WebKit\Platform\IPC\HandleMessage.h:132:9&apos;,std::tuple&lt;WebCore::NetworkLoadMetrics&gt; &gt;
26  00007FF82720AEBF IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void (WebCore::NetworkLoadMetrics &amp;&amp;),std::tuple&lt;WebCore::NetworkLoadMetrics&gt; &gt;
27  00007FF827207070 IPC::handleMessage&lt;Messages::WebResourceLoader::DidFinishResourceLoad,IPC::Connection,WebKit::WebResourceLoader,WebKit::WebResourceLoader,void (WebCore::NetworkLoadMetrics &amp;&amp;)&gt;
28  00007FF827205361 WebKit::WebResourceLoader::didReceiveMessage
29  00007FF82852F2FF WebKit::NetworkProcessConnection::dispatchMessage
30  00007FF8271FED77 WebKit::NetworkProcessConnection::didReceiveMessage
31  00007FF827BCC059 IPC::Connection::dispatchMessage
Exception thrown at 0x00007FF81B3D73C5 (JavaScriptCore.dll) in WebKitWebProcess.exe: 0xC0000005: Access violation writing location 0x00000000BBADBEEF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2075296</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-11-14 22:24:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/139948387&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2075302</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-11-14 23:44:16 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/36684</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2075444</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-11-15 13:58:54 -0800</bug_when>
    <thetext>Committed 286654@main (31115c9484ff): &lt;https://commits.webkit.org/286654@main&gt;

Reviewed commits have been landed. Closing PR #36684 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2076048</commentid>
    <comment_count>4</comment_count>
      <attachid>473276</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-11-18 21:41:11 -0800</bug_when>
    <thetext>Created attachment 473276
Patch</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>473276</attachid>
            <date>2024-11-18 21:41:11 -0800</date>
            <delta_ts>2024-11-18 23:34:29 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>a.diff</filename>
            <type>text/plain</type>
            <size>2</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">DQo=
</data>
<flag name="review"
          id="498082"
          type_id="1"
          status="+"
          setter="fujii"
    />
          </attachment>
      

    </bug>

</bugzilla>