[webkit-changes] [WebKit/WebKit] fd0db7: [GTK] gsk_renderer_render_texture: assertion 'GSK_...
Michael Catanzaro
noreply at github.com
Fri Dec 2 00:18:25 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fd0db7c03a484d61a5c147c4616d1866233e7bc8
https://github.com/WebKit/WebKit/commit/fd0db7c03a484d61a5c147c4616d1866233e7bc8
Author: Michael Catanzaro <mcatanzaro at redhat.com>
Date: 2022-12-02 (Fri, 02 Dec 2022)
Changed paths:
M Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp
Log Message:
-----------
[GTK] gsk_renderer_render_texture: assertion 'GSK_IS_RENDER_NODE (root)' failed in webkitWebViewBaseTakeViewSnapshot
https://bugs.webkit.org/show_bug.cgi?id=247463
Reviewed by Carlos Garcia Campos.
I don't know how to reproduce this crash, but it happens a lot and the
solution is clear enough. When the snapshot is empty, then the
GskRenderNode is nullptr, and we should immediately return nullptr
instead of trying to use it as a valid GskRenderNode. The return value
here is already nullable, so there's nothing more to worry about.
I'm not certain why this happens, but I think it might be associated
with web process hangs. Doesn't matter: the UI process should be robust
regardless.
Thanks to Benjamin Otte for helping with my questions regarding this
issue.
* Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:
(webkitWebViewBaseTakeViewSnapshot):
Canonical link: https://commits.webkit.org/257276@main
More information about the webkit-changes
mailing list