haikuwebkit/LayoutTests/fast/spatial-navigation
Sam Weinig 5b4b0d6377 Reduce Preference Override Methods: TabsToLinks/SpatialNavigation
https://bugs.webkit.org/show_bug.cgi?id=218288

Reviewed by Tim Horton.

Source/WebKit:

Removes WKPreferencesGet/SetTabToLinksEnabled preference as it duplicates functionality of
WKPreferencesGet/SetTabsToLinks. The former was added for https://bugs.webkit.org/show_bug.cgi?id=95329
but was redundant even at the time. We can now use test header commands for all of its
use cases.

Also removes testing only bundle SPI for enabling spatial navigation which also can be
set via test headers instead.

* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetTabToLinksEnabled): Deleted.
(WKPreferencesGetTabToLinksEnabled): Deleted.
* UIProcess/API/C/WKPreferencesRefPrivate.h:
* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundleSetSpatialNavigationEnabled): Deleted.
* WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
(WebKit::InjectedBundle::setSpatialNavigationEnabled): Deleted.
* WebProcess/InjectedBundle/InjectedBundle.h:
* WebProcess/WebPage/WebPage.h:
(WebKit::WebPage::setTabToLinksEnabled): Deleted.
(WebKit::WebPage::tabToLinksEnabled const): Deleted.

Source/WTF:

* Scripts/Preferences/WebPreferences.yaml:
Unify TabToLinksEnabled and TabsToLinks. TabToLinksEnabled was added for https://bugs.webkit.org/show_bug.cgi?id=95329
and has never actually been needed.

Tools:

Replace uses of testRunner.overridePreference("WebKitTabToLinksPreferenceKey", ...) and
testRunner.setSpatialNavigationEnabled(...) with test header commands, helping to reduce
the number of different ways we have to override preferences in LayoutTests.

* DumpRenderTree/TestOptions.cpp:
(WTR::TestOptions::defaults):
* DumpRenderTree/TestRunner.cpp:
(TestRunner::staticFunctions):
(setSpatialNavigationEnabledCallback): Deleted.
* DumpRenderTree/TestRunner.h:
* DumpRenderTree/mac/DumpRenderTree.mm:
(resetWebPreferencesToConsistentValues):
* DumpRenderTree/mac/TestRunnerMac.mm:
(TestRunner::setSpatialNavigationEnabled): Deleted.
* DumpRenderTree/win/DumpRenderTree.cpp:
(resetWebPreferencesToConsistentValues):
(setWebPreferencesForTestOptions):
* WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl:
* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::beginTesting):
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setSpatialNavigationEnabled): Deleted.
* WebKitTestRunner/InjectedBundle/TestRunner.h:
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetPreferencesToConsistentValues):

LayoutTests:

Replace uses of testRunner.overridePreference("WebKitTabToLinksPreferenceKey", ...) and
testRunner.setSpatialNavigationEnabled(...) with test header commands, helping to reduce
the number of different ways we have to override preferences in LayoutTests.

* accessibility/mac/caret-browsing-tab-selection.html:
* accessibility/mac/focus-setting-selection-syncronizing-not-clearing.html:
* accessibility/mac/selection-element-tabbing-to-link.html:
* accessibility/mac/selection-notification-focus-change.html:
* accessibility/mac/tab-focus-post-notification.html:
* fast/events/tab-focus-anchor.html:
* fast/events/tab-focus-link-in-canvas.html:
* fast/spatial-navigation/snav-1st-stop.html:
* fast/spatial-navigation/snav-clipped-overflowed-content.html:
* fast/spatial-navigation/snav-container-only-white-space.html:
* fast/spatial-navigation/snav-container-white-space.html:
* fast/spatial-navigation/snav-display-contents-crash.html:
* fast/spatial-navigation/snav-div-overflow-scrol-hidden.html:
* fast/spatial-navigation/snav-div-scrollable-but-without-focusable-content.html:
* fast/spatial-navigation/snav-fully-aligned-horizontally.html:
* fast/spatial-navigation/snav-fully-aligned-vertically.html:
* fast/spatial-navigation/snav-hidden-focusable-element.html:
* fast/spatial-navigation/snav-hidden-iframe-zero-size.html:
* fast/spatial-navigation/snav-hidden-iframe.html:
* fast/spatial-navigation/snav-iframe-flattening-simple.html:
* fast/spatial-navigation/snav-iframe-nested.html:
* fast/spatial-navigation/snav-iframe-no-focusable-content.html:
* fast/spatial-navigation/snav-iframe-no-scrollable-content.html:
* fast/spatial-navigation/snav-iframe-recursive-offset-parent.html:
* fast/spatial-navigation/snav-iframe-with-offscreen-focusable-element.html:
* fast/spatial-navigation/snav-imagemap-area-not-focusable.html:
* fast/spatial-navigation/snav-imagemap-area-without-image.html:
* fast/spatial-navigation/snav-imagemap-overlapped-areas.html:
* fast/spatial-navigation/snav-imagemap-simple.html:
* fast/spatial-navigation/snav-input.html:
* fast/spatial-navigation/snav-media-elements.html:
* fast/spatial-navigation/snav-multiple-select-focusring.html:
* fast/spatial-navigation/snav-multiple-select-optgroup.html:
* fast/spatial-navigation/snav-multiple-select.html:
* fast/spatial-navigation/snav-offscreen-content.html:
* fast/spatial-navigation/snav-only-clipped-overflow-content.html:
* fast/spatial-navigation/snav-radio-group.html:
* fast/spatial-navigation/snav-radio.html:
* fast/spatial-navigation/snav-search-optimization.html:
* fast/spatial-navigation/snav-simple-content-overflow.html:
* fast/spatial-navigation/snav-single-select-list.html:
* fast/spatial-navigation/snav-single-select.html:
* fast/spatial-navigation/snav-table-traversal.html:
* fast/spatial-navigation/snav-textarea.html:
* fast/spatial-navigation/snav-tiny-table-traversal.html:
* fast/spatial-navigation/snav-two-elements-one-line.html:
* fast/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.html:
* fast/spatial-navigation/snav-z-index.html:
* fast/spatial-navigation/snav-zero-margin-content.html:
* media/media-controls-accessibility.html:
* media/tab-focus-inside-media-elements.html:


