execCommand('copy') denied on CTRL-X and CTRL-C
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: edgar, Assigned: edgar)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
This is originally reported on https://github.com/eclipse-theia/theia/issues/7542.
It is because we don't treat the key event come with the modifier as a user activation, see https://searchfox.org/mozilla-central/rev/e9131060a0322f6c181b4933ac74e6440b6e723d/widget/TextEvents.h#320. But the Ctrl-x, Ctrl-C is a quite common shortcut for copying, I think we should allow it.
And the reason for ignoring key events with a modifier is mainly because we think the user might intend to interact with the browser at that time. We should have a better way to handle it instead of ignoring all combinations.
Assignee | ||
Comment 1•5 years ago
|
||
ctrl-c and ctrl-x is quite common shortcut for clipboard operation, we should
treat it as user activaion.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Is there a workaround for it?
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to anton.kosyakov from comment #2)
Is there a workaround for it?
Unfortunately, there is no workaround for web content.
Comment 5•5 years ago
|
||
Backed out changeset aa89e2840bce (Bug 1640883) for causing failures in test_autoplay_policy_key_blacklist.html CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=304132050&repo=autoland&lineNumber=2061
Backout: https://hg.mozilla.org/integration/autoland/rev/71a9976f5ea6fee1c7e2fdde46e83011e32712b3
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f2d2e86a99d0
https://hg.mozilla.org/mozilla-central/rev/e7c7162dbee2
Description
•