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
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
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
014f6414
Verified
Commit
014f6414
authored
May 31, 2023
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 40597: Implement TorSettings module
Bug 41801: Fix handleProcessReady in TorSettings.init
parent
282e5c98
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!655
Bug 41801: Fix handleProcessReady in TorSettings.init
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
browser/modules/TorSettings.jsm
+10
-10
10 additions, 10 deletions
browser/modules/TorSettings.jsm
with
10 additions
and
10 deletions
browser/modules/TorSettings.jsm
+
10
−
10
View file @
014f6414
...
...
@@ -299,7 +299,7 @@ const TorSettings = (() => {
Services.obs.addObserver(this, TorTopics.ProcessIsReady);
if (TorMonitorService.isRunning) {
handleProcessReady();
this.
handleProcessReady();
}
}
},
...
...
@@ -308,22 +308,22 @@ const TorSettings = (() => {
async observe(subject, topic, data) {
console.log(`TorSettings: Observed ${topic}`);
// once the tor daemon is ready, we need to apply our settings
const handleProcessReady = async () => {
// push down settings to tor
await this.applySettings();
console.log("TorSettings: Ready");
Services.obs.notifyObservers(null, TorSettingsTopics.Ready);
};
switch (topic) {
case TorTopics.ProcessIsReady:
Services.obs.removeObserver(this, TorTopics.ProcessIsReady);
await handleProcessReady();
await
this.
handleProcessReady();
break;
}
},
// once the tor daemon is ready, we need to apply our settings
async handleProcessReady() {
// push down settings to tor
await this.applySettings();
console.log("TorSettings: Ready");
Services.obs.notifyObservers(null, TorSettingsTopics.Ready);
},
// load our settings from prefs
loadFromPrefs() {
console.log("TorSettings: loadFromPrefs()");
...
...
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