fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] URL is not always good proposed in URL bar

Open marcinwiacek opened this issue 7 years ago • 12 comments

Steps to reproduce

  1. open www.dobreprogramy.pl
  2. click on URL bar - the whole URL is marked
  3. start typing wp.pl

Expected behavior

The whole URL is replaced and typing starts from beginning of URL

Actual behavior

Sometimes URL is rendered from the middle and Firefox is proposing some other URL on the end. It looks for me, that it happens the most often when typing is done fast after step 2 (around 1s or less) - probably something is not refreshed fast enough or some event is not sent on time and user is faster.

Note: URLs are only examples, it happens for other combinations too.

Device information

  • Android device: S7
  • Fenix version: 2.1.0

┆Issue is synchronized with this Jira Task

marcinwiacek avatar Oct 17 '19 09:10 marcinwiacek

I haven't been able to reproduce this @marcinwiacek. Could you provide screenshots, a video, or more detail?

darkwing avatar Feb 12 '20 01:02 darkwing

@boek You mentioned you had a video or STR here? Could you post?

darkwing avatar Feb 15 '20 02:02 darkwing

We can't seem to reproduce this, which means it may be fixed. I'd love QA on this.

darkwing avatar Feb 18 '20 18:02 darkwing

I have managed to reproduce this issue on Beta 4.0.0-beta.1 (Build #20500409) 2/19 on a Samsung Galaxy S8+ (Android 8.0.0) by performing the following steps:

  1. Go to http://www.dobreprogramy.pl/
  2. Tap on any article
  3. Tap the device back button
  4. Tap the URL and write something

Expected behavior

The whole URL is replaced and typing starts from beginning of URL

Actual behavior

The website from step 1 is kept in the address bar. Please see the attached video for further information. 6077

LaurentiuApahideanSV avatar Feb 19 '20 12:02 LaurentiuApahideanSV

On my Pixel 4, repeating these steps, the entire URL is replaced with the search term.

darkwing avatar Feb 19 '20 17:02 darkwing

@LaurentiuApahideanSV It might be related to the keyboard you are using. Could you specify if you are using Swiftkey or some other custom keyboard? I am working on a similar issue https://github.com/mozilla-mobile/fenix/issues/6290

codrut-topliceanu avatar Feb 20 '20 08:02 codrut-topliceanu

@codrut-topliceanu The keyboard I used to reproduce the issue is the default Samsung Keyboard.

LaurentiuApahideanSV avatar Feb 20 '20 08:02 LaurentiuApahideanSV

@LaurentiuApahideanSV Confirmed (Samsung Galaxy Note 10, Android 10). It's related to the newer Samsung Keyboard. The bug & behaviour is completely different on swiftkey. On Gboard it works as it should.

The root of all of this is the InlineAutocompleteEditText android component, which handles the suggestions displayed in the URL editText from the SearchFragment. I did propose a fix in #6290 for Swiftkey, but I don't think it's the right one. We can't fix this on a keyboard by keyboard basis.

I'll continue working on it so that maybe I can find a single fix that would solve the problems for all keyboards. Though I could really use some input from @csadilek and maybe @mcomella, as they have worked on this component before.

codrut-topliceanu avatar Feb 20 '20 14:02 codrut-topliceanu

Looks like @codrut-topliceanu is already working on this. :)

jonalmeida avatar May 04 '20 17:05 jonalmeida

@jonalmeida offering me as tribute :))) This should be fixed by https://github.com/mozilla-mobile/android-components/issues/6751 I am unable to reproduce it anymore. I could use confirmation on that though.

codrut-topliceanu avatar May 05 '20 08:05 codrut-topliceanu

Whoops! I didn't realize that comment we 3 months ago! 😅

jonalmeida avatar May 05 '20 10:05 jonalmeida

Hi, I can confirm that the issue is fixed using the latest version of Firefox Preview Nightly 5/6 #21270609.

Devices:

  • Google Pixel 3 (Android 10);
  • Samsung Galaxy Note 8 (Android 9); -LG G7 fit (Android 8.1).

sv-sdeiac avatar May 06 '20 07:05 sv-sdeiac