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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html

Issue 2678433003: media: Require SecureContext for EME APIs (Closed)
Patch Set: rebase only Created 3 years, 10 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/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html
index 528fb97751ad2b4493fa437a155eec301694af92..e041c39861fdb0ef930a59cce9d1924e84f62f53 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html
@@ -16,7 +16,6 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
if (!window.internals)
assert_unreached('window.internals is required for this test');
-
// Tests for APIs that are deprecated, but still allowed, on
// insecure origins
async_test(function() {
@@ -32,11 +31,6 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
window.addEventListener('deviceorientation', this.step_func_done());
}, 'device orientation');
- promise_test(function(test) {
- return navigator.requestMediaKeySystemAccess('org.w3.clearkey',
- [{ videoCapabilities: [{contentType: 'video/webm; codecs="vp9"'}] }]);
- }, 'requestMediaKeySystemAccess');
-
// Tests for APIs that have been turned off on insecure origins
async_test(function() {
navigator.geolocation.getCurrentPosition(
@@ -87,6 +81,10 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
applicationCache.addEventListener('cached', cached, false);
}, 'appcache');
+
+ test(function() {
+ assert_false('requestMediaKeySystemAccess' in navigator);
+ }, 'requestMediaKeySystemAccess');
}
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698