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
a0680fc3
Verified
Commit
a0680fc3
authored
11 months ago
by
ma1
Browse files
Options
Downloads
Patches
Plain Diff
Bug 42832: Download spam prevention exemption for browser extensions.
parent
f93056fe
No related branches found
No related tags found
No related merge requests found
Pipeline
#207539
failed
11 months ago
Stage: setup
Stage: lint
Changes
1
Pipelines
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 @
a0680fc3
...
...
@@ -1900,6 +1900,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.
ma1
@ma1
mentioned in merge request
!1221 (merged)
·
11 months ago
mentioned in merge request
!1221 (merged)
mentioned in merge request !1221
Toggle commit list
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