Open Bug 1890995 Opened 2 years ago Updated 2 years ago

Principal of clipboard source isn't tracked properly when copying from context menu

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect, P3)

defect

Tracking

()

People

(Reporter: edgar, Unassigned)

References

(Blocks 1 open bug)

Details

The copy through "Copy Email" and "Copy Link" in context menu which use nsIClipboardHelper.copyString() doesn't set principal into transferable while calling the clipboard API, https://searchfox.org/mozilla-central/rev/058ab60e5020d7c5c98cf82d298aa84626e0cd79/browser/base/content/nsContextMenu.js#2175-2178.

Bug 1879631 would probably also fix this, if so we should add some tests in this bug then.

Blocks: 1619251
Summary: Principal of clipboard source is tracked properly when copying from context menu → Principal of clipboard source isn't tracked properly when copying from context menu
You need to log in before you can comment on or make changes to this bug.