Title: [241925] trunk/Source/WebKit
Revision
241925
Author
[email protected]
Date
2019-02-21 17:51:32 -0800 (Thu, 21 Feb 2019)

Log Message

Turn a high-value UI-side-compositing assertion into a release assert
https://bugs.webkit.org/show_bug.cgi?id=194887

Reviewed by Simon Fraser.

* WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp:
(WebKit::PlatformCALayerRemote::recursiveBuildTransaction):
There is absolutely no situation in which this assert should fire
if WebKit is behaving correctly, and it will basically always result
in a UI process crash (or at least confusion), so make it a release assert.
This would have saved us a lot of stress in bug 194845.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (241924 => 241925)


--- trunk/Source/WebKit/ChangeLog	2019-02-22 01:05:08 UTC (rev 241924)
+++ trunk/Source/WebKit/ChangeLog	2019-02-22 01:51:32 UTC (rev 241925)
@@ -1,3 +1,17 @@
+2019-02-21  Tim Horton  <[email protected]>
+
+        Turn a high-value UI-side-compositing assertion into a release assert
+        https://bugs.webkit.org/show_bug.cgi?id=194887
+
+        Reviewed by Simon Fraser.
+
+        * WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp:
+        (WebKit::PlatformCALayerRemote::recursiveBuildTransaction):
+        There is absolutely no situation in which this assert should fire
+        if WebKit is behaving correctly, and it will basically always result
+        in a UI process crash (or at least confusion), so make it a release assert.
+        This would have saved us a lot of stress in bug 194845.
+
 2019-02-21  Don Olmstead  <[email protected]>
 
         [MSVC] Fix compilation errors with lambdas in ResourceLoadStatistics

Modified: trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp (241924 => 241925)


--- trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp	2019-02-22 01:05:08 UTC (rev 241924)
+++ trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp	2019-02-22 01:51:32 UTC (rev 241925)
@@ -168,7 +168,7 @@
 void PlatformCALayerRemote::recursiveBuildTransaction(RemoteLayerTreeContext& context, RemoteLayerTreeTransaction& transaction)
 {
     ASSERT(!m_properties.backingStore || owner());
-    ASSERT_WITH_SECURITY_IMPLICATION(&context == m_context);
+    RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(&context == m_context);
     
     if (m_properties.backingStore && (!owner() || !owner()->platformCALayerDrawsContent())) {
         m_properties.backingStore = nullptr;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to