Closed
Bug 904224
Opened 12 years ago
Closed 12 years ago
"System JS : ERROR chrome://browser/content/forms.js:827 TypeError: element is null" in green B2G mochitest-2,3 runs
Categories
(Firefox OS Graveyard :: Gaia::Keyboard, defect)
Tracking
(firefox24 unaffected, firefox25 unaffected, firefox26 fixed)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| firefox24 | --- | unaffected |
| firefox25 | --- | unaffected |
| firefox26 | --- | fixed |
People
(Reporter: RyanVM, Assigned: fabrice)
References
Details
Attachments
(2 files)
|
1.02 KB,
patch
|
xyuan
:
review+
|
Details | Diff | Splinter Review |
|
1.27 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #902168 +++
Yuan, it appears that you are the primary maintainer of forms.js. Can you please investigate this? This and bug 902168 are VERY spammy (as you can see in the logs linked below).
https://tbpl.mozilla.org/php/getParsedLog.php?id=26445003&tree=B2g-Inbound
https://tbpl.mozilla.org/php/getParsedLog.php?id=26447273&tree=B2g-Inbound
| Assignee | ||
Comment 1•12 years ago
|
||
Simple fix to bail out cleanly. We may need to fix the underlying issue but in any case getContentEditableText() needed to be a bit more robust.
Assignee: nobody → fabrice
Attachment #789303 -
Flags: review?(xyuan)
Updated•12 years ago
|
Attachment #789303 -
Flags: review?(xyuan) → review+
| Assignee | ||
Comment 2•12 years ago
|
||
Comment 3•12 years ago
|
||
Hi Fabrice,
the root cause is that we assume that key events of B2G are all generated by the virtual keyboard. As when virtual keyboard shows, the element is the current focus input element and won't be null, we don't check the element value. But in this case, we don't have a virtual keyboard and a focus input element. When 'keydown' events are generated, forms.js tries to update the selection info of the `focused element` and get `focused element is null` error.
Comment 4•12 years ago
|
||
Attachment #789351 -
Flags: review?(fabrice)
| Assignee | ||
Updated•12 years ago
|
Attachment #789351 -
Flags: review?(fabrice) → review+
| Reporter | ||
Comment 6•12 years ago
|
||
Keywords: checkin-needed
| Reporter | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f32a0cec5e80
https://hg.mozilla.org/mozilla-central/rev/b7fb2433a75f
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
| Reporter | ||
Updated•12 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•