Closed
Bug 1139314
Opened 9 years ago
Closed 9 years ago
[Stingray] let focus manager to setTimeout, blur active and call focus of top most UI
Categories
(Firefox OS Graveyard :: Gaia::TV::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: johnhu, Assigned: johnhu)
References
Details
Attachments
(1 file)
We use setTimeout to workaround the focus limitation of keyboard event. If we let every modules call their focus, we may have race condition when two modules try to show at the same time. Like, a permission manager and notification show at the same time and they all use setTimeout and focus to change the UI. We should let focus manager to handle setTimeout and blur. Once they are done, we calculate the top most UI and call focus function of that UI.
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master Hi, I had moved the setTimeout to focus manager to prevent race condition. Please review this patch. Thanks.
Attachment #8572999 -
Flags: review?(suchiu)
Attachment #8572999 -
Flags: review?(lchang)
Comment 3•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master This patch looks good, thanks!!
Attachment #8572999 -
Flags: review?(suchiu) → review+
Assignee | ||
Comment 4•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master Sung, I had changed the module list in focus manager. Please review this part. Thanks.
Attachment #8572999 -
Flags: review+ → review?(suchiu)
Comment 5•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master Looks good! Thanks.
Attachment #8572999 -
Flags: review?(lchang) → review+
Assignee | ||
Comment 6•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master Sorry, please review this version since we found another case that we don't handle it very well. Luke, Please ask sung for more detail Sung, Please check if I miss anything and test app_authentication_dialog.js since it is modified by you.
Attachment #8572999 -
Flags: review+ → review?(lchang)
Comment 7•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master This patch is good!
Attachment #8572999 -
Flags: review?(suchiu) → review+
Comment 8•9 years ago
|
||
Comment on attachment 8572999 [details] [review] [gaia] huchengtw-moz:bug-1139314-focus-manager-handle-timeout > mozilla-b2g:master r+, as we just discussed.
Attachment #8572999 -
Flags: review?(lchang) → review+
Assignee | ||
Comment 9•9 years ago
|
||
merged to master: https://github.com/mozilla-b2g/gaia/commit/d5c0a8dcb3ff193c801b9d84842777d157b48981 gaia try is all green: https://treeherder.mozilla.org/#/jobs?repo=gaia-try&revision=056fbae344c9
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•