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

Unified Diff: third_party/WebKit/LayoutTests/resources/bluetooth/connect-iframe.html

Issue 2648583004: bluetooth: Stop firing value changed events after gatt disconnects (Closed)
Patch Set: Make iframe subscribe to notifications and add comments. Created 3 years, 11 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/resources/bluetooth/connect-iframe.html
diff --git a/third_party/WebKit/LayoutTests/resources/bluetooth/connect-iframe.html b/third_party/WebKit/LayoutTests/resources/bluetooth/connect-iframe.html
deleted file mode 100644
index 09eb9f2a66db6c48f02676163ac09bc65903ab81..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/resources/bluetooth/connect-iframe.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<script>
- window.onmessage = messageEvent => {
- if (messageEvent.data === 'Go') {
- navigator.bluetooth.requestDevice({
- filters: [{services: ['heart_rate']}]
- })
- .then(device => device.gatt.connect())
- .then(gattServer => {
- parent.postMessage('Connected', '*');
- }).catch(err => {
- console.error(err);
- parent.postMessage('FAIL: ' + err, '*');
- });
- }
- };
- parent.postMessage("Ready", "*");
-</script>

Powered by Google App Engine
This is Rietveld 408576698