Title: [233422] trunk/Source/WebKit
Revision
233422
Author
[email protected]
Date
2018-07-02 07:35:16 -0700 (Mon, 02 Jul 2018)

Log Message

Delete display link when closing page or the WebContent process has crashed.
https://bugs.webkit.org/show_bug.cgi?id=186895

Reviewed by Brent Fulgham.

If there is a running display link in the UI process, there is no need to keep it around if the
page is being closed or the WebContent process has crashed.

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::close):
(WebKit::WebPageProxy::resetStateAfterProcessExited):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (233421 => 233422)


--- trunk/Source/WebKit/ChangeLog	2018-07-02 11:51:40 UTC (rev 233421)
+++ trunk/Source/WebKit/ChangeLog	2018-07-02 14:35:16 UTC (rev 233422)
@@ -1,3 +1,17 @@
+2018-07-02  Per Arne Vollan  <[email protected]>
+
+        Delete display link when closing page or the WebContent process has crashed.
+        https://bugs.webkit.org/show_bug.cgi?id=186895
+
+        Reviewed by Brent Fulgham.
+
+        If there is a running display link in the UI process, there is no need to keep it around if the
+        page is being closed or the WebContent process has crashed.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::WebPageProxy::close):
+        (WebKit::WebPageProxy::resetStateAfterProcessExited):
+
 2018-06-23  Darin Adler  <[email protected]>
 
         [Cocoa] Improve ARC compatibility of more code in _javascript_Core

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (233421 => 233422)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2018-07-02 11:51:40 UTC (rev 233421)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2018-07-02 14:35:16 UTC (rev 233422)
@@ -920,6 +920,10 @@
     m_activityToken = nullptr;
 #endif
 
+#if PLATFORM(MAC) && ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING)
+    m_displayLink = nullptr;
+#endif
+
     stopAllURLSchemeTasks();
 }
 
@@ -6085,6 +6089,11 @@
 #if PLATFORM(IOS)
     m_activityToken = nullptr;
 #endif
+
+#if PLATFORM(MAC) && ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING)
+    m_displayLink = nullptr;
+#endif
+
     m_pageIsUserObservableCount = nullptr;
     m_visiblePageToken = nullptr;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to