Changeset 232834 in webkit
- Timestamp:
- Jun 14, 2018 1:57:03 AM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r232832 r232834 1 2018-06-14 Zan Dobersek <zdobersek@igalia.com> 2 3 [GTK][WPE] MiniBrowsers should be able to ignore TLS errors 4 https://bugs.webkit.org/show_bug.cgi?id=186557 5 6 Reviewed by Carlos Garcia Campos. 7 8 Add the --ignore-tls-errors flags to the GTK and WPE MiniBrowsers. 9 Enabling the flag enforces ignoring of TLS errors that occur during 10 load. This is primarily useful for loading test cases from the wpt or 11 run-webkit-httpd servers where testing-purpose certificates are used. 12 13 * MiniBrowser/gtk/main.c: 14 (main): 15 * MiniBrowser/wpe/main.cpp: 16 (main): 17 1 18 2018-06-13 Adrian Perez de Castro <aperez@igalia.com> 2 19 -
trunk/Tools/MiniBrowser/gtk/main.c
r232010 r232834 46 46 static gboolean automationMode; 47 47 static gboolean fullScreen; 48 static gboolean ignoreTLSErrors; 48 49 static const char *cookiesFile; 49 50 static const char *cookiesPolicy; … … 109 110 { "proxy", 0, 0, G_OPTION_ARG_STRING, &proxy, "Set proxy", "PROXY" }, 110 111 { "ignore-host", 0, 0, G_OPTION_ARG_STRING_ARRAY, &ignoreHosts, "Set proxy ignore hosts", "HOSTS" }, 112 { "ignore-tls-errors", 0, 0, G_OPTION_ARG_NONE, &ignoreTLSErrors, "Ignore TLS errors", NULL }, 111 113 { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, 0, "[URL…]" }, 112 114 { 0, 0, 0, 0, 0, 0, 0 } … … 536 538 g_signal_connect(webContext, "automation-started", G_CALLBACK(automationStartedCallback), NULL); 537 539 540 if (ignoreTLSErrors) 541 webkit_web_context_set_tls_errors_policy(webContext, WEBKIT_TLS_ERRORS_POLICY_IGNORE); 542 538 543 BrowserWindow *mainWindow = BROWSER_WINDOW(browser_window_new(NULL, webContext)); 539 544 if (fullScreen) -
trunk/Tools/MiniBrowser/wpe/main.cpp
r232670 r232834 37 37 static gboolean privateMode; 38 38 static gboolean automationMode; 39 static gboolean ignoreTLSErrors; 39 40 static const char* cookiesFile; 40 41 static const char* cookiesPolicy; … … 50 51 { "proxy", 0, 0, G_OPTION_ARG_STRING, &proxy, "Set proxy", "PROXY" }, 51 52 { "ignore-host", 0, 0, G_OPTION_ARG_STRING_ARRAY, &ignoreHosts, "Set proxy ignore hosts", "HOSTS" }, 53 { "ignore-tls-errors", 0, 0, G_OPTION_ARG_NONE, &ignoreTLSErrors, "Ignore TLS errors", nullptr }, 52 54 { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &uriArguments, nullptr, "[URL]" }, 53 55 { nullptr, 0, 0, G_OPTION_ARG_NONE, nullptr, nullptr, nullptr } … … 181 183 g_signal_connect(webContext, "automation-started", G_CALLBACK(automationStartedCallback), webView); 182 184 185 if (ignoreTLSErrors) 186 webkit_web_context_set_tls_errors_policy(webContext, WEBKIT_TLS_ERRORS_POLICY_IGNORE); 187 183 188 if (uriArguments) 184 189 webkit_web_view_load_uri(webView, uriArguments[0]);
Note: See TracChangeset
for help on using the changeset viewer.