Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
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
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
31088582
Commit
31088582
authored
Mar 31, 2023
by
cypherpunks1
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 23247: Communicating security expectations for .onion
Bug 41533: Fix onion detection on the page info window
parent
50201d24
Loading
Loading
1 merge request
!603
Bug 41533: Fix onion detection on the page info window
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
browser/base/content/pageinfo/security.js
+6
-1
6 additions, 1 deletion
browser/base/content/pageinfo/security.js
with
6 additions
and
1 deletion
browser/base/content/pageinfo/security.js
+
6
−
1
View file @
31088582
...
...
@@ -66,7 +66,12 @@ var security = {
Ci
.
nsIWebProgressListener
.
STATE_LOADED_MIXED_DISPLAY_CONTENT
);
var
isEV
=
ui
.
state
&
Ci
.
nsIWebProgressListener
.
STATE_IDENTITY_EV_TOPLEVEL
;
var
isOnion
=
false
;
const
hostName
=
this
.
windowInfo
.
hostName
;
let
hostName
;
try
{
hostName
=
Services
.
eTLD
.
getBaseDomain
(
this
.
uri
);
}
catch
(
e
)
{
hostName
=
this
.
windowInfo
.
hostName
;
}
if
(
hostName
&&
hostName
.
endsWith
(
"
.onion
"
))
{
isOnion
=
true
;
}
...
...
...
...
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