New issue
Advanced search Search tips

Issue 647662 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 684073
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 583544


Show other hotlists

Hotlists containing this issue:
web-bluetooth


Sign in to add a comment

device.gatt.disconnect() does not abort pending connection

Reported by emil.len...@gmail.com, Sep 16 2016

Issue description

Chrome Version       : 55.0.2859.0 Linux

What steps will reproduce the problem?
(1) Execute device.gatt.connect()
(2) Some time later execute device.gatt.disconnect()

What is the expected result?
The connection attempt should be aborted

What happens instead?
The connection attempt is not aborted. Step (2) is basically a NOP.

Please provide any additional information below. Attach a screenshot if
possible.

There doesn't seem to be any other way in the API currently to abort a connection attempt.

At https://chromium.googlesource.com/chromium/src.git/+/87d092908d6e01e183bb02721ad7add4e4babeb4/content/browser/bluetooth/web_bluetooth_service_impl.cc#384 you can clearly see that when disconnecting, nothing happens if the device is not currently connected.

According to https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattserver-disconnect active connect() calls should be aborted.

You can try it out on https://googlechrome.github.io/samples/web-bluetooth/device-disconnect.html
 

Comment 1 by ortuno@chromium.org, Sep 16 2016

Mergedinto: 583544
Status: Duplicate (was: Unconfirmed)
Thanks for all the bug reports! I believe the ability to cancel pending connections is pretty new in the spec so it hasn't been implemented yet.
As mentioned by ortuno@, the spec has been changed 11 days ago to include that behaviour: https://github.com/WebBluetoothCG/web-bluetooth/pull/280#issuecomment-245440536

Lol, I guess I was a bit early there. I find it strange that it hasn't been possible before though since it's a pretty basic "feature"...
Blockedon: -583544
I'm opening this an issue blocked on the low level concept, so that it is clear at the Blink>Bluetooth layer what this feature request is. issue 583544
Blockedon: 583544
Labels: Notes-PartnerReported
Labels: -Notes-PartnerReported
Project Member

Comment 9 by sheriffbot@chromium.org, Mar 9 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Mergedinto: -583544 684073
Status: Duplicate (was: Untriaged)

Sign in to add a comment