Closed Bug 1667604 Opened 5 years ago Closed 5 years ago

On Linux, Firefox pastes text and clears the Undo log when Insert key is pressed

Categories

(Core :: DOM: Editor, defect)

80 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: rimas, Unassigned)

Details

When in a textarea or simple text input, I sometimes press the Insert key accidentally, when I mean to do something else (e.g.delete text, or navigate to the end of line), and I find it utterly annoying that when I do so, the clipboard text is pasted into the field and any and all undo history for that field is effectively cleared.
This seems like a bug to me, but seeing it present and not being fixed for such a long time, I'm starting to suspect that it's seen as a feature of platform integration or something (even though no other application I know acts this way – not even Firefox's own address bar pastes text upon a simple Insert keypress).

Problem:
When using Firefox on Linux, pressing the Insert key pastes text into textarea/input field and clears undo history.

STR:

  1. copy some text
  2. focus the comment textarea here in Bugzilla
  3. type something in the textarea and select the text you just typed
  4. press the Insert key
  5. press Ctrl+Z

Expected results:

  1. pressing Insert in step 4 should have had no effect on the contents of the field
  2. pressing Ctrl+Z in step 5 should have triggered the undo action to undo your last change to the contents of the field

Actual results:

  1. pressing Insert in step 4 will replace your selected text with clipboard contents
  2. pressing Ctrl+Z in step 5 will have no effect on the contents of the field.
Component: General → DOM: Editor
Product: Firefox → Core

This sounds very annoying.

Unfortunately, I cannot reproduce on any OS, including Ubuntu 20.04 (tested in a VM). "Insert" doesn't paste anything.

Can you reproduce on a clean Firefox profile ( https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles ) ?

What distro and window manager are you seeing this on? And are you using a distro copy of Firefox or a mozilla.org version?

Flags: needinfo?(rimas)

Indeed, i have two profiles, and the other one does not exhibit this issue.
It seems to be caused by one of the extensions I'm using. I've just restarted with extensions off, and Insert no longer pastes any text into this comment box.

Flags: needinfo?(rimas)

So apparently, this was caused by the Get Archive extension: https://addons.mozilla.org/lt/firefox/addon/get-archive/.
I'm adding that extension's author to the CC list, but also closing this issue since it doesn't seem to be caused by Firefox.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.