Open Bug 1425650 Opened 3 years ago Updated 3 months ago

Text deletion failure with Ctrl A, Backspace


(Core :: DOM: Selection, defect, P3)

57 Branch




(Reporter: casyvaf, Unassigned)



User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171206182557

Steps to reproduce:

In a text field, such as's search box, hitting ctrl+a backspace *VERY* quickly will trigger the behavior described below. 100% reproducible in Firefox. Also, this 100% does NOT happen in Chrome.

Actual results:

If ctrl+a backspace is hit *VERY* quickly, the following happens:

The cursor jumps to the beginning of the line.
The text highlighted by ctrl+a is no longer highlighted.
The text is neither deleted nor modified.

Expected results:

What should happen instead is, the text highlighted by ctrl+a should be deleted no matter how soon thereafter backspace is hit.
I had to try this a few times to hit it, but if done very quickly, which a quick typist may do often, it's reproducible.
Ever confirmed: true
Forgot to mention that I am also on Windows 10.
I've also reproduced this problem on a very clean Windows 10 install, both on 57 and 52 ESR.

It's very subtle and may require multiple attempts to reproduce, you have to hit Backspace within a quarter of a second or so of doing CTRL+A.

On a Linux machine this problem is *not* reproducible at all, so this seems to be Windows specific at this point, perhaps even Win10-specific; I don't have any Windows 7 or 8 machines so I can't test there.
Reproduced it on latest nightly on windows 7.
Worth to note:
ctrl + a = select all
ctrl + backspace = delete the entire word just before the cursor

the quick ctrl + a + backspace combination which fails correctly highlights the text after ctrl + a (meaning the action was performed) and then backspace makes the cursor go back to the beginning of the line (which is not a usual behavior)
Component: Untriaged → Selection
OS: Unspecified → Windows
Product: Firefox → Core
Hardware: Unspecified → x86
Priority: -- → P1
Priority: P1 → P3
See Also: → 1380908

Still getting this issue. Happens in user chrome as well inside of the omnibox

Windows: Microsoft Windows 10 Pro, 10.0.19041
Firefox: 80.0.1 (64-bit), 81.0 (64-bit)

Have the same issue in any text fields in Firefox, including the browser's Address bar.

As it was said, pressing Ctrl+Backspace is removing the word before cursor but when a text is selected it's takes the cursor position at the start of the selection.
As a result, it does not remove the selected text (which is expected), instead it's removing the word before selected text if any. If whole text is selected then it's just cancel selection and set cursor at the beginning of the text field.

Windows 10.
p.s. the bug does not exist in Firefox in macOS (I suppose for macOS the text field is handled by OS)

You need to log in before you can comment on or make changes to this bug.