Closed Bug 1871441 Opened 11 months ago Closed 11 months ago

Core DLP code should calculate file digests if necessary

Categories

(Firefox :: Data Loss Prevention, task, P2)

task

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: gstoll, Assigned: gstoll)

Details

Attachments

(2 files)

This would make it easier on calling code, because the calling code is often on the main thread and we shouldn't be doing file I/O on the main thread.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED
Priority: -- → P2
Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97aee1542e79 calcuate digest in content analysis code if caller does not r=handyman
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

Use a bigger buffer for reading file contents, and use MOZ_DIAGNOSTIC_ASSERT to make sure we're not doing file IO on the main thread.

Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9343b9b9d52e small fixes to ContentAnalysisRequest::GetFileDigest() r=rkraesig

Backed out for causing hazard failure on analyze.py

Backout link

Push with failures

Failure log

Flags: needinfo?(gstoll)

I was skeptical, but this looks like a "real" failure - it fails consistently with my change and succeeds without it. :sfink is looking into why this seemingly-innocuous change caused this.

Flags: needinfo?(gstoll)

The hazard analyzer problem is bug 1874510. I'm reworking this change slightly to avoid hitting it.

Pushed by gstoll@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7a271c737a80 small fixes to ContentAnalysisRequest::GetFileDigest() r=rkraesig
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: