comparison 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
comparison
equal deleted inserted replaced
2009:8577d533b371 2010:617a78dc70aa
1245 htmlresultfunc((HWND)object, DW_ERROR_NONE, str_value, user_data, script_data); 1245 htmlresultfunc((HWND)object, DW_ERROR_NONE, str_value, user_data, script_data);
1246 } 1246 }
1247 g_free (str_value); 1247 g_free (str_value);
1248 } 1248 }
1249 else if(htmlresultfunc) 1249 else if(htmlresultfunc)
1250 htmlresultfunc((HWND)object, DW_ERROR_UNKNOWN, "Unknown javascript error", user_data, script_data); 1250 htmlresultfunc((HWND)object, DW_ERROR_UNKNOWN, NULL, user_data, script_data);
1251 webkit_javascript_result_unref (js_result); 1251 webkit_javascript_result_unref (js_result);
1252 #endif 1252 #endif
1253 } 1253 }
1254 1254
1255 #ifdef USE_WEBKIT 1255 #ifdef USE_WEBKIT