Title: [264526] trunk/Source/WebKit
- Revision
- 264526
- Author
- [email protected]
- Date
- 2020-07-17 11:38:25 -0700 (Fri, 17 Jul 2020)
Log Message
[IPC hardening] Add nullptr checks to WebKit::WebInspectorProxy::platformStartWindowDrag()
<https://webkit.org/b/214436>
<rdar://problem/59645910>
Reviewed by Brent Fulgham.
* UIProcess/Inspector/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformStartWindowDrag):
- Add nullptr checks.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (264525 => 264526)
--- trunk/Source/WebKit/ChangeLog 2020-07-17 18:38:04 UTC (rev 264525)
+++ trunk/Source/WebKit/ChangeLog 2020-07-17 18:38:25 UTC (rev 264526)
@@ -1,3 +1,15 @@
+2020-07-17 David Kilzer <[email protected]>
+
+ [IPC hardening] Add nullptr checks to WebKit::WebInspectorProxy::platformStartWindowDrag()
+ <https://webkit.org/b/214436>
+ <rdar://problem/59645910>
+
+ Reviewed by Brent Fulgham.
+
+ * UIProcess/Inspector/mac/WebInspectorProxyMac.mm:
+ (WebKit::WebInspectorProxy::platformStartWindowDrag):
+ - Add nullptr checks.
+
2020-07-17 Simon Fraser <[email protected]>
Make ScrollbarControlSize an enum class
Modified: trunk/Source/WebKit/UIProcess/Inspector/mac/WebInspectorProxyMac.mm (264525 => 264526)
--- trunk/Source/WebKit/UIProcess/Inspector/mac/WebInspectorProxyMac.mm 2020-07-17 18:38:04 UTC (rev 264525)
+++ trunk/Source/WebKit/UIProcess/Inspector/mac/WebInspectorProxyMac.mm 2020-07-17 18:38:25 UTC (rev 264526)
@@ -756,7 +756,10 @@
void WebInspectorProxy::platformStartWindowDrag()
{
- [m_inspectorViewController webView]->_page->startWindowDrag();
+ if (auto* webView = [m_inspectorViewController webView]) {
+ if (webView->_page)
+ webView->_page->startWindowDrag();
+ }
}
String WebInspectorProxy::inspectorPageURL()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes