Open Bug 1908280 Opened 1 year ago Updated 1 year ago

Use GetDataSnapshot to get clipboard data when doing DLP in ClipboardContentAnalysis actor

Categories

(Firefox :: Data Loss Prevention, task)

task

Tracking

()

People

(Reporter: gstoll, Unassigned)

Details

This came from comments on D216608 (comment 1, comment 2). We will need to be careful because GetDataSnapshot has the behavior where if the passed in nsITransferable has any flavor that the clipboard can't satisfy, it will return an error, while the synchronous GetData method we're using now will just find the first flavor that it can satisfy and return success.

Also, see https://phabricator.services.mozilla.com/D223412#anchor-inline-1256832 - we should make ClipboardPopulatedDataSnapshot become invalid when the system clipboard data changes. (similar to other implementations of nsIClipboardDataSnapshot)

You need to log in before you can comment on or make changes to this bug.