Changeset 159041 in webkit


Ignore:
Timestamp:
Nov 11, 2013 12:24:32 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] [WebKit2] Crash when printing to a file via javascript
https://bugs.webkit.org/show_bug.cgi?id=122801

Reviewed by Martin Robinson.

This crash is caused by a GTK+ bug, but we can work around it by
ensuring the print dialog is always shown with a valid
GtkPrintSettings object.

  • UIProcess/API/gtk/WebKitPrintOperation.cpp:

(webkitPrintOperationRunDialog):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r159016 r159041  
     12013-11-10  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] [WebKit2] Crash when printing to a file via javascript
     4        https://bugs.webkit.org/show_bug.cgi?id=122801
     5
     6        Reviewed by Martin Robinson.
     7
     8        This crash is caused by a GTK+ bug, but we can work around it by
     9        ensuring the print dialog is always shown with a valid
     10        GtkPrintSettings object.
     11
     12        * UIProcess/API/gtk/WebKitPrintOperation.cpp:
     13        (webkitPrintOperationRunDialog):
     14
    1152013-11-09  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrintOperation.cpp

    r137469 r159041  
    229229
    230230    WebKitPrintOperationPrivate* priv = printOperation->priv;
    231     if (priv->printSettings)
    232         gtk_print_unix_dialog_set_settings(printDialog, priv->printSettings.get());
     231    // Make sure the initial settings of the GtkPrintUnixDialog is a valid
     232    // GtkPrintSettings object to work around a crash happening in the GTK+
     233    // file print backend. https://bugzilla.gnome.org/show_bug.cgi?id=703784.
     234    if (!priv->printSettings)
     235        priv->printSettings = adoptGRef(gtk_print_settings_new());
     236    gtk_print_unix_dialog_set_settings(printDialog, priv->printSettings.get());
    233237
    234238    if (priv->pageSetup)
Note: See TracChangeset for help on using the changeset viewer.