If custom data is on the clipboard, Content Analysis will run every time a clipboard event is fired
Categories
(Firefox :: Data Loss Prevention, enhancement)
Tracking
()
People
(Reporter: gstoll, Assigned: gstoll)
Details
Attachments
(1 obsolete file)
When a clipboard event happens, DataTransfer::CacheExternalData()
sets up the types of data that are in the clipboard without getting the actual data. However, for custom data, DataTransfer::FillInExternalCustomTypes()
has to get the custom data to parse out what types are in there, and this triggers content analysis even if the website doesn't try to get the custom data.
Instead, we could add a way to get the clipboard contents bypassing content analysis, and adding a flag to DataTransferItem
that indicates content analysis needs to be run before handing out the data to JS.
Assignee | ||
Comment 1•3 months ago
|
||
Because the clipboard code has to read the data stored in kCustomTypesMime in order to
parse their real types/data, this was causing content analysis to be run on that data
(after bug 1913760; before that we weren't running content analysis on this data at all)
even if the JS never actually got that data. This change bypasses content analysis when
doing the parsing and only runs content analysis when something external calls to get the data.
Updated•3 months ago
|
Updated•2 months ago
|
Assignee | ||
Comment 2•2 months ago
|
||
This is an extension of the problem in bug 1915351, and the fix to that bug will fix this.
Description
•