Closed
      
        Bug 1871441
      
      
        Opened 1 year ago
          Closed 1 year ago
      
        
    
  
Core DLP code should calculate file digests if necessary
Categories
(Firefox :: Data Loss Prevention, task, P2)
        Firefox
          
        
        
      
        
    
        Data Loss Prevention
          
        
        
      
        
    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 | ||
          Updated•1 year ago
           
         | 
      
Assignee: nobody → gstoll
Status: NEW → ASSIGNED
Priority: -- → P2
| Assignee | ||
          Comment 1•1 year ago
           
         | 
      ||
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
          Comment 3•1 year ago
           
         | 
      ||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
          status-firefox123:
          --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
| Assignee | ||
          Comment 4•1 year ago
           
         | 
      ||
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
          Comment 6•1 year ago
           
         | 
      ||
Flags: needinfo?(gstoll)
| Assignee | ||
          Comment 7•1 year ago
           
         | 
      ||
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)
| Assignee | ||
          Comment 8•1 year ago
           
         | 
      ||
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
          Comment 10•1 year ago
           
         | 
      ||
| bugherder | ||
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•