Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2d1b53b211b43047b94b7d2ef8a3907f00e724fb https://github.com/WebKit/WebKit/commit/2d1b53b211b43047b94b7d2ef8a3907f00e724fb Author: Carlos Garcia Campos <cgar...@igalia.com> Date: 2023-01-26 (Thu, 26 Jan 2023)
Changed paths: M Source/WebKit/PlatformGTK.cmake M Source/WebKit/PlatformWPE.cmake M Source/WebKit/SourcesGTK.txt M Source/WebKit/SourcesWPE.txt M Source/WebKit/UIProcess/API/glib/IconDatabase.cpp M Source/WebKit/UIProcess/API/glib/WebKitAutocleanups.h.in M Source/WebKit/UIProcess/API/glib/WebKitAutomationSession.cpp M Source/WebKit/UIProcess/API/glib/WebKitNavigationClient.cpp A Source/WebKit/UIProcess/API/glib/WebKitNetworkSession.cpp A Source/WebKit/UIProcess/API/glib/WebKitNetworkSession.h.in A Source/WebKit/UIProcess/API/glib/WebKitNetworkSessionPrivate.h M Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp M Source/WebKit/UIProcess/API/glib/WebKitWebContext.h.in M Source/WebKit/UIProcess/API/glib/WebKitWebContextPrivate.h M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp M Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in M Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.cpp M Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.h.in M Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManagerPrivate.h M Source/WebKit/UIProcess/API/glib/webkit.h.in M Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp M Source/WebKit/UIProcess/API/wpe/WebKitWebViewWPE.cpp M Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp M Source/WebKit/gtk/migrating-to-webkitgtk-6.0.md M Tools/MiniBrowser/gtk/BrowserTab.c M Tools/MiniBrowser/gtk/BrowserWindow.c M Tools/MiniBrowser/gtk/BrowserWindow.h M Tools/MiniBrowser/gtk/main.c M Tools/MiniBrowser/wpe/main.cpp M Tools/PlatformWPE.cmake M Tools/TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp A Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitNetworkSession.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp M Tools/TestWebKitAPI/Tests/WebKitGtk/TestAutocleanups.cpp M Tools/TestWebKitAPI/glib/CMakeLists.txt M Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.cpp M Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h M Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp Log Message: ----------- [WPE][GTK] Move network session APIs to a new WebKitNetworkSession class https://bugs.webkit.org/show_bug.cgi?id=222366 Reviewed by Michael Catanzaro. Add new WebKitNetworkSession class to expose all the networking APIs that were part of WebKitWebContext and WebKitWebsiteDataManager. Also switch to use a single global network process. * Source/WebKit/PlatformGTK.cmake: * Source/WebKit/PlatformWPE.cmake: * Source/WebKit/SourcesGTK.txt: * Source/WebKit/SourcesWPE.txt: * Source/WebKit/UIProcess/API/glib/IconDatabase.cpp: (WebKit::IconDatabase::IconDatabase): * Source/WebKit/UIProcess/API/glib/WebKitAutocleanups.h.in: * Source/WebKit/UIProcess/API/glib/WebKitAutomationSession.cpp: (webkitAutomationSessionCreate): * Source/WebKit/UIProcess/API/glib/WebKitNavigationClient.cpp: * Source/WebKit/UIProcess/API/glib/WebKitNetworkSession.cpp: Added. (_WebKitNetworkSessionPrivate::_WebKitNetworkSessionPrivate): (webkitNetworkSessionGetProperty): (webkitNetworkSessionSetProperty): (webkitNetworkSessionConstructed): (webkit_network_session_class_init): (webkitNetworkSessionDownloadStarted): (createDefaultNetworkSession): (webkit_network_session_get_default): (webkit_network_session_new): (webkit_network_session_new_ephemeral): (webkit_network_session_is_ephemeral): (webkit_network_session_get_website_data_manager): (webkit_network_session_get_cookie_manager): (webkit_network_session_set_itp_enabled): (webkit_network_session_get_itp_enabled): (webkit_network_session_set_persistent_credential_storage_enabled): (webkit_network_session_get_persistent_credential_storage_enabled): (webkit_network_session_set_tls_errors_policy): (webkit_network_session_get_tls_errors_policy): (webkit_network_session_allow_tls_certificate_for_host): (webkit_network_session_set_proxy_settings): (webkit_network_session_set_memory_pressure_settings): (webkit_network_session_get_itp_summary): (webkit_network_session_get_itp_summary_finish): (webkit_network_session_prefetch_dns): (webkit_network_session_download_uri): * Source/WebKit/UIProcess/API/glib/WebKitNetworkSession.h.in: Added. * Source/WebKit/UIProcess/API/glib/WebKitNetworkSessionPrivate.h: Copied from Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManagerPrivate.h. * Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp: (webkitWebContextGetNetworkSessionForAutomation): (webkitWebContextGetProperty): (webkitWebContextSetProperty): (webkitWebContextConstructed): (webkitWebContextDispose): (webkit_web_context_class_init): (webkit_web_context_set_network_proxy_settings): (webkit_web_context_prefetch_dns): (webkitWebContextCreatePageForWebView): * Source/WebKit/UIProcess/API/glib/WebKitWebContext.h.in: * Source/WebKit/UIProcess/API/glib/WebKitWebContextPrivate.h: * Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp: (webkitWebViewIsEphemeral): (webkitWebViewGetFaviconDatabase): (webkitWebViewRequestFavicon): (webkitWebViewWatchForChangesInFavicon): (webkitWebViewConstructed): (webkitWebViewSetProperty): (webkitWebViewGetProperty): (webkitWebViewDispose): (webkit_web_view_class_init): (webkitWebViewLoadChanged): (webkitWebViewLoadFailedWithTLSErrors): (webkitWebViewGetLoadDecisionForIcon): (webkitWebViewSetIcon): (webkitWebViewHandleAuthenticationChallenge): (webkitWebViewGetWebsiteDataManager): (webkit_web_view_get_network_session): (webkitWebViewDisconnectFaviconDatabaseSignalHandlers): Deleted. (webkit_web_view_download_uri): Deleted. (webkit_web_view_get_tls_info): Deleted. (webkit_web_view_get_snapshot): Deleted. (webkit_web_view_get_snapshot_finish): Deleted. (webkitWebViewWebProcessTerminated): Deleted. (webkit_web_view_is_editable): Deleted. (webkit_web_view_set_editable): Deleted. (webkit_web_view_get_editor_state): Deleted. (webkit_web_view_get_session_state): Deleted. (webkit_web_view_restore_session_state): Deleted. (webkit_web_view_add_frame_displayed_callback): Deleted. (webkit_web_view_remove_frame_displayed_callback): Deleted. (webkit_web_view_send_message_to_page): Deleted. (webkit_web_view_send_message_to_page_finish): Deleted. (webkit_web_view_set_input_method_context): Deleted. (webkit_web_view_get_input_method_context): Deleted. (webkit_web_view_get_website_policies): Deleted. (webkitWebViewSetIsWebProcessResponsive): Deleted. (webkit_web_view_get_is_web_process_responsive): Deleted. (webkit_web_view_terminate_web_process): Deleted. (webkit_web_view_set_cors_allowlist): Deleted. (webkitWebViewConfigureMediaCapture): Deleted. (webkit_web_view_get_camera_capture_state): Deleted. (webkit_web_view_set_camera_capture_state): Deleted. (webkit_web_view_get_microphone_capture_state): Deleted. (webkit_web_view_set_microphone_capture_state): Deleted. (webkit_web_view_get_display_capture_state): Deleted. (webkit_web_view_set_display_capture_state): Deleted. (webkitWebViewForceRepaintForTesting): Deleted. (webkitSetCachedProcessSuspensionDelayForTesting): Deleted. (webkit_web_view_get_web_extension_mode): Deleted. (webkit_web_view_get_default_content_security_policy): Deleted. * Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in: * Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.cpp: (webkitWebsiteDataManagerConstructed): (webkit_website_data_manager_class_init): (webkitWebsiteDataManagerGetDataStore): (webkitWebsiteDataManagerCreate): (webkit_website_data_manager_get_dom_cache_directory): (webkitWebsiteDataManagerGetFaviconDatabasePath): (webkit_website_data_manager_set_favicons_enabled): (webkit_website_data_manager_get_favicons_enabled): (webkit_website_data_manager_get_favicon_database): (webkitITPThirdPartyCreate): * Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManager.h.in: * Source/WebKit/UIProcess/API/glib/WebKitWebsiteDataManagerPrivate.h: * Source/WebKit/UIProcess/API/glib/webkit.h.in: * Source/WebKit/UIProcess/API/gtk/WebKitWebViewGtk.cpp: (webkit_web_view_new_with_context): * Source/WebKit/UIProcess/API/wpe/WebKitWebViewWPE.cpp: (webkit_web_view_new_with_context): * Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp: (WebKit::networkProcessForSession): * Source/WebKit/gtk/migrating-to-webkitgtk-6.0.md: * Tools/MiniBrowser/gtk/BrowserTab.c: (tlsErrorsDialogResponse): * Tools/MiniBrowser/gtk/BrowserWindow.c: (webViewTitleChanged): (downloadStarted): (webViewCreate): (webViewDecidePolicy): (newTabCallback): (openPrivateWindow): (browserWindowFinalize): (browser_window_new): (browser_window_get_network_session): (browser_window_load_session): (browser_window_get_or_create_web_view_for_automation): * Tools/MiniBrowser/gtk/BrowserWindow.h: * Tools/MiniBrowser/gtk/main.c: (createBrowserTab): (aboutDataScriptMessageReceivedCallback): (aboutDataHandleRequest): (aboutITPHandleRequest): (aboutURISchemeRequestCallback): (activate): * Tools/MiniBrowser/wpe/main.cpp: (activate): (main): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp: (testWebViewAuthenticationStorage): (ProxyAuthenticationTest::ProxyAuthenticationTest): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp: * Tools/TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: (testCookieManagerAcceptPolicy): (testCookieManagerEphemeral): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp: (testDownloadEphemeralContext): (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp: (testSSL): (testInsecureContent): (testTLSErrorsPolicy): (testTLSErrorsRedirect): (testTLSErrorsHTTPAuth): (testLoadFailedWithTLSErrors): (testSubresourceLoadFailedWithTLSErrors): (testWebSocketTLSErrors): (testTLSErrorsEphemeral): (testClientSideCertificate): (testWebSocketClientSideCertificate): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp: (testFaviconDatabaseInitialization): (testFaviconDatabaseGetFavicon): (testFaviconDatabaseEphemeral): (testFaviconDatabaseClear): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitNetworkSession.cpp: Added. (testNetworkSessionDefault): (testNetworkSessionEphemeral): (serverCallback): (ProxyTest::webSocketProxyServerCallback): (ProxyTest::ProxyTest): (ProxyTest::loadURIAndGetMainResourceData): (ProxyTest::proxyServerPortAsString): (ProxyTest::webSocketConnected): (ProxyTest::createWebSocketAndWaitUntilConnected): (webSocketServerCallback): (ephemeralViewloadChanged): (testNetworkSessionProxySettings): (beforeAll): (afterAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp: (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp: (testWebViewEphemeral): * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebsiteData.cpp: (WebsiteDataTest::WebsiteDataTest): (testWebsiteDataConfiguration): (testWebsiteDataEphemeral): (testWebsiteDataITP): (MemoryPressureTest::setup): (MemoryPressureTest::teardown): (beforeAll): * Tools/TestWebKitAPI/Tests/WebKitGtk/TestAutocleanups.cpp: (testUIProcessAutocleanups): * Tools/TestWebKitAPI/glib/CMakeLists.txt: * Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.cpp: (main): * Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h: (Test::Test): (Test::~Test): * Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp: (WebViewTest::initializeWebView): Canonical link: https://commits.webkit.org/259433@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes