Title: [294942] trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp
- Revision
- 294942
- Author
- lmo...@igalia.com
- Date
- 2022-05-27 10:58:08 -0700 (Fri, 27 May 2022)
Log Message
[GTK] Deprecate WebKitSettings:enable-java
https://bugs.webkit.org/show_bug.cgi?id=239538
Reviewed by Adrian Perez de Castro.
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp:
(testWebKitSettings): Move test of deprecated function to section
disabling deprecation warnings.
Canonical link: https://commits.webkit.org/251052@main
Modified Paths
Diff
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp (294941 => 294942)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp 2022-05-27 17:22:25 UTC (rev 294941)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitSettings.cpp 2022-05-27 17:58:08 UTC (rev 294942)
@@ -77,14 +77,6 @@
webkit_settings_set_enable_frame_flattening(settings, TRUE);
g_assert_true(webkit_settings_get_enable_frame_flattening(settings));
- // Java is not supported, and always disabled.
- // Make warnings non-fatal for this test to make it pass.
- Test::removeLogFatalFlag(G_LOG_LEVEL_WARNING);
- g_assert_false(webkit_settings_get_enable_java(settings));
- webkit_settings_set_enable_java(settings, FALSE);
- g_assert_false(webkit_settings_get_enable_java(settings));
- Test::addLogFatalFlag(G_LOG_LEVEL_WARNING);
-
// By default, _javascript_ can open windows automatically is disabled.
g_assert_false(webkit_settings_get_javascript_can_open_windows_automatically(settings));
webkit_settings_set_javascript_can_open_windows_automatically(settings, TRUE);
@@ -369,6 +361,14 @@
g_assert_false(webkit_settings_get_enable_xss_auditor(settings));
webkit_settings_set_enable_xss_auditor(settings, TRUE);
g_assert_false(webkit_settings_get_enable_xss_auditor(settings));
+
+ // Java is not supported, and always disabled.
+ // Make warnings non-fatal for this test to make it pass.
+ Test::removeLogFatalFlag(G_LOG_LEVEL_WARNING);
+ g_assert_false(webkit_settings_get_enable_java(settings));
+ webkit_settings_set_enable_java(settings, FALSE);
+ g_assert_false(webkit_settings_get_enable_java(settings));
+ Test::addLogFatalFlag(G_LOG_LEVEL_WARNING);
ALLOW_DEPRECATED_DECLARATIONS_END
g_object_unref(G_OBJECT(settings));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes