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

Unified Diff: third_party/WebKit/LayoutTests/resources/bluetooth/requestDevice-in-sandboxed-iframe.html

Issue 1862953002: Disallow use of Web Bluetooth from cross-origin iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add a test. Created 4 years, 8 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/requestDevice-in-sandboxed-iframe.html
diff --git a/third_party/WebKit/LayoutTests/resources/bluetooth/requestDevice-in-sandboxed-iframe.html b/third_party/WebKit/LayoutTests/resources/bluetooth/requestDevice-in-sandboxed-iframe.html
deleted file mode 100644
index 10fa000684dcda61f69d62bb4f4911a9b0a26f07..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/resources/bluetooth/requestDevice-in-sandboxed-iframe.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!DOCTYPE html>
-<button onclick="RequestDevice()">Request</button>
-<script>
- window.onmessage = messageEvent => {
- // For requestDevice to work, 'Go' should be sent while
- // handling a user gesture.
- if (messageEvent.data === 'Go') {
- navigator.bluetooth.requestDevice({
- filters: [{services: ['heart_rate']}]
- }).then(() => {
- parent.postMessage('Should have failed.', '*');
- }).catch(err => {
- parent.postMessage(err.name + ': ' + err.message, '*');
- });
- }
- };
- parent.postMessage("Ready", "*");
-</script>

Powered by Google App Engine
This is Rietveld 408576698