Closed Bug 1139314 Opened 10 years ago Closed 10 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)

x86
macOS
defect
Not set
normal

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 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 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+
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 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+
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)
Blocks: 1136601
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 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+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 1141887
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: