Closed Bug 1130993 Opened 10 years ago Closed 9 years ago

Received selectionstatechanged before Webapps:Launch when launch an app (~20ms)

Categories

(Firefox OS Graveyard :: Performance, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.5+, b2g-v2.2 affected)

RESOLVED FIXED
FxOS-S4 (07Aug)
feature-b2g 2.5+
Tracking Status
b2g-v2.2 --- affected

People

(Reporter: ting, Assigned: ting)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

When launch an app, a selectionstatechanged event (sent from Homescreen process) always comes before Webapps:Launch. The profile from Flame shows it takes ~20ms on B2G main thread: http://people.mozilla.org/~bgirard/cleopatra/#report=a899fb11de4ad4b292f5f2e19b918949ed5041e9&select=1598,1619. I am not sure is the event necessary.
I found that we have 1 selectionstatechanged event with reason blur before app launch. I don't think we have enough information to filter out this useless event. We should able to resolve this issue after refactoring Touch/Selection carets code.
Summary: Received selectionstatechanged before Webapps:Launch when launch an app → Received selectionstatechanged before Webapps:Launch when launch an app (~20ms)
Blocks: 1110624
No longer blocks: AppStartup
I examine this bug after applying touch/selectioncaret refactor code. And I cannot find this event before app launch. So, let wait refactoring code getting landed and check it again!!
[Tracking Requested - why for this release]:
Keywords: perf
Flags: needinfo?(mtseng)
Yes, we didn't enable accessible caret by default. So this problem still exists. Bug 1172382 will enable it by default. Let's wait!
Depends on: 1172382
Flags: needinfo?(mtseng)
Bug 1172382 was landed. Can this issue still be reproduced?
(In reply to Ting-Yu Lin [:TYLin] (UTC+8) from comment #6) > Bug 1172382 was landed. Can this issue still be reproduced? Great! I don't see it anymore.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S4 (07Aug)
Blocks: 1180696
feature-b2g: --- → 2.5+
Assignee: nobody → janus926
You need to log in before you can comment on or make changes to this bug.