Closed Bug 1128399 Opened 9 years ago Closed 9 years ago

[Bluetooth][Settings] Handle Dom event 'BluetoothAdapter.onaborted' to cancel confirmation while a remote device cancel the pairing request.

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: iliu, Assigned: iliu)

References

Details

(Whiteboard: [webbt-api])

Attachments

(1 file)

STD:
1. Turn Bluetooth on.
2. Set visible on.
3. Use a remote device to pair with FFOS phone.
4. The pairing dialog shows to wait a user confirmation.
5. Cancel the pairing request from remote device.

Expected:
The pairing dialog should be close.

Actual:
The pairing dialog still waits a user confirmation.
Per discussion on Bug 1128383, Gaia will handle the new event 'BluetoothAdapter.onaborted' to cancel the confirmation of incoming pairing request while a remote device has canceled it.
Whiteboard: [webbt-api]
Bug 1128383 has landed gecko webidl change [1] and implementation. Note adapter.onpairingaborted would fire as long as pairing fails for one of the reasons: 1) authentication error, 2) pairing cancellation, and 3) other internal errors.

[1] https://dxr.mozilla.org/mozilla-central/source/dom/webidl/BluetoothAdapter2.webidl#57
Status: NEW → ASSIGNED
Comment on attachment 8584420 [details] [review]
[gaia] ian-liu:bluetooth/bug1128399_handle_onpairingaborted_event_for_cancel_pairing_process > mozilla-b2g:master

Arthur, 

Since Bug 1128383 is landed for DOM event 'onpairingaborted', we can watch the event and handle it as handling 'bluetooth-cancel' as before. Could you please help to review my pull request? Thanks.
Attachment #8584420 - Flags: review?(arthur.chen)
Comment on attachment 8584420 [details] [review]
[gaia] ian-liu:bluetooth/bug1128399_handle_onpairingaborted_event_for_cancel_pairing_process > mozilla-b2g:master

r=me with the comment addressed, thanks!
Attachment #8584420 - Flags: review?(arthur.chen) → review+
Thanks for Arthur's reviewing effort. Updated the patch and wait try-server test process.
Keywords: checkin-needed
Autolander could not locate a review from a user within the suggested reviewer list. Either the patch author or the reviewer should be in the suggested reviewer list.
Component: Bluetooth → Gaia::Settings
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: