<?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>318878</bug_id>
          
          <creation_ts>2026-07-08 10:21:25 -0700</creation_ts>
          <short_desc>REGRESSION (Safari 26.5.2): Random page crashes due to invalid IPC message WebResourceLoader_WillSendRequestReply</short_desc>
          <delta_ts>2026-07-21 05:29:59 -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>Page Loading</component>
          <version>Safari 26</version>
          <rep_platform>All</rep_platform>
          <op_sys>iOS 26</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>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>pieter-jan</reporter>
          <assigned_to>rupin</assigned_to>
          <cc>beidson</cc>
    
    <cc>kzar</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2227941</commentid>
    <comment_count>0</comment_count>
    <who name="">pieter-jan</who>
    <bug_when>2026-07-08 10:21:25 -0700</bug_when>
    <thetext>After updating to MacOS/iOS 26.5.2 I have noticed that several websites randomly crashed with the error message &quot;A problem repeatedly occurred with &lt;sitename&gt;.
Visually the page would load just fine but then crash. 
This happened on a MacBookPro M3, MacOS 26.5.2, iPhone SE 2nd gen iOS 26.5.2, both with Safari and Ecosia browser.

Sometimes the same site would work, but other times it wouldn&apos;t. 
After debugging, all sites that crash have a pattern of the following logging:


2026-07-08 18:22:22.402336+0200 0x11a22d   Fault       0x854915             69220  14   com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:IPC] /AppleInternal/Library/BuildRoots/4~CSjpugCypH81GiRiC7qjc7h_Ls9vYj2Av51m9vQ/Library/Caches/com.apple.xbs/TemporaryDirectory.QSy8hj/Sources/WebKit/Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp 1450: Invalid message dispatched auto WebKit::NetworkResourceLoader::continueWillSendRedirectedRequest(ResourceRequest &amp;&amp;, ResourceRequest &amp;&amp;, ResourceResponse &amp;&amp;, std::optional&lt;WebCore::PCM::AttributionTriggerData&gt; &amp;&amp;, CompletionHandler&lt;void (WebCore::ResourceRequest &amp;&amp;)&gt; &amp;&amp;)::(anonymous class)::operator()(ResourceRequest &amp;&amp;, bool)
2026-07-08 18:22:22.402420+0200 0x11a22d   Error       0x0                  69220  0    com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:Network] 0x10f235000 - [pageProxyID=5255, webPageID=5309, frameID=4294967812, resourceID=357, isMainResource=0, destination=0, isSynchronous=0] NetworkResourceLoader::didFailLoading: (wasServiceWorkerLoad=0, isTimeout=0, isCancellation=1, isAccessControl=0, errorCode=-999)
2026-07-08 18:22:22.402452+0200 0x11a22d   Default     0x0                  69220  0    com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:Network] 0x10f235000 - [pageProxyID=5255, webPageID=5309, frameID=4294967812, resourceID=357, isMainResource=0, destination=0, isSynchronous=0] NetworkResourceLoader::cleanup: (result=2)
2026-07-08 18:22:22.402504+0200 0x11a22d   Activity    0x854916             69220  0    com.apple.WebKit.Networking: (libsystem_trace.dylib) Activity for state dumps
2026-07-08 18:22:22.402503+0200 0x11a22d   Fault       0x854916             69220  14   com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:IPC] Received an invalid message &apos;WebResourceLoader_WillSendRequestReply&apos; from WebContent process 977, requesting for it to be terminated.
2026-07-08 18:22:22.402547+0200 0x11a22d   Default     0x0                  69220  0    com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:Loading] 0x10e0923c0 - [webProcessIdentifier=977] NetworkConnectionToWebProcess::removeLoadIdentifier: Removing identifier 364 and aborting corresponding loader
2026-07-08 18:22:22.402557+0200 0x11a22d   Default     0x0                  69220  0    com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:Network] 0x10f227800 - [pageProxyID=5255, webPageID=5309, frameID=4294967812, resourceID=364, isMainResource=0, destination=0, isSynchronous=0] NetworkResourceLoader::abort: (hasNetworkLoad=1)
2026-07-08 18:22:22.402563+0200 0x11a22d   Default     0x0                  69220  0    com.apple.WebKit.Networking: (WebKit) [com.apple.WebKit:Network] 0x10f227800 - [pageProxyID=5255, webPageID=5309, frameID=4294967812, resourceID=364, isMainResource=0, destination=0, isSynchronous=0] NetworkResourceLoader::abort: Keeping network load alive due to keepalive option


This happens all the time a page/site is crashing. Seems that this bug was introduced during the 26.5.2 update as other mac/ios devices on 26.5 and 26.5.1 do not experience this. It happens for most sites where ads / tracking elements are used, eg frequently. Hence my severity critical 

My workaround: use an adblocker premium to prevent the cross-loading</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227945</commentid>
    <comment_count>1</comment_count>
    <who name="">pieter-jan</who>
    <bug_when>2026-07-08 10:30:29 -0700</bug_when>
    <thetext>Should be needed, I have several outputs of the command  log stream --level error  --predicate &apos;process == &quot;com.apple.WebKit.Networking&quot; OR process == &quot;com.apple.WebKit.WebContent&quot;&apos; available</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2228134</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-07-08 16:25:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/181753576&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2228832</commentid>
    <comment_count>3</comment_count>
    <who name="">kzar</who>
    <bug_when>2026-07-10 08:51:28 -0700</bug_when>
    <thetext>If it helps, I made a simple reproduction case: https://testpages.kzar.co.uk/beacon-redirect-block/ . The tracking request to `https://eviltracker.net` needs to be blocked for the crash to be triggered, for example if you load the page with the DuckDuckGo browser that request will be blocked and therefore the tab crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2229823</commentid>
    <comment_count>4</comment_count>
    <who name="">rupin</who>
    <bug_when>2026-07-13 14:05:15 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/69298</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2229829</commentid>
    <comment_count>5</comment_count>
    <who name="">rupin</who>
    <bug_when>2026-07-13 14:19:03 -0700</bug_when>
    <thetext>Thank you for the reproduction case! I was able to reproduce the crash with https://testpages.kzar.co.uk/beacon-redirect-block/ on the DuckDuckGo MacOS browser using tip-of-tree WebKit and I&apos;ve confirmed that the fix I posted above (https://github.com/WebKit/WebKit/pull/69298) makes the crash go away.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2229831</commentid>
    <comment_count>6</comment_count>
    <who name="">kzar</who>
    <bug_when>2026-07-13 14:25:42 -0700</bug_when>
    <thetext>Amazing that was quick, thanks for fixing that!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2229889</commentid>
    <comment_count>7</comment_count>
    <who name="">rupin</who>
    <bug_when>2026-07-13 16:04:07 -0700</bug_when>
    <thetext>Happy to help!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2232191</commentid>
    <comment_count>8</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-07-20 16:54:48 -0700</bug_when>
    <thetext>Committed 317582@main (524399615e24): &lt;https://commits.webkit.org/317582@main&gt;

Reviewed commits have been landed. Closing PR #69298 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2232354</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-07-21 05:29:59 -0700</bug_when>
    <thetext>Committed 316606.132@safari-7625-branch (7c8584b727b0): &lt;https://commits.webkit.org/316606.132@safari-7625-branch&gt;

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

    </bug>

</bugzilla>