Changeset 220903 in webkit
- Timestamp:
- Aug 18, 2017 12:22:13 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220901 r220903 1 2017-08-18 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r220854. 4 https://bugs.webkit.org/show_bug.cgi?id=175716 5 6 I'm not sure we really need this (Requested by KaL on 7 #webkit). 8 9 Reverted changeset: 10 11 "[GTK][WPE] Add NTLM authentication enabled API" 12 https://bugs.webkit.org/show_bug.cgi?id=122952 13 http://trac.webkit.org/changeset/220854 14 1 15 2017-08-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp
r220854 r220903 47 47 48 48 static bool gIgnoreTLSErrors; 49 static bool gInitialNTLMAuthenticationEnabled;50 49 static CString gInitialAcceptLanguages; 51 50 static SoupNetworkProxySettings gProxySettings; … … 147 146 if (!gInitialAcceptLanguages.isNull()) 148 147 setAcceptLanguages(gInitialAcceptLanguages); 149 150 if (gInitialNTLMAuthenticationEnabled)151 soup_session_add_feature_by_type(m_soupSession.get(), SOUP_TYPE_AUTH_NTLM);152 148 153 149 #if SOUP_CHECK_VERSION(2, 53, 92) … … 328 324 } 329 325 330 void SoupNetworkSession::setInitialNTLMAuthenticationEnabled(bool enabled)331 {332 gInitialNTLMAuthenticationEnabled = enabled;333 }334 335 void SoupNetworkSession::setNTLMAuthenticationEnabled(bool enabled)336 {337 if (enabled)338 soup_session_add_feature_by_type(m_soupSession.get(), SOUP_TYPE_AUTH_NTLM);339 else340 soup_session_remove_feature_by_type(m_soupSession.get(), SOUP_TYPE_AUTH_NTLM);341 }342 343 326 } // namespace WebCore 344 327 -
trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h
r220854 r220903 71 71 void setupCustomProtocols(); 72 72 73 static void setInitialNTLMAuthenticationEnabled(bool);74 void setNTLMAuthenticationEnabled(bool);75 76 73 private: 77 74 void setupLogger(); -
trunk/Source/WebKit/ChangeLog
r220895 r220903 1 2017-08-18 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r220854. 4 https://bugs.webkit.org/show_bug.cgi?id=175716 5 6 I'm not sure we really need this (Requested by KaL on 7 #webkit). 8 9 Reverted changeset: 10 11 "[GTK][WPE] Add NTLM authentication enabled API" 12 https://bugs.webkit.org/show_bug.cgi?id=122952 13 http://trac.webkit.org/changeset/220854 14 1 15 2017-08-15 Megan Gardner <megan_gardner@apple.com> 2 16 -
trunk/Source/WebKit/NetworkProcess/NetworkProcess.h
r220887 r220903 214 214 void userPreferredLanguagesChanged(const Vector<String>&); 215 215 void setNetworkProxySettings(const WebCore::SoupNetworkProxySettings&); 216 void setNTLMAuthenticationEnabled(bool);217 216 #endif 218 217 -
trunk/Source/WebKit/NetworkProcess/NetworkProcess.messages.in
r220857 r220903 32 32 UserPreferredLanguagesChanged(Vector<String> languages) 33 33 SetNetworkProxySettings(struct WebCore::SoupNetworkProxySettings settings) 34 SetNTLMAuthenticationEnabled(bool enabled)35 34 #endif 36 35 -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.cpp
r220854 r220903 91 91 encoder.encodeEnum(cookieAcceptPolicy); 92 92 encoder << ignoreTLSErrors; 93 encoder << ntlmAuthenticationEnabled;94 93 encoder << languages; 95 94 encoder << proxySettings; … … 190 189 if (!decoder.decode(result.ignoreTLSErrors)) 191 190 return false; 192 if (!decoder.decode(result.ntlmAuthenticationEnabled))193 return false;194 191 if (!decoder.decode(result.languages)) 195 192 return false; -
trunk/Source/WebKit/NetworkProcess/NetworkProcessCreationParameters.h
r220854 r220903 103 103 HTTPCookieAcceptPolicy cookieAcceptPolicy { HTTPCookieAcceptPolicyAlways }; 104 104 bool ignoreTLSErrors { false }; 105 bool ntlmAuthenticationEnabled { false };106 105 Vector<String> languages; 107 106 WebCore::SoupNetworkProxySettings proxySettings; -
trunk/Source/WebKit/NetworkProcess/soup/NetworkProcessSoup.cpp
r220854 r220903 133 133 134 134 setIgnoreTLSErrors(parameters.ignoreTLSErrors); 135 setNTLMAuthenticationEnabled(parameters.ntlmAuthenticationEnabled);136 135 } 137 136 … … 148 147 { 149 148 SoupNetworkSession::allowSpecificHTTPSCertificateForHost(certificateInfo, host); 150 }151 152 void NetworkProcess::setNTLMAuthenticationEnabled(bool enabled)153 {154 SoupNetworkSession::setInitialNTLMAuthenticationEnabled(enabled);155 NetworkStorageSession::forEach([enabled](const NetworkStorageSession& session) {156 if (auto* soupSession = session.soupNetworkSession())157 soupSession->setNTLMAuthenticationEnabled(enabled);158 });159 149 } 160 150 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
r220854 r220903 1547 1547 } 1548 1548 1549 /**1550 * webkit_web_context_get_ntlm_authentication_enabled:1551 * @context: a #WebKitWebContext1552 *1553 * Get whether NTLM authentication is currently enabled. By default, the feature1554 * is disabled, and you need to call webkit_web_context_set_ntlm_authentication_enabled()1555 * to enable it.1556 *1557 * Returns: %TRUE if NTLM authentication is enabled, or %FALSE otherwise.1558 *1559 * Since: 2.181560 */1561 gboolean webkit_web_context_get_ntlm_authentication_enabled(WebKitWebContext* context)1562 {1563 g_return_val_if_fail(WEBKIT_IS_WEB_CONTEXT(context), FALSE);1564 1565 return context->priv->processPool->ntlmAuthenticationEnabled();1566 }1567 1568 /**1569 * webkit_web_context_set_ntlm_authentication_enabled:1570 * @context: a #WebKitWebContext1571 * @enabled: Value to be set1572 *1573 * Enable or disable NTLM authentication.1574 *1575 * Since: 2.181576 */1577 void webkit_web_context_set_ntlm_authentication_enabled(WebKitWebContext* context, gboolean enabled)1578 {1579 g_return_if_fail(WEBKIT_IS_WEB_CONTEXT(context));1580 1581 return context->priv->processPool->setNTLMAuthenticationEnabled(enabled);1582 }1583 1584 1549 void webkitWebContextInitializeNotificationPermissions(WebKitWebContext* context) 1585 1550 { -
trunk/Source/WebKit/UIProcess/API/gtk/WebKitWebContext.h
r220854 r220903 307 307 GList *disallowed_origins); 308 308 309 WEBKIT_API gboolean310 webkit_web_context_get_ntlm_authentication_enabled (WebKitWebContext *context);311 312 WEBKIT_API void313 webkit_web_context_set_ntlm_authentication_enabled (WebKitWebContext *context,314 gboolean enabled);315 316 309 G_END_DECLS 317 310 -
trunk/Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt
r220854 r220903 67 67 webkit_web_context_set_process_model 68 68 webkit_web_context_initialize_notification_permissions 69 webkit_web_context_get_ntlm_authentication_enabled70 webkit_web_context_set_ntlm_authentication_enabled71 69 72 70 <SUBSECTION URI Scheme> -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitWebContext.h
r220854 r220903 307 307 GList *disallowed_origins); 308 308 309 WEBKIT_API gboolean310 webkit_web_context_get_ntlm_authentication_enabled (WebKitWebContext *context);311 312 WEBKIT_API void313 webkit_web_context_set_ntlm_authentication_enabled (WebKitWebContext *context,314 gboolean enabled);315 316 309 G_END_DECLS 317 310 -
trunk/Source/WebKit/UIProcess/WebProcessPool.h
r220887 r220903 227 227 228 228 #if USE(SOUP) 229 void setIgnoreTLSErrors(bool);230 bool ignoreTLSErrors() const { return m_ignoreTLSErrors; }231 229 void setInitialHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy policy) { m_initialHTTPCookieAcceptPolicy = policy; } 232 230 void setNetworkProxySettings(const WebCore::SoupNetworkProxySettings&); 233 void setNTLMAuthenticationEnabled(bool);234 bool ntlmAuthenticationEnabled() const { return m_ntlmAuthenticationEnabled; }235 231 #endif 236 232 void setEnhancedAccessibility(bool); … … 330 326 static void willStartUsingPrivateBrowsing(); 331 327 static void willStopUsingPrivateBrowsing(); 328 329 #if USE(SOUP) 330 void setIgnoreTLSErrors(bool); 331 bool ignoreTLSErrors() const { return m_ignoreTLSErrors; } 332 #endif 332 333 333 334 static void setInvalidMessageCallback(void (*)(WKStringRef)); … … 527 528 HTTPCookieAcceptPolicy m_initialHTTPCookieAcceptPolicy { HTTPCookieAcceptPolicyOnlyFromMainDocumentDomain }; 528 529 WebCore::SoupNetworkProxySettings m_networkProxySettings; 529 bool m_ignoreTLSErrors { true };530 bool m_ntlmAuthenticationEnabled { false };531 530 #endif 532 531 HashSet<String, ASCIICaseInsensitiveHash> m_urlSchemesRegisteredForCustomProtocols; … … 556 555 HashMap<uint64_t, RefPtr<DictionaryCallback>> m_dictionaryCallbacks; 557 556 HashMap<uint64_t, RefPtr<StatisticsRequest>> m_statisticsRequests; 557 558 #if USE(SOUP) 559 bool m_ignoreTLSErrors { true }; 560 #endif 558 561 559 562 bool m_memoryCacheDisabled; -
trunk/Source/WebKit/UIProcess/soup/WebProcessPoolSoup.cpp
r220854 r220903 62 62 } 63 63 64 void WebProcessPool::setNTLMAuthenticationEnabled(bool enabled)65 {66 if (m_ntlmAuthenticationEnabled == enabled)67 return;68 69 m_ntlmAuthenticationEnabled = enabled;70 if (m_networkProcess)71 m_networkProcess->send(Messages::NetworkProcess::SetNTLMAuthenticationEnabled(m_ntlmAuthenticationEnabled), 0);72 64 } 73 74 } -
trunk/Tools/ChangeLog
r220902 r220903 1 2017-08-18 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r220854. 4 https://bugs.webkit.org/show_bug.cgi?id=175716 5 6 I'm not sure we really need this (Requested by KaL on 7 #webkit). 8 9 Reverted changeset: 10 11 "[GTK][WPE] Add NTLM authentication enabled API" 12 https://bugs.webkit.org/show_bug.cgi?id=122952 13 http://trac.webkit.org/changeset/220854 14 1 15 2017-08-17 Michael Catanzaro <mcatanzaro@igalia.com> 2 16 -
trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp
r220854 r220903 251 251 g_assert_cmpint(test->m_loadEvents[2], ==, LoadTrackingTest::LoadFinished); 252 252 g_assert_cmpstr(webkit_web_view_get_title(test->m_webView), ==, authExpectedSuccessTitle); 253 }254 255 static void testWebViewAuthenticationNTLM(AuthenticationTest* test, gconstpointer)256 {257 // NTML is disabled by default.258 g_assert(!webkit_web_context_get_ntlm_authentication_enabled(test->m_webContext.get()));259 webkit_web_context_set_ntlm_authentication_enabled(test->m_webContext.get(), TRUE);260 g_assert(webkit_web_context_get_ntlm_authentication_enabled(test->m_webContext.get()));261 262 // FIXME: can we test NTLM authentication?263 253 } 264 254 … … 429 419 AuthenticationTest::add("WebKitWebView", "authentication-storage", testWebViewAuthenticationStorage); 430 420 AuthenticationTest::add("WebKitWebView", "authentication-empty-realm", testWebViewAuthenticationEmptyRealm); 431 AuthenticationTest::add("WebKitWebView", "authentication-ntlm", testWebViewAuthenticationNTLM);432 421 ProxyAuthenticationTest::add("WebKitWebView", "authentication-proxy", testWebViewAuthenticationProxy); 433 422 ProxyAuthenticationTest::add("WebKitWebView", "authentication-proxy-https", testWebViewAuthenticationProxyHTTPS);
Note: See TracChangeset
for help on using the changeset viewer.