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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-filter.html

Issue 2014473002: bluetooth: Web Bluetooth can filter by empty device names, doesn't leak MACs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-GetNameOrEmpty-
Patch Set: addressed nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-filter.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-filter.html
similarity index 56%
copy from third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html
copy to third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-filter.html
index 908763cd49321226d0ba3916d4e7a4860638043d..0cfd7ef7e058c3a7514a29ab15d06c24a508b5a8 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/not-processing-user-gesture.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/name-empty-filter.html
@@ -6,8 +6,12 @@
'use strict';
promise_test(t => {
return setBluetoothFakeAdapter('HeartRateAdapter')
- .then(() => promise_rejects(
- t, 'SecurityError', navigator.bluetooth.requestDevice({
- filters: [{services: ['heart_rate']}]})));
-}, 'Requires a user gesture.');
+ .then(() => promise_rejects(
+ t, 'NotFoundError', requestDeviceWithKeyDown({
+ filters: [{
+ name: '',
+ services: ['heart_rate']
+ }]})));
+}, 'A named device is not matched by a filter with an empty name.');
</script>
+

Powered by Google App Engine
This is Rietveld 408576698