If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Handle promise rejection with correct 'Exception' object for bluetooth API

NEW
Unassigned

Status

Firefox OS
Bluetooth
3 years ago
2 years ago

People

(Reporter: jaliu, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [p=1][webbt-api])

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Return a DOMException with error message when Bluetooth component rejects the promise.

Make good use of Bluedroid status to reject promise properly.
Please refer to hardware/libhardware/include/hardware/bluetooth.h.
- BT_STATUS_SUCCESS,
- BT_STATUS_FAIL,
- BT_STATUS_NOT_READY,
- BT_STATUS_NOMEM,
- BT_STATUS_BUSY,
- BT_STATUS_DONE,
- BT_STATUS_UNSUPPORTED,
- BT_STATUS_PARM_INVALID,
- BT_STATUS_UNHANDLED,
- BT_STATUS_AUTH_FAILURE,
- BT_STATUS_RMT_DEV_DOWN,
- BT_STATUS_AUTH_REJECTED
(Reporter)

Updated

3 years ago
Assignee: nobody → jaliu
Status: NEW → ASSIGNED
(Reporter)

Comment 1

3 years ago
Created attachment 8468374 [details] [diff] [review]
Check the status of Bluedroid command after bond state changed. (v2)

Move #attachment 8465908 [details] [diff] [review] from Bug 1036233 to this bug.
(Reporter)

Updated

3 years ago
Depends on: 1032755
(Reporter)

Updated

3 years ago
Whiteboard: [p=1]

Updated

3 years ago
Whiteboard: [p=1] → [p=1][webbt-api]
(Reporter)

Comment 2

2 years ago
I'm not available for this bug. 
Assign to Ben since his is the reviewer of Bug 1036233.
Thank Ben for his help.
Assignee: 6jamin → btian

Updated

2 years ago
Summary: Handle promise rejection properly with correct 'Exception' object for Bluetooth API v2. → Handle promise rejection with correct 'Exception' object for bluetooth API

Comment 3

2 years ago
De-assign myself since I'm not actively working on this bug.
Assignee: btian → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.