Javascript Error with Form Inputs sailfish-browser and WebView

REPRODUCIBILITY (% or how often): 100
BUILD ID = OS VERSION (Settings > About product): 4.3.0.12
HARDWARE (XA2, X10, X10 II, …): vollaphone/gigaset GS290
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?): Yes.

DESCRIPTION:

When putting the focus on Form elements in pages:

JavaScript error: chrome://embedlite/content/FormAssistant.js, line 253: TypeError: form is null

Repeats as often as you enter chars.

PRECONDITIONS:

STEPS TO REPRODUCE:

  1. Start Browser or WebView app (with form inputs)
  2. Tap on a Form text input.

EXPECTED RESULT:

Smooth interaction with Form inputs. No errors?

ACTUAL RESULT:

The Text inputs do ‘take’ but they are very sluggish.

ADDITIONAL INFORMATION:

I was debugging the performance of text input in a WebView wrapper (github.com/poetaster/harbour-scanner) AND also responding to a ticket about performance degrading in the browser.

In the 3.4 browser (obviously not WebView) this does not happen.

1 Like

So, that one:

Looks like that is fixed in master:

via

1 Like

Now to push it to a device :slight_smile: OH:
/usr/lib64/mozembedlite/chrome/embedlite/content/FormAssistant.js
Don’t hack this at home, kids.

1 Like

Ok, hacking in /usr/lib64 does not work :< Probably better that way:)

EDIT: open remains the question why it repeats on repeated characters being entered into the same field. That function should only fire on FOCUS if I understand the FormAssistant.

Maybe that’s the gist of the performance issue. If the form is being repeatedly checked with dom methods to determine if it’s a password user field? Hmmmm. Ouch.