Closed Bug 1879181 Opened 5 months ago Closed 4 months ago

Add enable and disable URL lists for DLP

Categories

(Firefox :: Data Loss Prevention, task)

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: gstoll, Assigned: handyman)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

There should two preferences:

  • An enable list of regular expression-like strings that indicate if the browser is at this URL it needs to check for DLP
  • A disable list of regular expression-like strings that indicate if the browser is at this URL it does not need to check for DLP

If a URL matches neither enable nor disable, do not check for DLP. If a URL matches both enable and disable, do not check for DLP.

Note that for performance reasons this should be applied before Firefox does any extra DLP-related work like calculating a file hash or printing a PDF version of a document.

Blocks: 1882607

This case creates a new condition -- we would normally return a ContentAnalysisResponse here, and we can still do that but then we need to also make sure that the Acknowledge isn't sent to the agent (which is easy for auto-acknowledge). Otherwise we would want to return an "error" like we do with the cancel button.

Check the URLs in the request against the prefs
browser.contentanalysis.allow_url_regex_list and
browser.contentanalysis.deny_url_regex_list, which are space-separated
lists of ECMAscript regexs that match against ASCII-encoded URLs.

Assignee: nobody → davidp99
Status: NEW → ASSIGNED

Would be nice to check all of AnalyzeContentRequest but proper CA unit tests
are still wip.

Depends on D203508

Pushed by daparks@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/25521d09c1de
Allow skipping content analysis for requests that match url list r=gstoll,win-reviewers
https://hg.mozilla.org/integration/autoland/rev/78303b2900e9
Unit test ContentAnalysis URL filter lists r=gstoll
https://hg.mozilla.org/integration/autoland/rev/b2407a14159f
apply code formatting via Lando
Backout by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e891ca1ff7cb
Backed out 3 changesets for causing gtest failures on ContentAnalysisTest.
Pushed by daparks@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fe880c75c428
Allow skipping content analysis for requests that match url list r=gstoll,win-reviewers
https://hg.mozilla.org/integration/autoland/rev/1617e8ac8baa
Unit test ContentAnalysis URL filter lists r=gstoll
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: