Closed
Bug 1159552
Opened 10 years ago
Closed 10 years ago
[bluetooth2] Clear local {services|characteristics|descriptors} arrays when handling discovering procedures.
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
2.2 S11 (1may)
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: brsun, Assigned: brsun)
References
Details
Attachments
(1 file, 1 obsolete file)
3.98 KB,
patch
|
brsun
:
review+
|
Details | Diff | Splinter Review |
|BluetoothGatt.services| [1] has duplicated services if |BluetoothGatt.discoverServices()| [2] is called more than once.
|BluetoothGatt.mServices| might need to be cleared in |BluetoothGatt::HandleServicesDiscovered()| [3] in Gecko.
[1] https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#discoverServices.28.29
[2] https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#services
[3] https://dxr.mozilla.org/mozilla-central/source/dom/bluetooth/bluetooth2/BluetoothGatt.cpp#279
Assignee | ||
Comment 1•10 years ago
|
||
|BluetoothGattService.characteristics| [1][2] and |BluetoothGattCharacteristic.descriptors| [3] have similar issues.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1159555
[2] https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#characteristics
[3] https://wiki.mozilla.org/B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#descriptors
Assignee | ||
Updated•10 years ago
|
Summary: [bluetooth2] |BluetoothGatt.services| has duplicated services if |BluetoothGatt.discoverServices()| is called more than once. → [bluetooth2] Clear local {services|characteristics|descriptors} arrays when handling discovering procedures.
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8599292 -
Flags: review?(joliu)
Comment 4•10 years ago
|
||
Comment on attachment 8599292 [details] [diff] [review]
bug1159552_gatt_clear_local_arrays_while_discovering.patch
Review of attachment 8599292 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Thanks for fixing this bug!
Attachment #8599292 -
Flags: review?(joliu) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Try results seem good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ec2f1a42ed2a
Attachment #8599292 -
Attachment is obsolete: true
Attachment #8599703 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → brsun
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S11 (1may)
You need to log in
before you can comment on or make changes to this bug.
Description
•