Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Issue 1737423002: bluetooth: Add Web Bluetooth blacklist checks to readValue & writeValue. (Closed)

Created:
4 years, 10 months ago by scheib
Modified:
4 years, 10 months ago
Reviewers:
ortuno, Ilya Sherman
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bt-blacklist-char-
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add Web Bluetooth blacklist checks to readValue & writeValue. Disallow access to read and write partially blacklisted characteristics, as per Web Bluetooth specification: https://webbluetoothcg.github.io/web-bluetooth/#the-gatt-blacklist Test data specification will be updated to match this change. Issue https://github.com/WebBluetoothCG/web-bluetooth/issues/214 has been updated with changes in this patch. To facilitate testing, random UUIDs are added in bluetooth_blacklist.cc for object permutations that don't exist in the specified blacklist registry. BUG=584398 Committed: https://crrev.com/dbd2cee52c8cbaa4bdec4e08b04464e3563d338c Cr-Commit-Position: refs/heads/master@{#377931}

Patch Set 1 #

Patch Set 2 : explain testing UUIDs #

Total comments: 8

Patch Set 3 : addressed ortuno #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -33 lines) Patch
M content/browser/bluetooth/bluetooth_blacklist.cc View 1 1 chunk +24 lines, -3 lines 0 comments Download
M content/browser/bluetooth/bluetooth_blacklist_unittest.cc View 4 chunks +11 lines, -1 line 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_metrics.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h View 4 chunks +31 lines, -6 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.cc View 1 2 6 chunks +90 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getCharacteristic-blacklist.html View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/readValue-blacklist.html View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/requestDevice-blacklist.html View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js View 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/writeValue-blacklist.html View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothError.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (14 generated)
scheib
4 years, 10 months ago (2016-02-25 23:27:33 UTC) #3
ortuno
lgtm https://codereview.chromium.org/1737423002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1737423002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode871 content/browser/bluetooth/bluetooth_dispatcher_host.cc:871: RecordCharacteristicReadValueOutcome(UMAGATTOperationOutcome::BLACKLISTED); Any reason why you put read/write in ...
4 years, 10 months ago (2016-02-26 00:07:11 UTC) #4
scheib
Thanks, https://codereview.chromium.org/1737423002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1737423002/diff/20001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode871 content/browser/bluetooth/bluetooth_dispatcher_host.cc:871: RecordCharacteristicReadValueOutcome(UMAGATTOperationOutcome::BLACKLISTED); On 2016/02/26 00:07:11, ortuno wrote: > Any ...
4 years, 10 months ago (2016-02-26 00:49:49 UTC) #8
scheib
isherman: PTAL: histograms.xml
4 years, 10 months ago (2016-02-26 00:51:08 UTC) #11
Ilya Sherman
histograms.xml lgtm
4 years, 10 months ago (2016-02-26 01:08:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737423002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737423002/50001
4 years, 10 months ago (2016-02-26 01:25:01 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/99018)
4 years, 10 months ago (2016-02-26 01:43:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737423002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737423002/50001
4 years, 10 months ago (2016-02-26 03:50:00 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/187542)
4 years, 10 months ago (2016-02-26 06:07:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737423002/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737423002/50001
4 years, 10 months ago (2016-02-26 18:25:13 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:50001)
4 years, 10 months ago (2016-02-26 18:38:28 UTC) #24
commit-bot: I haz the power
4 years, 10 months ago (2016-02-26 18:40:10 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dbd2cee52c8cbaa4bdec4e08b04464e3563d338c
Cr-Commit-Position: refs/heads/master@{#377931}

Powered by Google App Engine
This is Rietveld 408576698