Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
4a13c283
Commit
4a13c283
authored
1 year ago
by
ma1
Committed by
ma1
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 30237: Add v3 onion services client authentication prompt
parent
9d876ebb
Loading
Loading
1 merge request
!691
Bug 41856: force focus back to the onion service authorization popup when clicked
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
browser/components/onionservices/content/authPrompt.js
+13
-0
13 additions, 0 deletions
browser/components/onionservices/content/authPrompt.js
with
13 additions
and
0 deletions
browser/components/onionservices/content/authPrompt.js
+
13
−
0
View file @
4a13c283
...
@@ -73,8 +73,18 @@ const OnionAuthPrompt = (function() {
...
@@ -73,8 +73,18 @@ const OnionAuthPrompt = (function() {
);
);
},
},
_autoFocus
(
event
)
{
event
.
target
.
ownerGlobal
.
focus
();
},
_onPromptShowing
(
aWarningMessage
)
{
_onPromptShowing
(
aWarningMessage
)
{
let
xulDoc
=
this
.
_browser
.
ownerDocument
;
let
xulDoc
=
this
.
_browser
.
ownerDocument
;
// Force back focus: tor-browser#41856
(
this
.
_popupElem
=
xulDoc
.
getElementById
(
`
${
OnionAuthUtil
.
domid
.
notification
}
-notification`
))?.
addEventListener
(
"
click
"
,
this
.
_autoFocus
);
let
descElem
=
xulDoc
.
getElementById
(
OnionAuthUtil
.
domid
.
description
);
let
descElem
=
xulDoc
.
getElementById
(
OnionAuthUtil
.
domid
.
description
);
if
(
descElem
)
{
if
(
descElem
)
{
// Handle replacement of the onion name within the localized
// Handle replacement of the onion name within the localized
...
@@ -159,6 +169,9 @@ const OnionAuthPrompt = (function() {
...
@@ -159,6 +169,9 @@ const OnionAuthPrompt = (function() {
this
.
_boundOnKeyFieldInput
=
undefined
;
this
.
_boundOnKeyFieldInput
=
undefined
;
}
}
}
}
if
(
this
.
_popupElem
)
{
this
.
_popupElem
.
removeEventListener
(
"
click
"
,
this
.
_autoFocus
);
}
},
},
_onKeyFieldKeyPress
(
aEvent
)
{
_onKeyFieldKeyPress
(
aEvent
)
{
...
...
This diff is collapsed.
Click to expand it.
ma1
@ma1
mentioned in issue
#41856 (closed)
·
10 months ago
mentioned in issue
#41856 (closed)
mentioned in issue #41856
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment