[Webkit-unassigned] [Bug 122801] [GTK] Crash when click on "print to file" on print dialog (via javascript)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 7 07:14:50 PST 2013


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


Lorenzo Tilve <ltilve at igalia.com> changed:

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




--- Comment #4 from Lorenzo Tilve <ltilve at igalia.com>  2013-11-07 07:13:36 PST ---
It is not only crashing when selecting the option to print to file, but also when effectively printing to any device.

Calling a javascript window.print() lanuches the GTK print menu, and if the "print to file" option is selected the GTK function gtk_print_settings_get (gtk/gtkprintsettings.c) crashes due to the print settings array being empty when getting the output filename at return g_hash_table_lookup (settings->hash, key);

When the webkitPrintOperationRunDialog is called externally like at the epiphany print command, the operation goes fine. Forcing the setting of the print_settings like ephy does:

   settings = gtk_print_settings_new ();
   gtk_print_settings_set (settings,
                           GTK_PRINT_SETTINGS_OUTPUT_BASENAME,
                          ephy_web_view_get_title (view));
   webkit_print_operation_set_print_settings (operation, settings);

fixes the first crash, but it's still failing at the moment of dumping the print file.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list