Allow --text-info to load resources from absolute file:// URIs
This commit is contained in:
parent
673550b6d3
commit
8098bb3dd7
@ -59,7 +59,7 @@ zenity_configure_webkit (WebKitWebView *web_view)
|
||||
g_object_set(G_OBJECT(settings), "enable-developer-extras", FALSE, NULL);
|
||||
/* unexisting property? g_object_set(G_OBJECT(settings), "enable-dns-prefetching", FALSE, NULL);*/
|
||||
g_object_set(G_OBJECT(settings), "enable-dom-paste", FALSE, NULL);
|
||||
g_object_set(G_OBJECT(settings), "enable-file-access-from-file-uris", FALSE, NULL);
|
||||
g_object_set(G_OBJECT(settings), "enable-file-access-from-file-uris", TRUE, NULL);
|
||||
/* unexisting property? g_object_set(G_OBJECT(settings), "enable-frame-flattening", FALSE, NULL);*/
|
||||
/* unexisting property? g_object_set(G_OBJECT(settings), "enable-fullscreen", FALSE, NULL);*/
|
||||
g_object_set(G_OBJECT(settings), "enable-html5-database", FALSE, NULL);
|
||||
@ -319,7 +319,7 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
|
||||
gtk_text_buffer_get_start_iter (text_buffer, &start_iter);
|
||||
gtk_text_buffer_get_end_iter (text_buffer, &end_iter);
|
||||
content = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, TRUE);
|
||||
webkit_web_view_load_string (WEBKIT_WEB_VIEW(web_kit), content, "text/html", "UTF-8", NULL);
|
||||
webkit_web_view_load_string (WEBKIT_WEB_VIEW(web_kit), content, "text/html", "UTF-8", "file:///");
|
||||
g_free (content);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user