<?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>255748</bug_id>
          
          <creation_ts>2023-04-20 14:37:24 -0700</creation_ts>
          <short_desc>[GTK][WPE][Win] ASSERTION FAILED: !mainResourceLoader() || !mainResourceLoader()-&gt;defersLoading()</short_desc>
          <delta_ts>2026-05-17 22:21:15 -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>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1950166</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-04-20 14:37:24 -0700</bug_when>
    <thetext>[Win] ASSERTION FAILED: !mainResourceLoader() || !mainResourceLoader()-&gt;defersLoading()

http/tests/security/navigate-when-restoring-cached-page.html
http/tests/security/showModalDialog-sync-cross-origin-page-load2.html

ASSERTION FAILED: !mainResourceLoader() || !mainResourceLoader()-&gt;defersLoading()
C:\home\webkit\gb\Source\WebCore\loader/DocumentLoader.cpp(980) : WebCore::DocumentLoader::responseReceived
1   00007FFEE8DA249B WTFCrash
2   00007FFE90192FCE WTFCrashWithInfo
3   00007FFE93798B3F WebCore::DocumentLoader::responseReceived
4   00007FFE93797E10 WebCore::DocumentLoader::responseReceived
5   00007FFE93912FB1 WebCore::CachedRawResource::responseReceived
6   00007FFE9388DA9E WebCore::SubresourceLoader::didReceiveResponse
7   00007FFEE1244D98 WebKit::WebResourceLoader::didReceiveResponse
8   00007FFEDFF599B4 `IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void __cdecl(WebCore::ResourceResponse &amp;&amp;,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &amp;&amp;),std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt; &gt;&apos;::`2&apos;::&lt;lambda_1&gt;::operator()&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt;
9   00007FFEDFF5C73C std::invoke&lt;`IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void __cdecl(WebCore::ResourceResponse &amp;&amp;,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &amp;&amp;),std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt; &gt;&apos;::`2&apos;::&lt;lambda_1&gt;,WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt;
10  00007FFEDFF59C33 std::_Apply_impl&lt;`IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void __cdecl(WebCore::ResourceResponse &amp;&amp;,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &amp;&amp;),std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt; &gt;&apos;::`2&apos;::&lt;lambda_1&gt;,std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt;,0,1,2,3&gt;
11  00007FFEDFF59F45 std::apply&lt;`IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void __cdecl(WebCore::ResourceResponse &amp;&amp;,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &amp;&amp;),std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt; &gt;&apos;::`2&apos;::&lt;lambda_1&gt;,std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt; &gt;
12  00007FFEDFF5A1C5 IPC::callMemberFunction&lt;WebKit::WebResourceLoader,WebKit::WebResourceLoader,void __cdecl(WebCore::ResourceResponse &amp;&amp;,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &amp;&amp;),std::tuple&lt;WebCore::ResourceResponse,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &gt; &gt;
13  00007FFEDFF5BFEC IPC::handleMessage&lt;Messages::WebResourceLoader::DidReceiveResponse,WebKit::WebResourceLoader,WebKit::WebResourceLoader,void __cdecl(WebCore::ResourceResponse &amp;&amp;,enum WebKit::PrivateRelayed,bool,std::optional&lt;WebCore::NetworkLoadMetrics&gt; &amp;&amp;)&gt;
14  00007FFEDFF583DC WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage
15  00007FFEE1242FA7 WebKit::NetworkProcessConnection::didReceiveMessage
16  00007FFEE09C673D IPC::Connection::dispatchMessage
17  00007FFEE09C63C9 IPC::Connection::dispatchMessage
18  00007FFEE09C5C5D IPC::Connection::dispatchOneIncomingMessage
19  00007FFEE09C8CBF `IPC::Connection::enqueueIncomingMessage&apos;::`19&apos;::&lt;lambda_2&gt;::operator()
20  00007FFEE09CA62B WTF::Detail::CallableWrapper&lt;`IPC::Connection::enqueueIncomingMessage&apos;::`19&apos;::&lt;lambda_2&gt;,void&gt;::call
21  00007FFEE8DB9BE3 WTF::Function&lt;void __cdecl(void)&gt;::operator()
22  00007FFEE8E4C8C8 WTF::RunLoop::performWork
23  00007FFEE8F33171 WTF::RunLoop::wndProc
24  00007FFEE8F330D4 WTF::RunLoop::RunLoopWndProc
25  00007FFF6BC6E858 CallWindowProcW
26  00007FFF6BC6E299 DispatchMessageW
27  00007FFEE8F32636 WTF::RunLoop::run
28  00007FFEE13DD422 WebKit::WebPage::runModal
29  00007FFEE130FF88 WebKit::WebChromeClient::runModal
30  00007FFE93972023 WebCore::Chrome::runModal
31  00007FFE93A29990 WebCore::LocalDOMWindow::showModalDialog</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951650</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-04-27 14:38:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/108627934&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2182031</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2026-02-15 23:57:03 -0800</bug_when>
    <thetext>Apple ports disable the assertion. https://github.com/WebKit/WebKit/blob/a08dbd85a16ed7ffe30ff2123dcf1bf0c533db24/Source/WebCore/loader/DocumentLoader.cpp#L309-L313</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210759</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2026-05-13 21:47:05 -0700</bug_when>
    <thetext>See also 131039@main 131062@main 131017@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2210767</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2026-05-13 22:17:41 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64902</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211627</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-17 22:21:13 -0700</bug_when>
    <thetext>Committed 313392@main (f2c9beb2a707): &lt;https://commits.webkit.org/313392@main&gt;

Reviewed commits have been landed. Closing PR #64902 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>