Title: [255850] trunk/Source/WebKit
- Revision
- 255850
- Author
- [email protected]
- Date
- 2020-02-05 13:30:11 -0800 (Wed, 05 Feb 2020)
Log Message
[IPC Hardening] Protect against m_inspectorPage being null in WebInspectorProxy::setAttachedWindowHeight() / setAttachedWindowWidth()
https://bugs.webkit.org/show_bug.cgi?id=207287
<rdar://problem/55422919>
Reviewed by Geoffrey Garen.
* UIProcess/Inspector/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::setAttachedWindowHeight):
(WebKit::WebInspectorProxy::setAttachedWindowWidth):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (255849 => 255850)
--- trunk/Source/WebKit/ChangeLog 2020-02-05 21:28:57 UTC (rev 255849)
+++ trunk/Source/WebKit/ChangeLog 2020-02-05 21:30:11 UTC (rev 255850)
@@ -1,5 +1,17 @@
2020-02-05 Chris Dumez <[email protected]>
+ [IPC Hardening] Protect against m_inspectorPage being null in WebInspectorProxy::setAttachedWindowHeight() / setAttachedWindowWidth()
+ https://bugs.webkit.org/show_bug.cgi?id=207287
+ <rdar://problem/55422919>
+
+ Reviewed by Geoffrey Garen.
+
+ * UIProcess/Inspector/WebInspectorProxy.cpp:
+ (WebKit::WebInspectorProxy::setAttachedWindowHeight):
+ (WebKit::WebInspectorProxy::setAttachedWindowWidth):
+
+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>
Modified: trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp (255849 => 255850)
--- trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp 2020-02-05 21:28:57 UTC (rev 255849)
+++ trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp 2020-02-05 21:30:11 UTC (rev 255850)
@@ -323,6 +323,10 @@
void WebInspectorProxy::setAttachedWindowHeight(unsigned height)
{
+ ASSERT(m_inspectorPage);
+ if (!m_inspectorPage)
+ return;
+
inspectorPagePreferences().setInspectorAttachedHeight(height);
platformSetAttachedWindowHeight(height);
}
@@ -329,6 +333,10 @@
void WebInspectorProxy::setAttachedWindowWidth(unsigned width)
{
+ ASSERT(m_inspectorPage);
+ if (!m_inspectorPage)
+ return;
+
inspectorPagePreferences().setInspectorAttachedWidth(width);
platformSetAttachedWindowWidth(width);
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes