Unverified Commit 152563c8 authored by Matthew Finkel's avatar Matthew Finkel
Browse files

fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser

parent 5488b649
......@@ -2514,8 +2514,9 @@ BrowserGlue.prototype = {
{
task: () => {
if (TorProtocolService.isBootstrapDone()) {
// we will take this path when the user is using the legacy tor launcher
if (TorProtocolService.isBootstrapDone() || !TorProtocolService.ownsTorDaemon) {
// we will take this path when the user is using the legacy tor launcher or
// when Tor Browser didn't launch its own tor.
OnionAliasStore.init();
} else {
// this path is taken when using about:torconnect, we wait to init
......
......@@ -2698,8 +2698,10 @@ UpdateService.prototype = {
}
return;
} else if (update.errorCode == PROXY_SERVER_CONNECTION_REFUSED &&
!TorProtocolService.isBootstrapDone()) {
// Register boostrap observer to try again
!TorProtocolService.isBootstrapDone() &&
TorProtocolService.ownsTorDaemon) {
// Register boostrap observer to try again, but only when we own the
// tor process.
this._registerBootstrapObserver();
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment