Changeset 231004 in webkit
- Timestamp:
- Apr 25, 2018 11:41:13 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r230997 r231004 1 2018-04-25 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 [WPE] Remove deprecated functions and properties from the API 4 https://bugs.webkit.org/show_bug.cgi?id=179295 5 6 Reviewed by Žan Doberšek. 7 8 * UIProcess/API/glib/WebKitCookieManager.cpp: 9 * UIProcess/API/glib/WebKitFormSubmissionRequest.cpp: 10 * UIProcess/API/glib/WebKitNavigationPolicyDecision.cpp: 11 (webkitNavigationPolicyDecisionGetProperty): 12 (webkit_navigation_policy_decision_class_init): 13 * UIProcess/API/glib/WebKitSettings.cpp: 14 (webKitSettingsSetProperty): 15 (webKitSettingsGetProperty): 16 (webkit_settings_class_init): 17 * UIProcess/API/glib/WebKitWebContext.cpp: 18 (webkitWebContextGetProperty): 19 (webkitWebContextSetProperty): 20 (webkit_web_context_class_init): 21 * UIProcess/API/glib/WebKitWebView.cpp: 22 (webkit_web_view_class_init): 23 (webkitWebViewHandleAuthenticationChallenge): 24 (webkitWebViewWebProcessTerminated): 25 * UIProcess/API/wpe/WebKitCookieManager.h: 26 * UIProcess/API/wpe/WebKitFormSubmissionRequest.h: 27 * UIProcess/API/wpe/WebKitNavigationPolicyDecision.h: 28 * UIProcess/API/wpe/WebKitSettings.h: 29 * UIProcess/API/wpe/WebKitWebContext.h: 30 1 31 2018-04-25 Michael Catanzaro <mcatanzaro@igalia.com> 2 32 -
trunk/Source/WebKit/UIProcess/API/glib/WebKitCookieManager.cpp
r225054 r231004 421 421 } 422 422 423 #if PLATFORM(GTK) 423 424 /** 424 425 * webkit_cookie_manager_get_domains_with_cookies: … … 519 520 webkit_website_data_manager_clear(manager->priv->dataManager, WEBKIT_WEBSITE_DATA_COOKIES, 0, nullptr, nullptr, nullptr); 520 521 } 522 #endif -
trunk/Source/WebKit/UIProcess/API/glib/WebKitFormSubmissionRequest.cpp
r226264 r231004 87 87 } 88 88 89 #if PLATFORM(GTK) 89 90 /** 90 91 * webkit_form_submission_request_get_text_fields: … … 116 117 return request->priv->values.get(); 117 118 } 119 #endif 118 120 119 121 /** -
trunk/Source/WebKit/UIProcess/API/glib/WebKitNavigationPolicyDecision.cpp
r224677 r231004 60 60 PROP_0, 61 61 PROP_NAVIGATION_ACTION, 62 #if PLATFORM(GTK) 62 63 PROP_NAVIGATION_TYPE, 63 64 PROP_MOUSE_BUTTON, 64 65 PROP_MODIFIERS, 65 66 PROP_REQUEST, 67 #endif 66 68 PROP_FRAME_NAME, 67 69 }; … … 74 76 g_value_set_boxed(value, webkit_navigation_policy_decision_get_navigation_action(decision)); 75 77 break; 78 #if PLATFORM(GTK) 76 79 case PROP_NAVIGATION_TYPE: 77 80 g_value_set_enum(value, webkit_navigation_action_get_navigation_type(decision->priv->navigationAction)); … … 86 89 g_value_set_object(value, webkit_navigation_action_get_request(decision->priv->navigationAction)); 87 90 break; 91 #endif 88 92 case PROP_FRAME_NAME: 89 93 g_value_set_string(value, webkit_navigation_policy_decision_get_frame_name(decision)); … … 117 121 WEBKIT_PARAM_READABLE)); 118 122 123 #if PLATFORM(GTK) 119 124 /** 120 125 * WebKitNavigationPolicyDecision:navigation-type: … … 188 193 WEBKIT_TYPE_URI_REQUEST, 189 194 WEBKIT_PARAM_READABLE)); 195 #endif 190 196 191 197 /** … … 222 228 } 223 229 230 #if PLATFORM(GTK) 224 231 /** 225 232 * webkit_navigation_policy_decision_get_navigation_type: … … 285 292 return webkit_navigation_action_get_request(decision->priv->navigationAction); 286 293 } 294 #endif 287 295 288 296 /** -
trunk/Source/WebKit/UIProcess/API/glib/WebKitSettings.cpp
r227607 r231004 128 128 PROP_MINIMUM_FONT_SIZE, 129 129 PROP_DEFAULT_CHARSET, 130 #if PLATFORM(GTK) 130 131 PROP_ENABLE_PRIVATE_BROWSING, 132 #endif 131 133 PROP_ENABLE_DEVELOPER_EXTRAS, 132 134 PROP_ENABLE_RESIZABLE_TEXT_AREAS, … … 267 269 webkit_settings_set_default_charset(settings, g_value_get_string(value)); 268 270 break; 271 #if PLATFORM(GTK) 269 272 case PROP_ENABLE_PRIVATE_BROWSING: 270 273 G_GNUC_BEGIN_IGNORE_DEPRECATIONS; … … 272 275 G_GNUC_END_IGNORE_DEPRECATIONS; 273 276 break; 277 #endif 274 278 case PROP_ENABLE_DEVELOPER_EXTRAS: 275 279 webkit_settings_set_enable_developer_extras(settings, g_value_get_boolean(value)); … … 444 448 g_value_set_string(value, webkit_settings_get_default_charset(settings)); 445 449 break; 450 #if PLATFORM(GTK) 446 451 case PROP_ENABLE_PRIVATE_BROWSING: 447 452 G_GNUC_BEGIN_IGNORE_DEPRECATIONS; … … 449 454 G_GNUC_END_IGNORE_DEPRECATIONS; 450 455 break; 456 #endif 451 457 case PROP_ENABLE_DEVELOPER_EXTRAS: 452 458 g_value_set_boolean(value, webkit_settings_get_enable_developer_extras(settings)); … … 880 886 readWriteConstructParamFlags)); 881 887 888 #if PLATFORM(GTK) 882 889 /** 883 890 * WebKitSettings:enable-private-browsing: … … 895 902 FALSE, 896 903 readWriteConstructParamFlags)); 904 #endif 897 905 898 906 /** … … 2243 2251 } 2244 2252 2253 #if PLATFORM(GTK) 2245 2254 /** 2246 2255 * webkit_settings_get_enable_private_browsing: … … 2281 2290 g_object_notify(G_OBJECT(settings), "enable-private-browsing"); 2282 2291 } 2292 #endif 2283 2293 2284 2294 /** -
trunk/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
r230661 r231004 110 110 PROP_0, 111 111 112 #if PLATFORM(GTK) 112 113 PROP_LOCAL_STORAGE_DIRECTORY, 114 #endif 113 115 PROP_WEBSITE_DATA_MANAGER 114 116 }; … … 274 276 275 277 switch (propID) { 278 #if PLATFORM(GTK) 276 279 case PROP_LOCAL_STORAGE_DIRECTORY: 277 280 g_value_set_string(value, context->priv->localStorageDirectory.data()); 278 281 break; 282 #endif 279 283 case PROP_WEBSITE_DATA_MANAGER: 280 284 g_value_set_object(value, webkit_web_context_get_website_data_manager(context)); … … 290 294 291 295 switch (propID) { 296 #if PLATFORM(GTK) 292 297 case PROP_LOCAL_STORAGE_DIRECTORY: 293 298 context->priv->localStorageDirectory = g_value_get_string(value); 294 299 break; 300 #endif 295 301 case PROP_WEBSITE_DATA_MANAGER: { 296 302 gpointer manager = g_value_get_object(value); … … 397 403 gObjectClass->dispose = webkitWebContextDispose; 398 404 405 #if PLATFORM(GTK) 399 406 /** 400 407 * WebKitWebContext:local-storage-directory: … … 415 422 nullptr, 416 423 static_cast<GParamFlags>(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY))); 424 #endif 417 425 418 426 /** … … 1340 1348 } 1341 1349 1350 #if PLATFORM(GTK) 1342 1351 /** 1343 1352 * webkit_web_context_set_disk_cache_directory: … … 1362 1371 context->priv->processPool->configuration().setDiskCacheDirectory(WebCore::FileSystem::pathByAppendingComponent(WebCore::FileSystem::stringFromFileSystemRepresentation(directory), networkCacheSubdirectory)); 1363 1372 } 1373 #endif 1364 1374 1365 1375 /** -
trunk/Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
r230557 r231004 146 146 INSECURE_CONTENT_DETECTED, 147 147 148 #if PLATFORM(GTK) 148 149 WEB_PROCESS_CRASHED, 150 #endif 149 151 WEB_PROCESS_TERMINATED, 150 152 … … 1789 1791 WEBKIT_TYPE_INSECURE_CONTENT_EVENT); 1790 1792 1793 #if PLATFORM(GTK) 1791 1794 /** 1792 1795 * WebKitWebView::web-process-crashed: … … 1808 1811 g_cclosure_marshal_generic, 1809 1812 G_TYPE_BOOLEAN, 0); 1813 #endif 1810 1814 1811 1815 /** … … 2343 2347 void webkitWebViewHandleAuthenticationChallenge(WebKitWebView* webView, AuthenticationChallengeProxy* authenticationChallenge) 2344 2348 { 2349 #if PLATFORM(GTK) 2345 2350 G_GNUC_BEGIN_IGNORE_DEPRECATIONS; 2346 2351 gboolean privateBrowsingEnabled = webView->priv->isEphemeral || webkit_settings_get_enable_private_browsing(webView->priv->settings.get()); 2347 2352 G_GNUC_END_IGNORE_DEPRECATIONS; 2353 #else 2354 gboolean privateBrowsingEnabled = webView->priv->isEphemeral; 2355 #endif 2348 2356 webView->priv->authenticationRequest = adoptGRef(webkitAuthenticationRequestCreate(authenticationChallenge, privateBrowsingEnabled)); 2349 2357 gboolean returnValue; … … 3834 3842 void webkitWebViewWebProcessTerminated(WebKitWebView* webView, WebKitWebProcessTerminationReason reason) 3835 3843 { 3844 #if PLATFORM(GTK) 3836 3845 if (reason == WEBKIT_WEB_PROCESS_CRASHED) { 3837 3846 gboolean returnValue; 3838 3847 g_signal_emit(webView, signals[WEB_PROCESS_CRASHED], 0, &returnValue); 3839 3848 } 3849 #endif 3840 3850 g_signal_emit(webView, signals[WEB_PROCESS_TERMINATED], 0, reason); 3841 3851 } -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitCookieManager.h
r225054 r231004 146 146 GError **error); 147 147 148 WEBKIT_DEPRECATED_FOR(webkit_website_data_manager_fetch) void149 webkit_cookie_manager_get_domains_with_cookies (WebKitCookieManager *cookie_manager,150 GCancellable *cancellable,151 GAsyncReadyCallback callback,152 gpointer user_data);153 154 WEBKIT_DEPRECATED_FOR(webkit_website_data_manager_fetch_finish) gchar **155 webkit_cookie_manager_get_domains_with_cookies_finish (WebKitCookieManager *cookie_manager,156 GAsyncResult *result,157 GError **error);158 159 WEBKIT_DEPRECATED_FOR(webkit_website_data_manager_remove) void160 webkit_cookie_manager_delete_cookies_for_domain (WebKitCookieManager *cookie_manager,161 const gchar *domain);162 163 WEBKIT_DEPRECATED_FOR(webkit_website_data_manager_clear) void164 webkit_cookie_manager_delete_all_cookies (WebKitCookieManager *cookie_manager);165 166 148 G_END_DECLS 167 149 -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitFormSubmissionRequest.h
r226264 r231004 60 60 webkit_form_submission_request_get_type (void); 61 61 62 WEBKIT_DEPRECATED_FOR(webkit_form_submission_request_list_text_fields) GHashTable *63 webkit_form_submission_request_get_text_fields (WebKitFormSubmissionRequest *request);64 65 62 WEBKIT_API gboolean 66 63 webkit_form_submission_request_list_text_fields (WebKitFormSubmissionRequest *request, -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitNavigationPolicyDecision.h
r218553 r231004 66 66 webkit_navigation_policy_decision_get_navigation_action (WebKitNavigationPolicyDecision *decision); 67 67 68 WEBKIT_DEPRECATED_FOR(webkit_navigation_policy_decision_get_navigation_action) WebKitNavigationType69 webkit_navigation_policy_decision_get_navigation_type (WebKitNavigationPolicyDecision *decision);70 71 WEBKIT_DEPRECATED_FOR(webkit_navigation_policy_decision_get_navigation_action) guint72 webkit_navigation_policy_decision_get_mouse_button (WebKitNavigationPolicyDecision *decision);73 74 WEBKIT_DEPRECATED_FOR(webkit_navigation_policy_decision_get_navigation_action) guint75 webkit_navigation_policy_decision_get_modifiers (WebKitNavigationPolicyDecision *decision);76 77 WEBKIT_DEPRECATED_FOR(webkit_navigation_policy_decision_get_navigation_action) WebKitURIRequest *78 webkit_navigation_policy_decision_get_request (WebKitNavigationPolicyDecision *decision);79 80 68 WEBKIT_API const gchar * 81 69 webkit_navigation_policy_decision_get_frame_name (WebKitNavigationPolicyDecision *decision); -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitSettings.h
r227607 r231004 237 237 const gchar *default_charset); 238 238 239 WEBKIT_DEPRECATED gboolean240 webkit_settings_get_enable_private_browsing (WebKitSettings *settings);241 242 WEBKIT_DEPRECATED void243 webkit_settings_set_enable_private_browsing (WebKitSettings *settings,244 gboolean enabled);245 246 239 WEBKIT_API gboolean 247 240 webkit_settings_get_enable_developer_extras (WebKitSettings *settings); -
trunk/Source/WebKit/UIProcess/API/wpe/WebKitWebContext.h
r220903 r231004 285 285 const gchar *hostname); 286 286 287 WEBKIT_DEPRECATED_FOR(webkit_web_context_new_with_website_data_manager) void288 webkit_web_context_set_disk_cache_directory (WebKitWebContext *context,289 const gchar *directory);290 291 287 WEBKIT_API void 292 288 webkit_web_context_allow_tls_certificate_for_host (WebKitWebContext *context, -
trunk/Tools/ChangeLog
r231003 r231004 1 2018-04-25 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 [WPE] Remove deprecated functions and properties from the API 4 https://bugs.webkit.org/show_bug.cgi?id=179295 5 6 Reviewed by Žan Doberšek. 7 8 * TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp: 9 (testWebViewAuthenticationStorage): Disable this test for now. It will require some effort 10 to rewrite LoadTrackingTest to not require the web view at construction time. 11 * TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp: 12 (testWebKitSettings): Don't test private browsing setting, which is gone. 13 * TestWebKitAPI/glib/CMakeLists.txt: Disable TestCookieManager for now. 14 1 15 2018-04-25 Andy Estes <aestes@apple.com> 2 16 -
trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestAuthentication.cpp
r226782 r231004 185 185 } 186 186 187 // FIXME: Find a way to not use the private browsing setting and enable for WPE. 188 #if PLATFORM(GTK) 187 189 static void testWebViewAuthenticationStorage(AuthenticationTest* test, gconstpointer) 188 190 { … … 208 210 #endif 209 211 } 212 #endif 210 213 211 214 static void testWebViewAuthenticationSuccess(AuthenticationTest* test, gconstpointer) … … 417 420 AuthenticationTest::add("Authentication", "authentication-failure", testWebViewAuthenticationFailure); 418 421 AuthenticationTest::add("Authentication", "authentication-no-credential", testWebViewAuthenticationNoCredential); 422 #if PLATFORM(GTK) 419 423 AuthenticationTest::add("Authentication", "authentication-storage", testWebViewAuthenticationStorage); 424 #endif 420 425 AuthenticationTest::add("Authentication", "authentication-empty-realm", testWebViewAuthenticationEmptyRealm); 421 426 ProxyAuthenticationTest::add("Authentication", "authentication-proxy", testWebViewAuthenticationProxy); -
trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp
r225182 r231004 201 201 g_assert_cmpstr(webkit_settings_get_default_charset(settings), ==, "utf8"); 202 202 203 #if PLATFORM(GTK) 203 204 G_GNUC_BEGIN_IGNORE_DEPRECATIONS; 204 205 g_assert(!webkit_settings_get_enable_private_browsing(settings)); … … 206 207 g_assert(webkit_settings_get_enable_private_browsing(settings)); 207 208 G_GNUC_END_IGNORE_DEPRECATIONS; 209 #endif 208 210 209 211 g_assert(!webkit_settings_get_enable_developer_extras(settings)); -
trunk/Tools/TestWebKitAPI/glib/CMakeLists.txt
r229973 r231004 121 121 ADD_WK2_TEST(TestAutomationSession ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp) 122 122 ADD_WK2_TEST(TestBackForwardList ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestBackForwardList.cpp) 123 ADD_WK2_TEST(TestCookieManager ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp)124 123 ADD_WK2_TEST(TestDownloads ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestDownloads.cpp) 125 124 ADD_WK2_TEST(TestWebKitFaviconDatabase ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestWebKitFaviconDatabase.cpp) … … 142 141 ADD_WK2_TEST(TestConsoleMessage ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp) 143 142 ADD_WK2_TEST(TestDOMElement ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestDOMElement.cpp) 143 144 # FIXME: Enable for WPE 145 if (PORT STREQUAL "GTK") 146 ADD_WK2_TEST(TestCookieManager ${TOOLS_DIR}/TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp) 147 endif ()
Note: See TracChangeset
for help on using the changeset viewer.