Closed Bug 640870 Opened 13 years ago Closed 13 years ago

Form assistant(?): "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.selectionEnd]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://browser/content/forms.js :: _formHelperGetCaretRect"

Categories

(Firefox for Android Graveyard :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cjones, Assigned: vingtetun)

Details

(Whiteboard: [fennec-checkin-postrc])

Attachments

(1 file)

STR
 (1) Debug build of fennec on desktop-linux
 (2) Load http://bugzilla.mozilla.org
 (3) Click "Log in" link at top of page
 (4) Click on "Password" field to focus it

I see this after clicking on the field

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.selectionEnd]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://browser/content/forms.js :: _formHelperGetCaretRect :: line 546"  data: no]
************************************************************

If I try to enter text after that, I see the same exception on every character I type.

Doesn't seem to happen on other input fields on the page.  Clicking on the password field a second time brings up form assistant.
Assignee: nobody → 21
tracking-fennec: --- → ?
I can reproduce this. It might have something to do with the fact that the fields are hidden at first? But then why does the username field work fine?
Not blocking since this seems limited in scope and clicking again does get things to work.
tracking-fennec: ? → ---
The patch does not make the form assistant works for this case but does prevent the error.

In fact the bugzilla code needs an update and should use the HTML5 placeholder instead of doing its own shit in https://bugzilla.mozilla.org/js/global.js
Attachment #518713 - Flags: review?(mark.finkle)
Attachment #518713 - Flags: review?(mark.finkle) → review+
Whiteboard: [fennec-checkin-postrc]
http://hg.mozilla.org/mobile-browser/rev/0e6df627a48e
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Verified fixed on:
Mozilla/5.0 (Android;Linux armv7l;rv:9.0a1)Gecko/20110905
Firefox/9.0a1 Fennec/9.0a1
Device: Samsung Galaxy S
OS: Android 2.2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: