New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 615383 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 436283



Sign in to add a comment

bluetooth: Disconnect event is triggered after reconnect

Project Member Reported by fbeaufort@chromium.org, May 27 2016

Issue description

Version 52.0.2743.0 dev (64-bit)
Platform 8350.2.0 (Official Build) dev-channel link
Firmware Google_Link.2695.1.169

What steps will reproduce the problem?
(1) Go to https://googlechrome.github.io/samples/web-bluetooth/device-disconnect.html
(2) Enter nearby BLE device name, click "Scan" button
(3) Device is connected.
(4) Click on "Disconnect" and quickly after "Reconnect"

What is the expected output?

Requesting Bluetooth Device...
Connecting to Bluetooth Device...
> Bluetooth Device connected
Disconnecting from Bluetooth Device...
> Bluetooth Device disconnected
Connecting to Bluetooth Device...
> Bluetooth Device connected

What do you see instead?

Requesting Bluetooth Device...
Connecting to Bluetooth Device...
> Bluetooth Device connected
Disconnecting from Bluetooth Device...
> Bluetooth Device disconnected
Connecting to Bluetooth Device...
> Bluetooth Device connected
> Bluetooth Device disconnected        <--------- WHY?

And when I inspect bluetoothDevice.gatt.connected, it should be "true" instead of "false" as I reconnected afterwards.
 

Comment 1 by ortuno@chromium.org, May 27 2016

Cc: de...@chromium.org mcchou@chromium.org
 Issue 615354  has been merged into this issue.
Owner: ortuno@chromium.org
Status: Started (was: Available)
WIP at https://codereview.chromium.org/2016973003/ that fixes an issue in which we always disconnected a device even if the connection is still active.
Project Member

Comment 3 by bugdroid1@chromium.org, May 31 2016

Comment 4 by ortuno@chromium.org, May 31 2016

Status: Fixed (was: Started)
Labels: Merge-Request-52

Comment 6 by tin...@google.com, Jun 2 2016

Labels: -Merge-Request-52 Merge-Approved-52 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M52 (branch: 2743)
Project Member

Comment 7 by bugdroid1@chromium.org, Jun 2 2016

Labels: -merge-approved-52 merge-merged-2743
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/13db17e9c1703c1e7a84791817f616109e0fc5f3

commit 13db17e9c1703c1e7a84791817f616109e0fc5f3
Author: Giovanni Ortuño Urquidi <ortuno@chromium.org>
Date: Thu Jun 02 17:19:54 2016

bluetooth: Fix logic mistake in DeviceChanged

Fixes an issue in which we always disconnected a device even if the connection
is still active.

BUG= 615383 

Review-Url: https://codereview.chromium.org/2016973003
Cr-Commit-Position: refs/heads/master@{#396877}
(cherry picked from commit bb0a85c376fc57c99d6b2e8df8af6ea5f8ab5775)

Review URL: https://codereview.chromium.org/2032093002 .

Cr-Commit-Position: refs/branch-heads/2743@{#191}
Cr-Branched-From: 2b3ae3b8090361f8af5a611712fc1a5ab2de53cb-refs/heads/master@{#394939}

[modify] https://crrev.com/13db17e9c1703c1e7a84791817f616109e0fc5f3/content/browser/bluetooth/web_bluetooth_service_impl.cc
[modify] https://crrev.com/13db17e9c1703c1e7a84791817f616109e0fc5f3/device/bluetooth/bluez/bluetooth_device_bluez.cc
[modify] https://crrev.com/13db17e9c1703c1e7a84791817f616109e0fc5f3/device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc

Labels: VerifyIn-53
Status: Verified (was: Fixed)

Sign in to add a comment