Add cross-platform support for DLP framework (but not the content analysis backend)
Categories
(Enterprise Products :: Firefox, enhancement)
Tracking
(firefox154 fixed)
| Tracking | Status | |
|---|---|---|
| firefox154 | --- | fixed |
People
(Reporter: jmendez, Assigned: gstoll)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
The existing feature is supported on Windows only because the content analysis sdk is Windows only. After extracting the content analysis sdk communication to its own backend, add cross platform support for any of the non-sdk pieces so that the built-in backend can work on all platforms.
From a simple scan this appears to mainly affect the data for the printing interception point.
| Assignee | ||
Comment 1•2 months ago
|
||
Move the Windows-specific parts (i.e. converting printed data to a HANDLE)
to the ExternalAgentBackend. Also abstract out which backend we're using
by calling into ContentAnalysisBackendFactory.
| Assignee | ||
Comment 2•2 months ago
|
||
Just replace calls to the old printDataHandle and printDataSize
with getPrintData().
| Assignee | ||
Comment 3•2 months ago
|
||
Following the procedure here:
https://firefox-source-docs.mozilla.org/code-quality/typescript/updatingTypes.html
I'm updating this now because of the changes to nsIContentAnalysisRequest.
Unfortunately this pulls in a bunch of changes since the last time someone
did this :-(
| Assignee | ||
Comment 4•2 months ago
|
||
When I changed nsIContentAnalysisRequest to have a getPrintData method,
I had to chase down all the places where we defined ContentAnalysisRequest-like
structures in JavaScript (because accessing an undefined field in Javascript
just returns undefined, but calling an undefined method is an error). This
centralizes the creation of these fake objects with
ContentAnalysisUtils.createContentAnalysisRequest()
It also revealed that the drop code in browser-custom-element.mjs was
setting a uri member of the request which should have been url instead.
Part 5 adds tests for this which we somehow missed :-(
| Assignee | ||
Comment 5•2 months ago
|
||
Comment 8•2 months ago
|
||
| Assignee | ||
Updated•2 months ago
|
Comment 10•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9433023efff8
https://hg.mozilla.org/mozilla-central/rev/4e4df4455acb
https://hg.mozilla.org/mozilla-central/rev/f0043bf093c5
https://hg.mozilla.org/mozilla-central/rev/fddf85345f53
https://hg.mozilla.org/mozilla-central/rev/c4c160895ae2
Comment 11•2 months ago
|
||
Marking this one to be skipped for manual testing as there's not much for QA to check here (correct me if I'm wrong). Thanks!
Updated•2 months ago
|
Description
•