Closed
Bug 791036
Opened 13 years ago
Closed 13 years ago
Intermittent failure to change the value of the currently selected <select> field in a mozbrowser frame
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-basecamp:+)
VERIFIED
FIXED
blocking-basecamp | + |
People
(Reporter: jsmith, Assigned: cyu)
References
Details
(Whiteboard: [LOE:M])
Attachments
(2 files)
17.32 KB,
text/plain
|
Details | |
2.43 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
Followup to bug 781438. On today's build (9/13) on device, we still intermittently fail to change the value of the currently selected <select> field in a mozbrowser frame. Error message seen in the logcat is below:
E/GeckoConsole( 105): [JavaScript Error: "NS_ERROR_NOT_INITIALIZED: Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMessageSender.sendAsyncMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/MozKeyboard.js" line: 69}]
Reporter | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → cyu
Updated•13 years ago
|
blocking-basecamp: ? → +
Assignee | ||
Updated•13 years ago
|
Whiteboard: [LOE:M]
Assignee | ||
Comment 1•13 years ago
|
||
STR:
- Open UI test app.
- Go back to home and open another app (e.g. Dialier).
- Go back to home and open UI test app. Select is not working.
To reproduce the JavaScript Error, quit the other app and go back to the first app. The value selector will cause the above error when clicking OK.
Assignee | ||
Comment 2•13 years ago
|
||
We need to handle the multiple apps that can trigger value selector.
The problem is we save the message manager on app start, so when we open 2 apps and then switch back to the first app, this._messageManager still points to the 2nd app's mm.
The patch registers separate closures with each message manager and switches this._messageManager when an app triggers the value selector.
Attachment #662866 -
Flags: review?(21)
Comment 3•13 years ago
|
||
Comment on attachment 662866 [details] [diff] [review]
Fix MozKeyboard for value selector only working on the last opened app.
I found this patch might need further modification during my verification.
If the last "Forms:Input" is not triggered by a forms.js which holds the focused element, this._messageManager.sendAsyncMessage() will still send message to a forms.js that has no previousTarget.
Assignee | ||
Comment 4•13 years ago
|
||
This appears to be a separate issue. The value selector shouldn't allow the user to click through it to the underlying app to trigger the blur event.
Attachment #662866 -
Flags: review?(21) → review+
Assignee | ||
Comment 5•13 years ago
|
||
Test on try: https://tbpl.mozilla.org/?tree=Try&rev=f4bfc137d580
No added automatic test since the STR involves multiple apps.
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 6•13 years ago
|
||
Keywords: checkin-needed
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•