+8
−13
Loading
Relevant calls are here: https://searchfox.org/mozilla-central/rev/21a9b72545da06681db97c4b3a2a6be761f4aae5/toolkit/content/widgets/button.js#42-68 This makes sure to set the FLAG_BYKEY properly if needed, instead of passing down raw flags to nsFocusManager. Clean up a bit while at it. Let me know if you want a test for this, but we have tests for programmatic focus and :focus-visible already, so my gut feeling is that testing this particular XUL-specific change is not super-worth-it... Differential Revision: https://phabricator.services.mozilla.com/D133690