Title: [255854] trunk/Source/WebKit
Revision
255854
Author
[email protected]
Date
2020-02-05 14:02:19 -0800 (Wed, 05 Feb 2020)

Log Message

[IPC Hardening] Protect against m_inspectorPage being null in WebInspectorProxy::detach()
https://bugs.webkit.org/show_bug.cgi?id=207286
<rdar://problem/55422296>

Reviewed by David Kilzer.

* UIProcess/Inspector/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::detach):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (255853 => 255854)


--- trunk/Source/WebKit/ChangeLog	2020-02-05 22:00:04 UTC (rev 255853)
+++ trunk/Source/WebKit/ChangeLog	2020-02-05 22:02:19 UTC (rev 255854)
@@ -1,3 +1,14 @@
+2020-02-05  Chris Dumez  <[email protected]>
+
+        [IPC Hardening] Protect against m_inspectorPage being null in WebInspectorProxy::detach()
+        https://bugs.webkit.org/show_bug.cgi?id=207286
+        <rdar://problem/55422296>
+
+        Reviewed by David Kilzer.
+
+        * UIProcess/Inspector/WebInspectorProxy.cpp:
+        (WebKit::WebInspectorProxy::detach):
+
 2020-02-05  Brent Fulgham  <[email protected]>
 
         Update sandbox to allow communication with dnssd service

Modified: trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp (255853 => 255854)


--- trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp	2020-02-05 22:00:04 UTC (rev 255853)
+++ trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp	2020-02-05 22:02:19 UTC (rev 255854)
@@ -307,7 +307,7 @@
 
 void WebInspectorProxy::detach()
 {
-    if (!m_inspectedPage)
+    if (!m_inspectedPage || !m_inspectorPage)
         return;
 
     m_isAttached = false;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to