Title: [255849] trunk/Source/WebKit
Revision
255849
Author
[email protected]
Date
2020-02-05 13:28:57 -0800 (Wed, 05 Feb 2020)

Log Message

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

Reviewed by David Kilzer.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (255848 => 255849)


--- trunk/Source/WebKit/ChangeLog	2020-02-05 21:27:45 UTC (rev 255848)
+++ trunk/Source/WebKit/ChangeLog	2020-02-05 21:28:57 UTC (rev 255849)
@@ -1,5 +1,16 @@
 2020-02-05  Chris Dumez  <[email protected]>
 
+        [IPC Hardening] Protect against m_inspectedPage / m_inspectorPage being null in WebInspectorProxy::resetState()
+        https://bugs.webkit.org/show_bug.cgi?id=207285
+        <rdar://problem/55420035>
+
+        Reviewed by David Kilzer.
+
+        * UIProcess/Inspector/WebInspectorProxy.cpp:
+        (WebKit::WebInspectorProxy::resetState):
+
+2020-02-05  Chris Dumez  <[email protected]>
+
         [IPC Hardening] Protect against bad RegistrableDomain under WebProcessProxy::didCollectPrewarmInformation()
         https://bugs.webkit.org/show_bug.cgi?id=207281
         <rdar://problem/55318108>

Modified: trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp (255848 => 255849)


--- trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp	2020-02-05 21:27:45 UTC (rev 255848)
+++ trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp	2020-02-05 21:28:57 UTC (rev 255849)
@@ -186,6 +186,11 @@
 
 void WebInspectorProxy::resetState()
 {
+    ASSERT(m_inspectedPage);
+    ASSERT(m_inspectorPage);
+    if (!m_inspectedPage || !m_inspectorPage)
+        return;
+
     inspectorPagePreferences().deleteInspectorAttachedHeight();
     inspectorPagePreferences().deleteInspectorAttachedWidth();
     inspectorPagePreferences().deleteInspectorAttachmentSide();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to