Title: [295336] trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPermissionController.cpp
Revision
295336
Author
[email protected]
Date
2022-06-07 02:36:12 -0700 (Tue, 07 Jun 2022)

Log Message

WebPermissionController::tryProcessingRequests should check for m_page
https://bugs.webkit.org/show_bug.cgi?id=241344
rdar://94276618

Patch by Youenn Fablet <[email protected]> on 2022-06-07
Reviewed by Eric Carlson.

* Source/WebKit/WebProcess/WebCoreSupport/WebPermissionController.cpp:
(WebKit::WebPermissionController::tryProcessingRequests):
Add a null check since async reply destructor might trigger completion handler execution.

Canonical link: https://commits.webkit.org/251355@main

Modified Paths

Diff

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPermissionController.cpp (295335 => 295336)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPermissionController.cpp	2022-06-07 09:23:10 UTC (rev 295335)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebPermissionController.cpp	2022-06-07 09:36:12 UTC (rev 295336)
@@ -88,7 +88,7 @@
 
 void WebPermissionController::tryProcessingRequests()
 {
-    if (m_requests.isEmpty())
+    if (m_requests.isEmpty() || !m_page)
         return;
 
     while (!m_requests.isEmpty()) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to