Title: [264224] trunk/Source/WebKit
Revision
264224
Author
[email protected]
Date
2020-07-10 09:36:24 -0700 (Fri, 10 Jul 2020)

Log Message

[IPC hardening] Use MESSAGE_CHECK in WebPageProxy::setColorPickerColor()
https://bugs.webkit.org/show_bug.cgi?id=214168
<rdar://problem/58632672>

Reviewed by David Kilzer.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::setColorPickerColor): Replace ASSERT with
MESSAGE_CHECK.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (264223 => 264224)


--- trunk/Source/WebKit/ChangeLog	2020-07-10 16:15:49 UTC (rev 264223)
+++ trunk/Source/WebKit/ChangeLog	2020-07-10 16:36:24 UTC (rev 264224)
@@ -1,3 +1,15 @@
+2020-07-10  Brent Fulgham  <[email protected]>
+
+        [IPC hardening] Use MESSAGE_CHECK in WebPageProxy::setColorPickerColor()
+        https://bugs.webkit.org/show_bug.cgi?id=214168
+        <rdar://problem/58632672>
+
+        Reviewed by David Kilzer.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::setColorPickerColor): Replace ASSERT with
+        MESSAGE_CHECK.
+
 2020-07-10  Carlos Garcia Campos  <[email protected]>
 
         [GTK] Flush the cairo surface after painting when using software

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (264223 => 264224)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2020-07-10 16:15:49 UTC (rev 264223)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2020-07-10 16:36:24 UTC (rev 264224)
@@ -6095,7 +6095,7 @@
 
 void WebPageProxy::setColorPickerColor(const WebCore::Color& color)
 {
-    ASSERT(m_colorPicker);
+    MESSAGE_CHECK(m_process, m_colorPicker);
 
     m_colorPicker->setSelectedColor(color);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to