Closed
Bug 1125036
Opened 9 years ago
Closed 6 years ago
[Stingray][System] focus() on smart-button on app modal dialog is useless after first popup
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: rexboy, Unassigned)
References
Details
(Whiteboard: [ft:conndevices])
This is a follow-up bug for bug 1115290. Currently we workarounded this problem by setTimeout() with 100ms; If you remove the setTimeout[1], you can reproduce this problem by this STR: 1. Open an app that popups alert() 2. let the app popup alert() 3. The focus moves to ok button of alert() and we press enter to close it 4. let the app popup alert() again Excepted: ok button of alert dialog is focused. Actual: ok button of alert dialog is NOT focused. User can't do any operation without mouse now. Since we've made a workaround on it, this is not an urgent bug. But we should find the root cause and resolve it in a correct way. [1]https://github.com/mozilla-b2g/gaia/pull/27587/files#diff-83e9df1001d6ff219f25120dda7b37d5R274
Reporter | ||
Comment 1•9 years ago
|
||
We got the second one[2]. It's similar with [1] in comment 1. but in case of comment 1, using <button> rather than <smart-button> avoids the problem. The case here is unavoidable neither using <button> nor <smart-button> Since focus() doesn't return anything when it failed, focus problem is hard to trace. I think there may be several cases underneath. [2]https://github.com/mozilla-b2g/gaia/blob/1980fc819b472e973769d5a23bd974f133976a5c/tv_apps/smart-system/js/browser_context_menu.js#L161
Updated•9 years ago
|
Blocks: conn_priority
Comment 2•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•