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
1 changed file:
Changes:
... | ... | @@ -114,6 +114,16 @@ const gBuiltinBridgeDialog = { |
114 | 114 | },
|
115 | 115 | };
|
116 | 116 | |
117 | +// Initial focus is not visible, even if opened with a keyboard. We avoid the
|
|
118 | +// default handler and manage the focus ourselves, which will paint the focus
|
|
119 | +// ring by default.
|
|
120 | +// NOTE: A side effect is that the focus ring will show even if the user opened
|
|
121 | +// with a mouse event.
|
|
122 | +// TODO: Remove this once bugzilla bug 1708261 is resolved.
|
|
123 | +document.subDialogSetDefaultFocus = () => {
|
|
124 | + document.getElementById("torPreferences-builtinBridge-typeSelection").focus();
|
|
125 | +};
|
|
126 | + |
|
117 | 127 | window.addEventListener(
|
118 | 128 | "DOMContentLoaded",
|
119 | 129 | () => {
|