[Webkit-unassigned] [Bug 253383] REGRESSION (261190 at main): Lots of tests crashing in WebPageProxy::createNewPage()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 3 23:26:31 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=253383

--- Comment #2 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
I am going to commit this to make tests not crash, but I don't know if it'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&& originatingFrameInfoData, WebPa
     else
 #endif
         userInitiatedActivity = m_process->userInitiatedActivity(navigationActionData.userGestureTokenIdentifier);
-    if (m_preferences->verifyWindowOpenUserGestureFromUIProcess() && request.url().string() != Quirks::staticRadioPlayerURLString())
+
+    if (userInitiatedActivity && m_preferences->verifyWindowOpenUserGestureFromUIProcess() && request.url().string() != Quirks::staticRadioPlayerURLString())
         m_process->consumeIfNotVerifiablyFromUIProcess(*userInitiatedActivity, navigationActionData.userGestureAuthorizationToken);

     bool shouldOpenAppLinks = originatingFrameInfo->request().url().host() != request.url().host();

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230304/2ecc70d4/attachment.htm>


More information about the webkit-unassigned mailing list