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
9d6ca8ac
Verified
Commit
9d6ca8ac
authored
Nov 21, 2023
by
Pier Angelo Vendrame
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 3455: Add DomainIsolator, for isolating circuit by domain.
Collect the browsers also on Android.
parent
410b9a4c
Loading
Loading
1 merge request
!864
Bug 42247: Tor integration changes for Android that affect also desktop
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit/components/tor-launcher/TorDomainIsolator.sys.mjs
+10
-0
10 additions, 0 deletions
toolkit/components/tor-launcher/TorDomainIsolator.sys.mjs
with
10 additions
and
0 deletions
toolkit/components/tor-launcher/TorDomainIsolator.sys.mjs
+
10
−
0
View file @
9d6ca8ac
...
...
@@ -475,9 +475,19 @@ class TorDomainIsolatorImpl {
* @returns {MozBrowser?} The browser the channel is associated to
*/
#getBrowserForChannel
(
channel
)
{
const
currentBrowser
=
channel
.
loadInfo
.
browsingContext
?.
topChromeWindow
?.
browser
;
if
(
channel
.
loadInfo
.
browsingContext
&&
currentBrowser
?.
browsingContext
===
channel
.
loadInfo
.
browsingContext
)
{
// Android has only one browser, and does not have the browsers property.
return
currentBrowser
;
}
const
browsers
=
channel
.
loadInfo
.
browsingContext
?.
topChromeWindow
?.
gBrowser
?.
browsers
;
if
(
!
browsers
||
!
channel
.
loadInfo
.
browsingContext
?.
browserId
)
{
logger
.
debug
(
"
Missing data to associate to a browser
"
,
channel
.
loadInfo
);
return
null
;
}
for
(
const
browser
of
browsers
)
{
...
...
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
register
or
sign in
to comment