mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 946065. Part 5.2: Set accessibility.focusmodel in test_object_plugin_nav.html so we can tab to links even on Mac. r=smaug
--HG-- extra : rebase_source : d3a6eddebc8fcf4db0b7ef5e6ae02f2bb4eda25a
This commit is contained in:
parent
f1bdc45b2a
commit
353a585853
@ -56,7 +56,7 @@ function checkFocus() {
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
SimpleTest.waitForFocus(function() {
|
||||
function doTest() {
|
||||
is(document.activeElement, document.body);
|
||||
|
||||
// Preliminary check: tabindex should be -1 on the object.
|
||||
@ -83,6 +83,11 @@ SimpleTest.waitForFocus(function() {
|
||||
}, true);
|
||||
|
||||
synthesizeKey("VK_TAB", {});
|
||||
}
|
||||
|
||||
SimpleTest.waitForFocus(function () {
|
||||
// Set the focus model so that links are focusable by the tab key even on Mac
|
||||
SpecialPowers.pushPrefEnv({'set': [['accessibility.tabfocus', 7]]}, doTest);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user