<?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>253383</bug_id>
          
          <creation_ts>2023-03-03 23:18:18 -0800</creation_ts>
          <short_desc>REGRESSION (261190@main): Lots of tests crashing in WebPageProxy::createNewPage()</short_desc>
          <delta_ts>2023-03-05 11:08:45 -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>WebKit Misc.</component>
          <version>WebKit Local 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=253385</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="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>pascoe</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1938804</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-03-03 23:18:18 -0800</bug_when>
    <thetext>Lots of test crashes here:

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [842]

VM Regions Near 0x10:
--&gt; 
    __TEXT                      10302d000-1030f5000    [  800K] r-x/r-x SM=COW  /Volumes/*

Application Specific Information:
CRASHING TEST: fast/html/broadcast-channel-between-different-sessions.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebKit              	0x0000000105d97369 WebKit::WebProcessProxy::consumeIfNotVerifiablyFromUIProcess(API::UserInitiatedAction&amp;, std::__1::optional&lt;WTF::UUID&gt;) + 95
1   com.apple.WebKit              	0x0000000105d541c4 WebKit::WebPageProxy::createNewPage(WebKit::FrameInfoData&amp;&amp;, WTF::ObjectIdentifier&lt;WebKit::WebPageProxyIdentifierType&gt;, WebCore::ResourceRequest&amp;&amp;, WebCore::WindowFeatures&amp;&amp;, WebKit::NavigationActionData&amp;&amp;, WTF::CompletionHandler&lt;void (std::__1::optional&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt; &gt;, std::__1::optional&lt;WebKit::WebPageCreationParameters&gt;)&gt;&amp;&amp;) + 728
2   com.apple.WebKit              	0x00000001060b712e WebKit::WebPageProxy::didReceiveSyncMessage(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;) + 704
3   com.apple.WebKit              	0x000000010616b59e IPC::MessageReceiverMap::dispatchSyncMessage(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;) + 272
4   com.apple.WebKit              	0x0000000105d95e0d WebKit::WebProcessProxy::didReceiveSyncMessage(IPC::Connection&amp;, IPC::Decoder&amp;, WTF::UniqueRef&lt;IPC::Encoder&gt;&amp;) + 31
5   com.apple.WebKit              	0x0000000106167065 IPC::Connection::dispatchSyncMessage(IPC::Decoder&amp;) + 259
6   com.apple.WebKit              	0x000000010616729a IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;) + 216
7   com.apple.WebKit              	0x0000000106163d00 IPC::Connection::SyncMessageState::ConnectionAndIncomingMessage::dispatch() + 42
8   com.apple.WebKit              	0x0000000106163f13 IPC::Connection::SyncMessageState::dispatchMessagesAndResetDidScheduleDispatchMessagesForConnection(IPC::Connection&amp;) + 493
9   com.apple.JavaScriptCore      	0x00000001034bbbc1 WTF::RunLoop::performWork() + 545
10  com.apple.JavaScriptCore      	0x00000001034bc5c2 WTF::RunLoop::performWork(void*) + 34
11  com.apple.CoreFoundation      	0x00007fff2068ca8c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
12  com.apple.CoreFoundation      	0x00007fff2068c9f4 __CFRunLoopDoSource0 + 180
13  com.apple.CoreFoundation      	0x00007fff2068c76a __CFRunLoopDoSources0 + 242
14  com.apple.CoreFoundation      	0x00007fff2068b188 __CFRunLoopRun + 897
15  com.apple.CoreFoundation      	0x00007fff2068a740 CFRunLoopRunSpecific + 567</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938805</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-03-03 23:18:41 -0800</bug_when>
    <thetext>&lt;rdar://problem/106227636&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938808</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-03-03 23:26:31 -0800</bug_when>
    <thetext>I am going to commit this to make tests not crash, but I don&apos;t know if it&apos;s correct:

diff --git a/Source/WebKit/UIProcess/WebPageProxy.cpp b/Source/WebKit/UIProcess/WebPageProxy.cpp
index 27b1e5e2875635df87907564c6fb56647158751a..f629709a4b10642f5f1a702f3181f46d4db55148 100644
--- a/Source/WebKit/UIProcess/WebPageProxy.cpp
+++ b/Source/WebKit/UIProcess/WebPageProxy.cpp
@@ -6298,7 +6298,8 @@ void WebPageProxy::createNewPage(FrameInfoData&amp;&amp; originatingFrameInfoData, WebPa
     else
 #endif
         userInitiatedActivity = m_process-&gt;userInitiatedActivity(navigationActionData.userGestureTokenIdentifier);
-    if (m_preferences-&gt;verifyWindowOpenUserGestureFromUIProcess() &amp;&amp; request.url().string() != Quirks::staticRadioPlayerURLString())
+
+    if (userInitiatedActivity &amp;&amp; m_preferences-&gt;verifyWindowOpenUserGestureFromUIProcess() &amp;&amp; request.url().string() != Quirks::staticRadioPlayerURLString())
         m_process-&gt;consumeIfNotVerifiablyFromUIProcess(*userInitiatedActivity, navigationActionData.userGestureAuthorizationToken);
 
     bool shouldOpenAppLinks = originatingFrameInfo-&gt;request().url().host() != request.url().host();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938809</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-03-03 23:28:15 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/11065</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938810</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-03 23:31:26 -0800</bug_when>
    <thetext>Committed 261215@main (5b368793a8c0): &lt;https://commits.webkit.org/261215@main&gt;

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

    </bug>

</bugzilla>