Closed Bug 1558674 Opened 5 years ago Closed 5 years ago

Allow chrome documents to enable/disable copy/cut/paste.

Categories

(Core :: XUL, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: bdahl, Assigned: bdahl)

References

Details

Attachments

(1 file)

Currently, copy/cut/paste is always enabled for HTML or XHTML so events get dispatched (bug 1159490). XUL supports enabling/disabling these commands, but it'd be nice to support that for any chrome document.

See more discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1178047#c18

For content HTML/XHTML copy/paste should always be enabled, but for chrome
docs we can support enabling/disabling copy/paste.

Also, restores tests to how they were before copy/paste was always enabled.

Pushed by bdahl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa7f507ac743 Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan

Hmm....looks like whether paste is enabled/disabled on MacOS isn't reliable. I'll need to update that test to be like the other context menu tests and only check paste on Windows.

Flags: needinfo?(bdahl)
Pushed by bdahl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7312aba8ec3b Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan,bgrins
Pushed by bdahl@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a107e0c09120 Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan,bgrins
Flags: needinfo?(bdahl)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: