[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-128.2.0esr-14.0-1] fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in...

morgan (@morgan) git at gitlab.torproject.org
Wed Aug 28 20:18:48 UTC 2024



morgan pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser


Commits:
ba8dff6e by Henry Wilkes at 2024-08-28T20:09:34+00:00
fixup! Bug 31286: Implementation of bridge, proxy, and firewall settings in about:preferences#connection

Bug 42803: Force focus ring to show for built-in bridge radio options.

- - - - -


1 changed file:

- browser/components/torpreferences/content/builtinBridgeDialog.js


Changes:

=====================================
browser/components/torpreferences/content/builtinBridgeDialog.js
=====================================
@@ -114,6 +114,16 @@ const gBuiltinBridgeDialog = {
   },
 };
 
+// Initial focus is not visible, even if opened with a keyboard. We avoid the
+// default handler and manage the focus ourselves, which will paint the focus
+// ring by default.
+// NOTE: A side effect is that the focus ring will show even if the user opened
+// with a mouse event.
+// TODO: Remove this once bugzilla bug 1708261 is resolved.
+document.subDialogSetDefaultFocus = () => {
+  document.getElementById("torPreferences-builtinBridge-typeSelection").focus();
+};
+
 window.addEventListener(
   "DOMContentLoaded",
   () => {



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ba8dff6e266350ed86e8fd2aebe135b496d3e51d

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ba8dff6e266350ed86e8fd2aebe135b496d3e51d
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240828/11eb4748/attachment-0001.htm>


More information about the tor-commits mailing list