Closed
Bug 1212295
Opened 9 years ago
Closed 9 years ago
Gecko does not notify user upon failure during recovery process for FOTA update
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(firefox44 fixed)
RESOLVED
FIXED
FxOS-S9 (16Oct)
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: gerard-majax, Assigned: gerard-majax)
References
Details
Attachments
(3 files, 1 obsolete file)
STR:
0. Hack FOTA with the attached patch
1. Generate FOTA
2. Install FOTA: ANDROID_TOOLCHAIN=.../prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/ ./tools/update-tools/test-update.py out/target/product/aries/fota-aries-update-fullimg.mar
3. When prompted, apply update
4. Let the device reboot into recovery
5. During recovery there will be a failure because of the invalid Edify script, reboot the device from the recovery menu
Expected:
After rebooting, B2G should notify the user that the FOTA failed
Actual:
B2G reboots and we have no confirmation of the failure
Assignee | ||
Comment 1•9 years ago
|
||
Gecko update code has properly detected the failure at reboot:
> 10-07 14:12:59.105 355 355 I Gecko : UpdatePrompt: Update error, state: failed, errorCode: 80
> 10-07 14:12:59.107 355 355 I Gecko : UpdatePrompt: Warning: Couldn't send update event update-error: no content browser. Will send again when content becomes available.
> 10-07 14:12:59.108 355 355 I Gecko : UpdatePrompt: Setting gecko.updateStatus: Install Failed
Assignee | ||
Comment 2•9 years ago
|
||
Gecko properly sends the event to SystemApp, but I suspect we do register too late the mozChromeEvent event handler in SystemUpdatable code ...
Assignee | ||
Comment 3•9 years ago
|
||
> 10-07 15:16:34.711 360 360 I Gecko : XXX FIXME : Dispatch a mozChromeEvent: webapps-registry-ready
> 10-07 15:16:34.934 360 360 I Gecko : XXX FIXME : Dispatch a mozChromeEvent: system-first-paint
> 10-07 15:16:36.725 360 360 I Gecko : XXX FIXME : Dispatch a mozChromeEvent: update-error
> 10-07 15:16:36.726 360 360 I Gecko : XXX FIXME : Dispatch a mozChromeEvent: volume-state-changed
> 10-07 15:16:38.215 360 360 D GeckoConsole: Content JS DEBUG: SystemApp: Update: mozChromeEvent: addEventListener
We add the event listener two seconds after it was dispatched ...
Assignee | ||
Updated•9 years ago
|
Component: GonkIntegration → Gaia::System
Assignee | ||
Comment 4•9 years ago
|
||
Once we fix the race between Gecko and Gaia, then all we lack is a proper notification.
Blocks: 1194642
Assignee | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8671256 -
Flags: review?(mhenretty)
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8671312 -
Flags: review?(fabrice)
Comment 8•9 years ago
|
||
Comment on attachment 8671256 [details] [review]
[gaia] lissyx:bug1212295 > mozilla-b2g:master
Yaaaay for killing long standing race conditions! \o/
Attachment #8671256 -
Flags: review?(mhenretty) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8671312 [details] [diff] [review]
Wait for SystemApp to be ready before sending update-error event
Review of attachment 8671312 [details] [diff] [review]:
-----------------------------------------------------------------
:( for another event buffer. I really wish we fix bug 1161927 and bug 1172244
Attachment #8671312 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8671255 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 11•9 years ago
|
||
Keywords: checkin-needed
Comment 12•9 years ago
|
||
bugherder merge |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S9 (16Oct)
You need to log in
before you can comment on or make changes to this bug.
Description
•