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
34c23e34
Commit
34c23e34
authored
10 months ago
by
ma1
Committed by
Pier Angelo Vendrame
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
BB 42832: Download spam prevention exemption for browser extensions.
parent
a4199504
No related branches found
No related tags found
1 merge request
!1503
TB 43415, part 3: Shuffle commits
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
uriloader/exthandler/nsExternalHelperAppService.cpp
+6
-0
6 additions, 0 deletions
uriloader/exthandler/nsExternalHelperAppService.cpp
with
6 additions
and
0 deletions
uriloader/exthandler/nsExternalHelperAppService.cpp
+
6
−
0
View file @
34c23e34
...
...
@@ -1920,6 +1920,12 @@ bool nsExternalAppHandler::IsDownloadSpam(nsIChannel* aChannel) {
nsCOMPtr
<
nsIPermissionManager
>
permissionManager
=
mozilla
::
services
::
GetPermissionManager
();
nsCOMPtr
<
nsIPrincipal
>
principal
=
loadInfo
->
TriggeringPrincipal
();
// Always allow WebExtensions
if
(
principal
&&
principal
->
SchemeIs
(
"moz-extension"
))
{
return
false
;
}
bool
exactHostMatch
=
false
;
constexpr
auto
type
=
"automatic-download"
_ns
;
nsCOMPtr
<
nsIPermission
>
permission
;
...
...
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