Closed Bug 1869868 Opened 7 months ago Closed 18 days ago

Do not consult DLP when pasting items from the same origin

Categories

(Firefox :: Data Loss Prevention, task)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: handyman, Assigned: gstoll)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Similar to the async clipboard work in bug 1777448, we want to avoid checking with with data-loss prevention software when copy-pasting/drag-dropping contents of a page from one spot to another that does not change the origin. The work in that bug should ease this for clipboard operations. For drag-and-drop, Firefox already has mozSourceNode, that holds the element that was the source of the drag (if any).

Something like this is done with the clipboard cache in nsBaseClipboard::AsyncGetData(). This checks that the origin is the same, but not that it comes from the same tab.

Blocks: 1882607

I'm working on the clipboard case.

For easy reference, the pref name I'm adding is "browser.contentanalysis.bypass_for_same_tab_operations"

Assignee: nobody → gstoll
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by gstoll@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ebd8c84fa604
part 1 - some refactoring in preparation for future changes, no functionality changes r=dlp-reviewers,handyman
https://hg.mozilla.org/integration/autoland/rev/a5f5e939bae1
part 2 - do not consult DLP when copy/pasting items in the same tab r=edgar,dlp-reviewers,credential-management-reviewers,handyman,sgalich

Now that the clipboard part is in, unassigning this from myself.

Assignee: gstoll → nobody
Status: ASSIGNED → NEW

Bug 1902110 covers the drag and drop side of this, so changing this to just cover the clipboard part and closing it.

Assignee: nobody → gstoll
Status: NEW → RESOLVED
Closed: 18 days ago
Keywords: leave-open
Resolution: --- → FIXED
See Also: → 1902110
Summary: Do not consult DLP when pasting/dropping items from the same origin → Do not consult DLP when pasting items from the same origin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: