Closed Bug 2076769 Opened 1 month ago Closed 8 days ago

Prepare for Firefox-local clipboard changes

Categories

(Firefox :: Data Loss Prevention, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: gstoll, Assigned: gstoll)

References

(Blocks 3 open bugs)

Details

Attachments

(3 external files)

Splitting these changes up so I can land these in mozilla-central and hopefully reduce the pain of merging later.

Blocks: 2074118

Make these go through nsIClipboard.asyncSetData instead of calling
Content Analysis directly. This is in preparation for local clipboard
support.

Assignee: nobody → gstoll
Status: NEW → ASSIGNED

We will use this new method for local clipboard checks in later changes.

This actually fixes a bug for paste - previously if
bypass_For_same_tab_operations was set, you could copy from a page,
navigate away in that tab, and paste into that tab as long as the principal
(i.e. origin) matched. This adds a test for that case.

This adds the hooks for Firefox-local clipboard support into nsBaseClipboard.
Future work will be done in bug 2074118 for Enterprise-only.

Attachment #9650692 - Attachment description: Bug 2076769 part 3 - Let nsBaseClipboard serve reads from a copy kept instead of the native clipboard r=#dlp-reviewers!,edgar! → Bug 2076769 part 3 - Let ClipboardCache hold data that is not on the native clipboard r=edgar!,#dlp-reviewers!
Attachment #9650692 - Attachment description: Bug 2076769 part 3 - Let ClipboardCache hold data that is not on the native clipboard r=edgar!,#dlp-reviewers! → Bug 2076769 part 3 - Let nsBaseClipboard serve reads from a copy kept instead of the native clipboard r=#dlp-reviewers!,edgar!
Blocks: 2090956
Blocks: 2093649
Pushed by gstoll@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/66220d4b7a51 https://hg.mozilla.org/integration/autoland/rev/242e6b2ef494 part 1 - Route copies from alert()/prompt() dialogs through nsBaseClipboard r=dlp-reviewers,handyman https://github.com/mozilla-firefox/firefox/commit/1f33f3939557 https://hg.mozilla.org/integration/autoland/rev/fadd3f1a1090 part 2 - Make bypass_for_same_tab_operations require the same page r=dlp-reviewers,handyman https://github.com/mozilla-firefox/firefox/commit/9f51ba5ea3f4 https://hg.mozilla.org/integration/autoland/rev/cc32d54804b3 part 3 - Let nsBaseClipboard serve reads from a copy kept instead of the native clipboard r=edgar,dlp-reviewers,handyman
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: