Chromium Code Reviews| 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..98b92200cb4e6b97f521eeb4202dae85ceb92cf8 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,11 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { |
| applicationCache.addEventListener('cached', cached, false); |
| }, 'appcache'); |
| + |
| + test(function() { |
| + assert_false(navigator.hasOwnProperty('requestMediaKeySystemAccess'), |
| + 'navigator.requestMediaKeySystemAccess should not be available.'); |
| + }, 'requestMediaKeySystemAccess'); |
|
jrummell
2017/02/06 21:08:21
I'm not sure, but I thought this file was simply t
xhwang
2017/02/06 21:51:01
See line 34. All the tests below that line are for
|
| } |
| </script> |
| </body> |