Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
4006866f
Commit
4006866f
authored
Apr 18, 2024
by
henry
Committed by
Pier Angelo Vendrame
Apr 22, 2024
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Lox integration
Bug 42533: Add notification for when the activeLoxId changes.
parent
a9c02248
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!997
Bug 42533: Add notification for when the activeLoxId changes.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/components/lox/Lox.sys.mjs
+8
-0
8 additions, 0 deletions
toolkit/components/lox/Lox.sys.mjs
with
8 additions
and
0 deletions
toolkit/components/lox/Lox.sys.mjs
+
8
−
0
View file @
4006866f
...
...
@@ -55,6 +55,8 @@ XPCOMUtils.defineLazyModuleGetters(lazy, {
});
export
const
LoxTopics
=
Object
.
freeze
({
// Whenever the activeLoxId value changes.
UpdateActiveLoxId
:
"
lox:update-active-lox-id
"
,
// Whenever the bridges *might* have changed.
// getBridges only uses #credentials, so this will only fire when it changes.
UpdateBridges
:
"
lox:update-bridges
"
,
...
...
@@ -141,6 +143,10 @@ class LoxImpl {
*/
#activeLoxId
=
null
;
get
activeLoxId
()
{
return
this
.
#activeLoxId
;
}
/**
* Update the active lox id.
*/
...
...
@@ -164,6 +170,8 @@ class LoxImpl {
this
.
#store
();
}
this
.
#activeLoxId
=
loxId
;
Services
.
obs
.
notifyObservers
(
null
,
LoxTopics
.
UpdateActiveLoxId
);
}
observe
(
subject
,
topic
,
data
)
{
...
...
...
...
This diff is collapsed.
Click to expand it.
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
sign in
to comment