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

Issue 616222 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , Mac
Pri: 2
Type: Bug

Blocking:
issue 604105



Sign in to add a comment

bluetooth: Double-tapping a button that opens the requestDevice() chooser crashes Chrome

Project Member Reported by jyasskin@chromium.org, May 31 2016

Issue description

Go to https://googlechrome.github.io/samples/web-bluetooth/gap-characteristics.html and press the "Get Bluetooth Device's GAP Characteristics" button twice before the chooser has a chance to open. Chrome crashes in WebBluetoothServiceImpl::RequestDeviceImpl() at CHECK(!device_chooser_controller_.get());
 

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

What platform is this on?
I've seen it on Android, but the Mac chooser doesn't close on clicks outside it at all, so it'll probably happen there too.

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

Blocking: 604105
Labels: OS-Android OS-Mac
I was not aware that mac had a different set of rules for closing the chooser D: I think the android problem falls under  Issue 588127 .
 Issue 588127  is a little different: this one's about the second gesture happening before the chooser opens in the first place, so there's nothing to close yet when the second gesture happens.
Labels: M-53
Owner: ortuno@chromium.org
Status: Started (was: Available)
WIP at: http://crrev.com/2030973002
Project Member

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

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7

commit 8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7
Author: ortuno <ortuno@chromium.org>
Date: Wed Jun 15 04:18:52 2016

bluetooth: Handle two consecutives requestDevice calls.

WebBluetoothServiceImpl will close any open choosers when calling
RequestDevice. BluetoothDeviceChooserController runs its error callback
when being destroyed if there are any open chooser.

BUG= 616222 

Review-Url: https://codereview.chromium.org/2030973002
Cr-Commit-Position: refs/heads/master@{#399836}

[modify] https://crrev.com/8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7/content/browser/bluetooth/bluetooth_device_chooser_controller.cc
[modify] https://crrev.com/8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7/content/browser/bluetooth/web_bluetooth_service_impl.cc
[add] https://crrev.com/8eba1a9d135b69979dd20c1c8c49f4cfdb3ee6d7/third_party/WebKit/LayoutTests/bluetooth/requestDevice/consecutive-calls.html

Comment 8 by ortuno@chromium.org, Jun 15 2016

Status: Fixed (was: Started)

Sign in to add a comment