Closed Bug 1637792 Opened 4 years ago Closed 4 years ago

Recently in certain textboxes, if you backspace a single space after a word, then type space again and begin a new word, once you type an actual character it deletes the preceding space for some reason.

Categories

(Core :: DOM: Editor, defect)

78 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1636747

People

(Reporter: aminomancer, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

-Go to gmail (some other text boxes do this too but not bugzilla's for example) in FF 78 (maybe 76 or 77+)
-Compose new email
-Start typing, then backspace a few words and delete the last space
-Now hit spacebar and start typing the rest of the sentence again.

Actual results:

The space appears upon hitting spacebar, but upon typing the following character, the space goes away somehow. I experienced this in my own profile but tested it again in a brand new, "blank" profile and it was exactly the same problem. So then I tested it in google chrome and the new microsoft edge, and neither had this issue. Also, I've been using firefox for a decade, and I type a LOT. Never once experienced anything like this until just 2-3 weeks ago. I've checked for prefs that might be related to backspace or space but there aren't many afaik, the only one I could find that seemed relevant was browser.backspace_action which I had set to 0. But setting to 1 or 2 does not fix the issue.

Expected results:

Obviously, the space should appear upon hitting spacebar, and stay there upon typing further characters, like it does normally. It only does this when you backspace some number of characters and the space preceding them, then try to type the space and more characters again.

I can reproduce the issue on Nightly78.0a1(20200513094918) Windows10.

On Gmail compose window:

STR:

  1. Typo
    they way

  2. Backspace to delete incorrect character("y way")
    the

  3. Resume typing: " way" —-Bug appears!(space is deleted)
    theway

Actual Results:
theway

Expected Results:
the way

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: Editor
Ever confirmed: true
Product: Firefox → Core
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.