Closed Bug 1047783 Opened 10 years ago Closed 10 years ago

Make sure error don't get ignored in the stateManager promise chain

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S2 (15aug)

People

(Reporter: timdream, Assigned: timdream)

References

Details

(Whiteboard: [p=1])

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1043828 +++

Please read comment 11 of the cloned bug. StateManager does not catch and output the error in the promise chain, making things hard to debug.

The patch here does not fix the problem in comment 11, not the cloned bug. We still need a graceful handling of "external" errors (wrap in try ... catch, maybe).
Comment on attachment 8466623 [details] [review]
mozilla-b2g:master PR#22445

We shouldn't ignore any error, but we do want to ignore Promise.reject(); without anything passed to us, since it's considered normal handling (in layoutManager and inputMethodManager).
Attachment #8466623 - Flags: review?(jlu)
Target Milestone: --- → 2.1 S2 (15aug)
Comment on attachment 8466623 [details] [review]
mozilla-b2g:master PR#22445

r+, but as discussed offline, please make sure that the failing Gij passes its re-run before merging, thanks!
Attachment #8466623 - Flags: review?(jlu) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: