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
8cd7740e
Verified
Commit
8cd7740e
authored
May 22, 2023
by
cypherpunks1
Committed by
Pier Angelo Vendrame
Jun 29, 2023
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 23247: Communicating security expectations for .onion
Bug 41785: Show http onion resources as secure in network monitor
parent
ef4ff7f5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!694
Bug 41796: Rebased on top of FIREFOX_ESR_115_BASE
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
devtools/shared/network-observer/NetworkHelper.sys.mjs
+8
-1
8 additions, 1 deletion
devtools/shared/network-observer/NetworkHelper.sys.mjs
with
8 additions
and
1 deletion
devtools/shared/network-observer/NetworkHelper.sys.mjs
+
8
−
1
View file @
8cd7740e
...
...
@@ -596,6 +596,9 @@ export var NetworkHelper = {
// The request did not contain any security info.
if
(
!
securityInfo
)
{
if
(
httpActivity
.
hostname
&&
httpActivity
.
hostname
.
endsWith
(
"
.onion
"
))
{
info
.
state
=
"
secure
"
;
}
return
info
;
}
...
...
@@ -647,7 +650,11 @@ export var NetworkHelper = {
// schemes other than https and wss are subject to
// downgrade/etc at the scheme level and should always be
// considered insecure
if
(
httpActivity
.
hostname
&&
httpActivity
.
hostname
.
endsWith
(
"
.onion
"
))
{
info
.
state
=
"
secure
"
;
}
else
{
info
.
state
=
"
insecure
"
;
}
}
else
if
(
state
&
wpl
.
STATE_IS_SECURE
)
{
// The connection is secure if the scheme is sufficient
info
.
state
=
"
secure
"
;
...
...
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