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'), |
|
foolip
2017/02/07 00:06:11
navigator.hasOwnProperty('requestMediaKeySystemAcc
xhwang
2017/02/07 00:23:56
I am not super familiar with this code, but here's
foolip
2017/02/07 00:27:12
That's odd, I've tested in Chrome Stable and Chrom
|
| + 'navigator.requestMediaKeySystemAccess should not be available.'); |
| + }, 'requestMediaKeySystemAccess'); |
| } |
| </script> |
| </body> |