Closed
Bug 1150722
Opened 10 years ago
Closed 10 years ago
Triggering log capture activity shows empty form
Categories
(Firefox OS Graveyard :: Gaia::Bugzilla Lite, defect)
Firefox OS Graveyard
Gaia::Bugzilla Lite
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S9 (3apr)
People
(Reporter: daleharvey, Assigned: daleharvey)
References
Details
(Whiteboard: [systemsfe])
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Race condition between creating the page and handling the activity in https://github.com/mozilla-b2g/bzlite/blob/master/lib/app.js#L172
Component: Gaia::Feedback → Bugzilla Lite
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dale
Assignee | ||
Comment 2•10 years ago
|
||
The issue here was, on load page('/create/') gets called any time, page('/create/') was then triggered by the activity handler which is completely valid (we dont want to wait on a possible activity before rendering)
However occasionally we set app.activity before the first render completed, this meant the first render picked up the activity, displayed its data, then the /create/ triggered by the activity showed an empty form
Attachment #8587707 -
Flags: review?(drs)
Comment 3•10 years ago
|
||
Comment on attachment 8587707 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/5
There's still a bit of remaining racyness that I'm not comfortable with. I think that fixing this would also improve code flow and make it more clear what's going on.
Attachment #8587707 -
Flags: review?(drs) → review-
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8587707 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/5
If the init flow gets more complicated we can have it be a promise, but adding the activity handler once init is completed is a lot cleaner and lets us get rid of the initCalled check.
Good catch, cheers
Attachment #8587707 -
Flags: review- → review?(drs)
Comment 5•10 years ago
|
||
Comment on attachment 8587707 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/5
Looks good now.
Attachment #8587707 -
Flags: review?(drs) → review+
Assignee | ||
Comment 6•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Whiteboard: [systemsfe]
Target Milestone: --- → 2.2 S9 (3apr)
You need to log in
before you can comment on or make changes to this bug.
Description
•