Changeset 225972 in webkit
- Timestamp:
- Dec 15, 2017 6:27:25 AM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r225959 r225972 1 2017-12-15 Nael Ouedraogo <nael.ouedraogo@crf.canon.fr> 2 3 [GTK] Add proxy option to Minibrowser 4 https://bugs.webkit.org/show_bug.cgi?id=180750 5 6 Reviewed by Michael Catanzaro. 7 8 Add command line option to set proxy settings in GTK minibrowser. 9 10 * MiniBrowser/gtk/main.c: 11 (main): 12 1 13 2017-12-14 Basuke Suzuki <Basuke.Suzuki@sony.com> 2 14 -
trunk/Tools/MiniBrowser/gtk/main.c
r222967 r225972 38 38 39 39 static const gchar **uriArguments = NULL; 40 static const gchar **ignoreHosts = NULL; 40 41 static GdkRGBA *backgroundColor; 41 42 static gboolean editorMode; … … 46 47 static gboolean fullScreen; 47 48 static gboolean enableIntelligentTrackingPrevention; 49 static const char *proxy; 48 50 49 51 typedef enum { … … 103 105 { "automation", 0, 0, G_OPTION_ARG_NONE, &automationMode, "Run in automation mode", NULL }, 104 106 { "enable-itp", 0, 0, G_OPTION_ARG_NONE, &enableIntelligentTrackingPrevention, "Enable intelligent tracking prevention", NULL }, 107 { "proxy", 0, 0, G_OPTION_ARG_STRING, &proxy, "Set proxy", "PROXY" }, 108 { "ignore-host", 0, 0, G_OPTION_ARG_STRING_ARRAY, &ignoreHosts, "Set proxy ignore hosts", "HOSTS" }, 105 109 { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, 0, "[URL…]" }, 106 110 { 0, 0, 0, 0, 0, 0, 0 } … … 501 505 WebKitWebContext *webContext = (privateMode || automationMode) ? webkit_web_context_new_ephemeral() : webkit_web_context_get_default(); 502 506 507 if (proxy) { 508 WebKitNetworkProxySettings *webkitProxySettings = webkit_network_proxy_settings_new(proxy, ignoreHosts); 509 webkit_web_context_set_network_proxy_settings(webContext, WEBKIT_NETWORK_PROXY_MODE_CUSTOM, webkitProxySettings); 510 webkit_network_proxy_settings_free(webkitProxySettings); 511 } 512 503 513 const gchar *singleprocess = g_getenv("MINIBROWSER_SINGLEPROCESS"); 504 514 webkit_web_context_set_process_model(webContext, (singleprocess && *singleprocess) ?
Note: See TracChangeset
for help on using the changeset viewer.