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:
Robert O'Callahan 2014-01-14 15:32:54 +13:00
parent f1bdc45b2a
commit 353a585853

View File

@ -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>