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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice-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/bluetooth/requestDevice-sandboxed-iframe.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice-sandboxed-iframe.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice-sandboxed-iframe.html
index e75b1312e3da0c0923d33ff03b2d91add74aa364..8d52e5e30d15eddec3d3a7c6905f4b31829cdd71 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice-sandboxed-iframe.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice-sandboxed-iframe.html
@@ -14,8 +14,7 @@
});
} else {
assert_equals(messageEvent.data, 'SecurityError: requestDevice() ' +
- 'called from sandboxed or otherwise ' +
- 'unique origin.');
+ 'called from cross-origin iframe.');
test.done();
}
});
@@ -23,7 +22,7 @@
.then(() => {
let iframe = document.createElement('iframe');
iframe.sandbox.add('allow-scripts');
- iframe.src = '../resources/bluetooth/requestDevice-in-sandboxed-iframe.html';
+ iframe.src = '../resources/bluetooth/requestDevice-in-iframe.html';
document.body.appendChild(iframe);
});
}, 'Request device from a unique origin. Should reject with SecurityError.');

Powered by Google App Engine
This is Rietveld 408576698