Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit a511b71

Browse files
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. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@241925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent e0ce8b2 commit a511b71

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Source/WebKit/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2019-02-21 Tim Horton <[email protected]>
2+
3+
Turn a high-value UI-side-compositing assertion into a release assert
4+
https://bugs.webkit.org/show_bug.cgi?id=194887
5+
6+
Reviewed by Simon Fraser.
7+
8+
* WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp:
9+
(WebKit::PlatformCALayerRemote::recursiveBuildTransaction):
10+
There is absolutely no situation in which this assert should fire
11+
if WebKit is behaving correctly, and it will basically always result
12+
in a UI process crash (or at least confusion), so make it a release assert.
13+
This would have saved us a lot of stress in bug 194845.
14+
115
2019-02-21 Don Olmstead <[email protected]>
216

317
[MSVC] Fix compilation errors with lambdas in ResourceLoadStatistics

Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCALayerRemote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void PlatformCALayerRemote::updateClonedLayerProperties(PlatformCALayerRemote& c
168168
void PlatformCALayerRemote::recursiveBuildTransaction(RemoteLayerTreeContext& context, RemoteLayerTreeTransaction& transaction)
169169
{
170170
ASSERT(!m_properties.backingStore || owner());
171-
ASSERT_WITH_SECURITY_IMPLICATION(&context == m_context);
171+
RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(&context == m_context);
172172

173173
if (m_properties.backingStore && (!owner() || !owner()->platformCALayerDrawsContent())) {
174174
m_properties.backingStore = nullptr;

0 commit comments

Comments
 (0)