Canonical link: https://commits.webkit.org/230992@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269111 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-10-28 18:33:08 +00:00
..
resources
snav-1st-stop-expected.txt
snav-1st-stop.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-clipped-overflowed-content-expected.txt
snav-clipped-overflowed-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-container-only-white-space-expected.txt
snav-container-only-white-space.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-container-white-space-expected.txt
snav-container-white-space.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-display-contents-crash-expected.txt
snav-display-contents-crash.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-div-overflow-scrol-hidden-expected.txt Overflow scrollIntoView wrong with borders 2020-10-27 21:04:15 +00:00
snav-div-overflow-scrol-hidden.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-div-scrollable-but-without-focusable-content-expected.txt
snav-div-scrollable-but-without-focusable-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-fully-aligned-horizontally-expected.txt JS Test Harness: Insert the stylesheet dynamically 2011-10-19 21:54:38 +00:00
snav-fully-aligned-horizontally.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-fully-aligned-vertically-expected.txt
snav-fully-aligned-vertically.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-hidden-focusable-element-expected.txt
snav-hidden-focusable-element.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-hidden-iframe-expected.txt
snav-hidden-iframe-zero-size-expected.txt
snav-hidden-iframe-zero-size.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-hidden-iframe.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-iframe-flattening-simple-expected.txt
snav-iframe-flattening-simple.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-iframe-nested-expected.txt
snav-iframe-nested.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-iframe-no-focusable-content-expected.txt
snav-iframe-no-focusable-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-iframe-no-scrollable-content-expected.txt
snav-iframe-no-scrollable-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-iframe-recursive-offset-parent-expected.txt
snav-iframe-recursive-offset-parent.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-iframe-with-offscreen-focusable-element-expected.txt
snav-iframe-with-offscreen-focusable-element.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-imagemap-area-not-focusable-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
snav-imagemap-area-not-focusable.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-imagemap-area-without-image-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
snav-imagemap-area-without-image.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-imagemap-overlapped-areas-expected.txt
snav-imagemap-overlapped-areas.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-imagemap-simple-expected.txt Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
snav-imagemap-simple.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-input-expected.txt
snav-input.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-media-elements-expected.txt AX: Audio and Video attachments are not output to VoiceOver 2013-11-06 14:15:42 +00:00
snav-media-elements.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-multiple-select-expected.txt 2011-02-26 Chang Shu <chang.shu@nokia.com> 2011-02-26 08:12:23 +00:00
snav-multiple-select-focusring.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-multiple-select-optgroup-expected.txt
snav-multiple-select-optgroup.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-multiple-select.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-offscreen-content-expected.txt
snav-offscreen-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-only-clipped-overflow-content-expected.txt
snav-only-clipped-overflow-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-radio-expected.txt
snav-radio-group-expected.txt Tapping after CSS-based table casues an infinite loop in wordRangeFromPosition 2018-05-11 20:39:30 +00:00
snav-radio-group.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-radio.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-search-optimization-expected.txt
snav-search-optimization.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-simple-content-overflow-expected.txt
snav-simple-content-overflow.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-single-select-expected.txt
snav-single-select-list-expected.txt
snav-single-select-list.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-single-select.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-table-traversal-expected.txt 2010-11-28 Antonio Gomes <agomes@rim.com> 2010-11-30 05:09:02 +00:00
snav-table-traversal.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-textarea-expected.txt 2010-11-28 Antonio Gomes <agomes@rim.com> 2010-11-30 05:09:02 +00:00
snav-textarea.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-tiny-table-traversal-expected.txt
snav-tiny-table-traversal.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-two-elements-one-line-expected.txt
snav-two-elements-one-line.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-unit-overflow-and-scroll-in-direction-expected.txt 2010-11-28 Antonio Gomes <agomes@rim.com> 2010-11-30 05:09:02 +00:00
snav-unit-overflow-and-scroll-in-direction.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-z-index-expected.txt
snav-z-index.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00
snav-zero-margin-content-expected.txt
snav-zero-margin-content.html Reduce Preference Override Methods: TabsToLinks/SpatialNavigation 2020-10-28 18:33:08 +00:00