Closed
Bug 909706
Opened 11 years ago
Closed 11 years ago
Keyboard manager must wait for applicationready to enumerate all keyboard apps
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:koi+)
RESOLVED
FIXED
blocking-b2g | koi+ |
People
(Reporter: GaryChen, Assigned: GaryChen)
References
Details
(Whiteboard: [FT:System-Platform], [Sprint:3])
Attachments
(2 files)
When Keyboard Manager runs init() keyboard helper(shared/js/keyboard_helper.js) will use |navigator.mozApps.mgmt.getAll()| for enumerating all keyboard apps.
We saw some code like system/js/bootstrap.js will wait for |Applications.ready| or listen |applicationready| event to prevent gecko not ready for |mozApps.mgmt| .
Seems Keyboard manager need to wait for |applicationready| to run init().
Assignee | ||
Comment 1•11 years ago
|
||
Hi Alive and Rudy,
This is my WIP patch.
Is it right for listening |applicationready| before we do |mozApps.mgmt.getAll()|?
In shared/js/keyboard_helper.js line145
https://github.com/mpizza/gaia/commit/dd2079019149f5ac1c8d3ed9b47e28b1e64f10e7#L7R145
please give me some feedback thanks.
Attachment #796108 -
Flags: feedback?(rlu)
Attachment #796108 -
Flags: feedback?(alive)
Comment 2•11 years ago
|
||
Comment on attachment 796108 [details]
WIP patch
Looks good to me.
Thanks for taking care of this.
Attachment #796108 -
Flags: feedback?(rlu) → feedback+
Comment 3•11 years ago
|
||
Comment on attachment 796108 [details]
WIP patch
How about KeyboardHelper? It shouldn't do init() right away it's included. Or we shall lazy load it.
Attachment #796108 -
Flags: feedback?(alive) → feedback+
Assignee | ||
Comment 4•11 years ago
|
||
good point~
Thanks Rudy and Alive
I will fix it.
Updated•11 years ago
|
blocking-b2g: --- → koi+
Whiteboard: [FT:System-Platform], [Sprint:3]
Assignee | ||
Comment 5•11 years ago
|
||
Hi Alive,
I've update my patch and addressed your comment, please help review this patch.
Thanks.
Attachment #798503 -
Flags: review?(akuo)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gchen
Comment 6•11 years ago
|
||
Comment on attachment 798503 [details]
pull request: https://github.com/mozilla-b2g/gaia/pull/11886
r=me iff KeyboardManager doesn't depend on KeyboardHelper load status.
Attachment #798503 -
Flags: review?(akuo) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Thanks alive,
landed in b2g master.
https://github.com/mozilla-b2g/gaia/commit/9839638881e22c53ee54d7a27a7d5c5e2b2c1081
https://github.com/mozilla-b2g/gaia/commit/65abc8c4cd0138abfa58f69acd33c32e315d8d2c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•