uBlockOrigin / uBlock-issues

This is the community-maintained issue tracker for uBlock Origin
https://github.com/gorhill/uBlock
945 stars 81 forks source link

On Firefox for Android, uBO's textboxes also remove letters in front of the cursor when Backspace is held down #1716

Open DandelionSprout opened 3 years ago

DandelionSprout commented 3 years ago

Prerequisites

I tried to reproduce the issue when...

Description

In Fenix builds of Firefox for Android, while also using Gboard, the textboxes of both uBO's element picker and "My Filters" both have problems with the backspace button, wherein it deletes letters both before and after the cursor if it is held down, which makes it very difficult to do any substantial filter maintenance in that browser. This can hopefully be seen in the video below.

uBO is the only extension or website where I am aware of this occuring, and it does not occur in the old Fennec builds of Firefox for Android.

https://user-images.githubusercontent.com/22780683/132951963-c4bd81e7-f943-4e65-8357-3f4347a144ff.mp4

A specific URL where the issue occurs

moz-extension://13c4bc4f-395b-4a46-8ac9-8ba82bcc233c/dashboard.html#1p-filters.html

Steps to Reproduce

1) Go to any website (e.g. twitter.com) where the element picker can easily pick very long suggested entries by default, preferably at least 60 characters long incl. spaces. 2) Open the element picker and pick such an element. 3) Place the cursor circa 50% into the entry. 4) Hold down the keyboard app's Backspace button. 5) By the time the Backspace button has removed the 50% that were before the cursor, it has also removed circa 15% of what was after the cursor.

If it isn't immediately reproducible with this step guide, set Gboard as the system keyboard app and try once more.

Expected behavior

The Backspace button only removes text that is before the cursor.

Actual behavior

The Backspace button removes text both before and after the cursor.

uBlock Origin version

1.37.2

Browser name and version

Firefox Nightly for Android 94.0a1 (Build #2015833131)

Operating System and version

Android 10 aarch64

gorhill commented 3 years ago

Unable to reproduce, using AnySoftKeyboard. The text input is controlled by Code Mirror, so it's not something that will be fixed here.

DandelionSprout commented 3 years ago

Understandable, even when considering that Gboard has a userbase of maybe 400 million. I'll try to re-delegate this to CodeMirror's repo, then.

gorhill commented 3 years ago

Note that my built-in LG keyboard is also working correctly.

kyoyacchi commented 2 years ago

Which Firefox is that?