Closed Bug 2087427 Opened 1 month ago Closed 26 days ago

Allow extensions with the clipboardRead permission to read cross-origin web custom formats

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: edenchuang, Assigned: edenchuang)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Bug 2086505 only exposes web custom formats to a reader that is same-origin with the clipboard data, unless clipboard.readCrossOriginCustomFormats.enabled is set. That check applies to extensions with the clipboardRead permission as well, so an extension can no longer see the web custom formats a page wrote, although it can read every other clipboard format without a paste prompt.

Extensions with clipboardRead should be exempt from the same-origin restriction, in both navigator.clipboard.read() and the paste event DataTransfer. Web custom formats written by other applications should still require clipboard.readCustomFormatsFromClipboard.enabled.

Severity: -- → S3
Priority: -- → P2
Blocks: 2086510
Assignee: nobody → echuang
Attachment #9671695 - Attachment description: WIP: Bug 2087427 - Allow extensions with the clipboardRead permission to read cross-origin web custom formats. → Bug 2087427 - Allow extensions with the clipboardRead permission to read cross-origin web custom formats. r=edgar
Status: NEW → ASSIGNED
Pushed by echuang@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7c8d11f7d7b9 https://hg.mozilla.org/integration/autoland/rev/8b1136bf9b8c Allow extensions with the clipboardRead permission to read cross-origin web custom formats. r=edgar
Status: ASSIGNED → RESOLVED
Closed: 26 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: