arc: Arc shouldn't use IsNotifying to decide whether or not to subscribe to notifications. |
|||||||||||
Issue descriptionIf Arc++ needs to keep receiving notifications it needs to unconditionally acquire a NotifySession. The Bluetooth API uses a ref-counting model to write to the descriptor. If other clients drop their NotifySessions, notifications will stop. For example: 1. A website requests to start notifications. 2. The counter is increased to 1 and we write to the CCC descriptor. 3. Arc checks IsNotifying(), which returns true so it doesn't acquire a notification. 4. User navigates away from websites, therefore dropping it's NotifySession. 5. We write to the CCC descriptor to stop notifications. Please fix, this is blocking refactoring of the device APIs and web bluetooth.
,
Jul 29 2016
Thanks!
,
Aug 22 2016
Ask for merge request since this fix the bug for M53
,
Aug 22 2016
Your change meets the bar and is auto-approved for M53 (branch: 2785)
,
Aug 23 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/300e592e0f2f27aff3fff532d17e3a298adaf7ce commit 300e592e0f2f27aff3fff532d17e3a298adaf7ce Author: Rahul Chaturvedi <rkc@google.com> Date: Tue Aug 23 01:50:30 2016 arc: bluetooth: Always acquire a NotifySession If Arc++ needs to keep receiving notifications it needs to unconditionally acquire a NotifySession. The Bluetooth API uses a ref-counting model to write to the descriptor. If other clients drop their NotifySessions, notifications will stop. BUG= 632476 TEST=Build Review-Url: https://codereview.chromium.org/2189183002 Cr-Commit-Position: refs/heads/master@{#408692} (cherry picked from commit 3a796de6b43352fb756aa1c9c24a8bc5fc481553) Review URL: https://codereview.chromium.org/2270613002 . Cr-Commit-Position: refs/branch-heads/2785@{#719} Cr-Branched-From: 68623971be0cfc492a2cb0427d7f478e7b214c24-refs/heads/master@{#403382} [modify] https://crrev.com/300e592e0f2f27aff3fff532d17e3a298adaf7ce/components/arc/bluetooth/arc_bluetooth_bridge.cc
,
Aug 24 2016
,
Aug 24 2016
,
Sep 7 2016
,
Oct 18 2016
,
Mar 3 2017
,
Mar 3 2017
|
|||||||||||
►
Sign in to add a comment |
|||||||||||
Comment 1 by bugdroid1@chromium.org
, Jul 29 2016