Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firefox-esr
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
v2026dev1
entered Hard Code Freeze, changes will not be accepted •
schedule
Show more breadcrumbs
pkg
firefox-esr
Merge requests
!59
Merge buster-security from Apertis/v2022dev1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Merge buster-security from Apertis/v2022dev1
apertis/v2022dev1
into
apertis/v2021
Overview
0
Commits
4
Pipelines
1
Changes
139
Closed
Andrew Lee
requested to merge
apertis/v2022dev1
into
apertis/v2021
4 years ago
Overview
0
Commits
4
Pipelines
1
Changes
139
Expand
0
0
Merge request reports
Compare
apertis/v2021
apertis/v2021 (base)
and
latest version
latest version
ebb43e0a
4 commits,
4 years ago
139 files
+
3483
−
2252
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
139
Search (e.g. *.vue) (Ctrl+P)
browser/components/enterprisepolicies/helpers/WebsiteFilter.jsm
+
6
−
2
Options
@@ -105,14 +105,18 @@ let WebsiteFilter = {
shouldLoad(contentLocation, loadInfo, mimeTypeGuess) {
let contentType = loadInfo.externalContentPolicyType;
let url = contentLocation.spec;
if (contentLocation.scheme == "view-source") {
url = contentLocation.pathQueryRef;
}
if (
contentType == Ci.nsIContentPolicy.TYPE_DOCUMENT ||
contentType == Ci.nsIContentPolicy.TYPE_SUBDOCUMENT
) {
if (this._blockPatterns.matches(
contentLocation.spec
.toLowerCase())) {
if (this._blockPatterns.matches(
url
.toLowerCase())) {
if (
!this._exceptionsPatterns ||
!this._exceptionsPatterns.matches(
contentLocation.spec
.toLowerCase())
!this._exceptionsPatterns.matches(
url
.toLowerCase())
) {
return Ci.nsIContentPolicy.REJECT_POLICY;
}
Loading