Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
initialize Tor partition at startup
Browse files Browse the repository at this point in the history
to reduce delay when opening the tor private tab, in preparation for
moving tor initialization to startup.

Auditors: @darkdh
  • Loading branch information
diracdeltas committed May 7, 2018
1 parent 297afb2 commit cb9be30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions app/browser/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1026,11 +1026,6 @@ const api = {
}
extensions.createTab(createProperties, (tab) => {
cb && cb(tab)
// XXX: Workaround for 'browser-context-created' not emitted for Tor
// browsing context
if (createProperties.isTor) {
initPartition(appConfig.tor.partition)
}
})
}

Expand Down
2 changes: 1 addition & 1 deletion app/filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const beforeSendHeadersFilteringFns = []
const beforeRequestFilteringFns = []
const beforeRedirectFilteringFns = []
const headersReceivedFilteringFns = []
let partitionsToInitialize = ['default']
let partitionsToInitialize = ['default', appConfig.tor.partition]
let initializedPartitions = {}

const transparent1pxGif = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'
Expand Down

1 comment on commit cb9be30

@darkdh
Copy link
Member

@darkdh darkdh commented on cb9be30 May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.