| Index: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/get-installed-related-apps-on-insecure-origin.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/get-installed-related-apps-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/get-installed-related-apps-on-insecure-origin.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..897fcddf696bc5db2f8a84b8c29099869d6224b3
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/get-installed-related-apps-on-insecure-origin.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<title>getInstalledRelatedApps on an insecure origin</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script src="/resources/get-host-info.js"></script>
|
| +<script>
|
| +if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
|
| + window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pathname;
|
| +} else {
|
| + test(function(test) {
|
| + assert_false('getInstalledRelatedApps' in navigator,
|
| + 'navigator.getInstalledRelatedApps attribute has [SecureContext]');
|
| + }, 'getInstalledRelatedApps requires a secure context');
|
| +}
|
| +</script>
|
|
|