Mercurial > dwindows
diff gtk3/dw.c @ 2010:617a78dc70aa
Added a number of possible javascript snippets to test.
Pass NULL in the result field of the html result callback in the case of a
non-string javascript result, instead of a generic error message.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 07 Nov 2019 02:07:49 +0000 |
parents | 74facb490f5a |
children | ed9217a95924 |
line wrap: on
line diff
--- a/gtk3/dw.c Thu Nov 07 01:39:52 2019 +0000 +++ b/gtk3/dw.c Thu Nov 07 02:07:49 2019 +0000 @@ -1247,7 +1247,7 @@ g_free (str_value); } else if(htmlresultfunc) - htmlresultfunc((HWND)object, DW_ERROR_UNKNOWN, "Unknown javascript error", user_data, script_data); + htmlresultfunc((HWND)object, DW_ERROR_UNKNOWN, NULL, user_data, script_data); webkit_javascript_result_unref (js_result); #endif }