[Webkit-unassigned] [Bug 196542] [GTK] gtk_print_settings_to_key_file: assertion 'GTK_IS_PRINT_SETTINGS (settings)' failed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 14 04:51:10 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=196542

Claudio Saavedra <csaavedra at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |csaavedra at igalia.com

--- Comment #2 from Claudio Saavedra <csaavedra at igalia.com> ---
The problem is that the test runner is calling WKPageBeginPrinting() with a WKPrintInfo struct that gets converted to a WebKit::PrintInfo by calling printInfoFromWKPrintInfo(), but this method doesn't fill the GtkPrintSettings and GtkPageSetup members in the struct, so these remain null, because they don't have 
a default initial value. Then the encoder is assuming that these are non null, and calling GTK API on them, and the GTK API fails with a critical because they are NULL.

So either printInfoFromWKPrintInfo() needs to fill these members for the GTK port, or the encoder shouldn't assume that these members are non null, or they should be default-initialized.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220414/5835f226/attachment.htm>


More information about the webkit-unassigned mailing list