Skip to content

Commit c7df151

Browse files
committed
Ensure that the Tor Browser checks proxy settings only after connecting to a circuit
1 parent 6de4067 commit c7df151

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/ssl-observatory.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ function SSLObservatory() {
128128
this.log(WARN, "Failed to initialize NSS component:" + e);
129129
}
130130

131-
this.testProxySettings();
131+
// It is necessary to testProxySettings after the window is loaded, since the
132+
// Tor Browser will not be finished establishing a circuit otherwise
133+
OS.addObserver(this, "browser-delayed-startup-finished", false);
132134

133135
this.log(DBUG, "Loaded observatory component!");
134136
}
@@ -398,6 +400,10 @@ SSLObservatory.prototype = {
398400
}
399401
}
400402
}
403+
404+
if (topic == "browser-delayed-startup-finished") {
405+
this.testProxySettings();
406+
}
401407
},
402408

403409
observatoryActive: function() {

0 commit comments

Comments
 (0)