GNOME Bugzilla – Bug 786592
[PATCH] web-view: fix SIGSEGV when saving non-webpages
Last modified: 2017-08-23 14:01:55 UTC
Created attachment 358106 [details] [review] 0001-web-view-fix-SIGSEGV-when-saving-non-webpages.patch webkit_web_resource_get_data_finish() can return NULL without setting error. This happens when e.g. attempting to save the page of a music player or PDF viewer.
Review of attachment 358106 [details] [review]: I noticed this the other day. Unfortunately the patch is not right. webkit_web_resource_get_data_finish() is broken. It is wrong to return NULL without setting error, because it is documented to return NULL only in case of error. This is a WebKit bug.
Do you want to report this on WebKit Bugzilla? We need to fix it there. It would be helpful if you could include a link to a particular website that is broken, because I never figured out how to reproduce this. I know I've hit this crash before, but I don't remember how. Thanks for taking the time to report this. This issue is most likely a bug in WebKit. Please report the bug to https://bugs.webkit.org/ including a link to this bug report and noting the version of WebKitGTK+ that you have installed. When reporting the WebKit bug, be sure to include the prefix '[GTK]' in the bug summary and select the 'WebKit Gtk' component.
Reported: https://bugs.webkit.org/show_bug.cgi?id=175870