changeset 2084:524cb235a555

Added window.navigator.userAgent to dwtest javascript test. This shows how to get more detailed engine information on platforms that support dw_html_javascript_run(). Might need a way to indicate that DW_SIGNAL_HTML_RESULT is supported in dw_environment_query() since webkitgtk does not support the callback to get the result only webkit2gtk.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 02 Jun 2020 18:35:53 +0000
parents f1acc157b2dd
children 43453c9a404c
files dwtest.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Sun May 31 15:15:34 2020 +0000
+++ b/dwtest.c	Tue Jun 02 18:35:53 2020 +0000
@@ -1850,6 +1850,7 @@
 
         dw_listbox_append(javascript, "window.scrollTo(0,500);");
         dw_listbox_append(javascript, "window.document.title;");
+        dw_listbox_append(javascript, "window.navigator.userAgent;");
 
         dw_box_pack_start( notebookbox7, rawhtml, 0, 100, TRUE, FALSE, 0);
         dw_html_raw(rawhtml, "<html><body><center><h1>dwtest</h1></center></body></html>");