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

Issue 2459523002: bluetooth: Return specific error if getPrimaryServices() is called without requesting access to any… (Closed)

Created:
4 years, 1 month ago by François Beaufort
Modified:
4 years, 1 month ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, haraken, jam, ortuno+watch_chromium.org, qsr+mojo_chromium.org, scheib+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Return specific error if getPrimaryServices() is called without requesting access to any UUIDs. BUG=656458 Committed: https://crrev.com/08303d660862c7d0d4f9deb7cb753d3dc68570dc Cr-Commit-Position: refs/heads/master@{#432186}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Gio's feedback #

Total comments: 4

Patch Set 3 : Use script-tests pattern #

Total comments: 9

Patch Set 4 : Add moar tests #

Total comments: 4

Patch Set 5 : Fix indent nits in tests #

Total comments: 2

Patch Set 6 : s/foo/TestName/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -14 lines) Patch
M content/browser/bluetooth/bluetooth_allowed_devices_map.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_allowed_devices_map.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc View 1 2 3 4 5 10 chunks +45 lines, -0 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 1 chunk +8 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-delayed-discovery-no-permission-for-any-service.html View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-no-permission-for-any-service.html View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html View 1 1 chunk +3 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-service.html View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-delayed-discovery-no-permission-for-any-service-with-uuid.html View 1 2 3 4 2 chunks +10 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-no-permission-for-any-service.html View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-no-permission-for-any-service-with-uuid.html View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission-present-service.html View 1 1 chunk +3 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/service-no-permission-for-any-service.js View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 57 (40 generated)
François Beaufort
Hey Gio, As it has beaten many developers, here's the patch that adds a specific ...
4 years, 1 month ago (2016-10-28 12:41:51 UTC) #11
ortuno
https://codereview.chromium.org/2459523002/diff/100001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html File third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html (right): https://codereview.chromium.org/2459523002/diff/100001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html#newcode10 third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html:10: filters: [{name: 'Heart Rate Device'}]})) The purpose of this ...
4 years, 1 month ago (2016-10-31 00:31:16 UTC) #20
François Beaufort
https://codereview.chromium.org/2459523002/diff/100001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html File third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html (right): https://codereview.chromium.org/2459523002/diff/100001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html#newcode10 third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/delayed-discovery-no-permission-present-service.html:10: filters: [{name: 'Heart Rate Device'}]})) On 2016/10/31 00:31:16, ortuno ...
4 years, 1 month ago (2016-11-02 16:46:17 UTC) #23
ortuno
https://codereview.chromium.org/2459523002/diff/140001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html File third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html (right): https://codereview.chromium.org/2459523002/diff/140001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html#newcode14 third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html:14: new DOMException('Origin is not allowed to access any service. ...
4 years, 1 month ago (2016-11-03 05:30:26 UTC) #31
François Beaufort
Here it is! https://codereview.chromium.org/2459523002/diff/140001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html File third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html (right): https://codereview.chromium.org/2459523002/diff/140001/third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html#newcode14 third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/no-permission.html:14: new DOMException('Origin is not allowed to ...
4 years, 1 month ago (2016-11-03 13:00:02 UTC) #34
ortuno
https://codereview.chromium.org/2459523002/diff/160001/content/browser/bluetooth/bluetooth_allowed_devices_map.h File content/browser/bluetooth/bluetooth_allowed_devices_map.h (right): https://codereview.chromium.org/2459523002/diff/160001/content/browser/bluetooth/bluetooth_allowed_devices_map.h#newcode64 content/browser/bluetooth/bluetooth_allowed_devices_map.h:64: bool IsOriginAllowedToAccessAtLeastOneService( Ah sorry for not noticing earlier. Please ...
4 years, 1 month ago (2016-11-03 21:31:21 UTC) #37
François Beaufort
Adding new tests helped as there was a crash. It is now fixed. Thanks Gio! ...
4 years, 1 month ago (2016-11-04 09:57:27 UTC) #38
ortuno
lgtm bar some indentation issues https://codereview.chromium.org/2459523002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js File third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js (right): https://codereview.chromium.org/2459523002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js#newcode12 third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js:12: new DOMException('Origin is not ...
4 years, 1 month ago (2016-11-06 22:26:00 UTC) #43
François Beaufort
https://codereview.chromium.org/2459523002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js File third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js (right): https://codereview.chromium.org/2459523002/diff/180001/third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js#newcode12 third_party/WebKit/LayoutTests/bluetooth/script-tests/service-delayed-discovery-no-permission-for-any-service.js:12: new DOMException('Origin is not allowed to access any service. ...
4 years, 1 month ago (2016-11-07 09:35:47 UTC) #44
François Beaufort
Hello Chris, Do you mind reviewing changes in: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom Thank you in advance, Francois.
4 years, 1 month ago (2016-11-07 09:47:26 UTC) #46
François Beaufort
dcheng@chromium.org: Please review changes in third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom Thank you!
4 years, 1 month ago (2016-11-11 07:31:23 UTC) #48
dcheng
mojom lgtm but please fix the style guide violations (I know there's existing violations, those ...
4 years, 1 month ago (2016-11-14 22:42:08 UTC) #49
ortuno
https://codereview.chromium.org/2459523002/diff/200001/content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc File content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc (right): https://codereview.chromium.org/2459523002/diff/200001/content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc#newcode22 content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc:22: const std::string kDeviceName = "foo"; nit: Please use a ...
4 years, 1 month ago (2016-11-14 22:57:27 UTC) #50
François Beaufort
On 2016/11/14 22:57:27, ortuno wrote: > https://codereview.chromium.org/2459523002/diff/200001/content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc > File content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc > (right): > > https://codereview.chromium.org/2459523002/diff/200001/content/browser/bluetooth/bluetooth_allowed_devices_map_unittest.cc#newcode22 ...
4 years, 1 month ago (2016-11-15 14:00:24 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2459523002/220001
4 years, 1 month ago (2016-11-15 14:00:55 UTC) #54
commit-bot: I haz the power
Committed patchset #6 (id:220001)
4 years, 1 month ago (2016-11-15 15:53:49 UTC) #55
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 15:56:15 UTC) #57
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/08303d660862c7d0d4f9deb7cb753d3dc68570dc
Cr-Commit-Position: refs/heads/master@{#432186}

Powered by Google App Engine
This is Rietveld 408576698