Title: [237035] trunk/Source/WebKit
Revision
237035
Author
[email protected]
Date
2018-10-11 10:25:18 -0700 (Thu, 11 Oct 2018)

Log Message

Regression(PSON): Deal with the drawing area potentially being null under WebChromeClient::contentsSizeChanged()
https://bugs.webkit.org/show_bug.cgi?id=190474

Reviewed by Geoffrey Garen.

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::contentsSizeChanged const):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (237034 => 237035)


--- trunk/Source/WebKit/ChangeLog	2018-10-11 15:54:59 UTC (rev 237034)
+++ trunk/Source/WebKit/ChangeLog	2018-10-11 17:25:18 UTC (rev 237035)
@@ -1,3 +1,13 @@
+2018-10-11  Chris Dumez  <[email protected]>
+
+        Regression(PSON): Deal with the drawing area potentially being null under WebChromeClient::contentsSizeChanged()
+        https://bugs.webkit.org/show_bug.cgi?id=190474
+
+        Reviewed by Geoffrey Garen.
+
+        * WebProcess/WebCoreSupport/WebChromeClient.cpp:
+        (WebKit::WebChromeClient::contentsSizeChanged const):
+
 2018-10-11  Alejandro G. Castro  <[email protected]>
 
         [GTK][WPE] Add mediaDevices.enumerateDevices support

Modified: trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp (237034 => 237035)


--- trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp	2018-10-11 15:54:59 UTC (rev 237034)
+++ trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp	2018-10-11 17:25:18 UTC (rev 237035)
@@ -597,7 +597,8 @@
 
     m_page.send(Messages::WebPageProxy::DidChangeContentSize(size));
 
-    m_page.drawingArea()->mainFrameContentSizeChanged(size);
+    if (auto* drawingArea = m_page.drawingArea())
+        drawingArea->mainFrameContentSizeChanged(size);
 
     if (frameView && !frameView->delegatesScrolling())  {
         bool hasHorizontalScrollbar = frameView->horizontalScrollbar();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to