[WPE][GTK] Crash in webkit_web_resource_get_data_finish()
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Oct 2017 19:48:37 +0000 (19:48 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Oct 2017 19:48:37 +0000 (19:48 +0000)
commit7977cb1cfd45df339a35987be862a1d247538e6e
tree090ca07ed43e2e64cf3ee81e6223544a902821cc
parent85bf16d4fde8401598eb1f8b8bf73dae0b6324b1
[WPE][GTK] Crash in webkit_web_resource_get_data_finish()
https://bugs.webkit.org/show_bug.cgi?id=177107

Reviewed by Michael Catanzaro.

Source/WebKit:

Handle errors in webkit_web_resource_get_data() callback.

* UIProcess/API/glib/WebKitWebResource.cpp:
(resourceDataCallback):
(webkit_web_resource_get_data):

Tools:

Add a test case to check we handle errors when webkit_web_resource_get_data() fails.

* TestWebKitAPI/Tests/WebKitGLib/TestResources.cpp:
(webViewloadChanged):
(testWebResourceGetDataError):
(beforeAll):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/API/glib/WebKitWebResource.cpp
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitGLib/TestResources.cpp