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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/get-installed-related-apps-on-insecure-origin.html

Issue 2765783002: Restrict Navigator.getInstalledRelatedApps() to secure contexts. (Closed)
Patch Set: fix copypaste Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>getInstalledRelatedApps on an insecure origin</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/resources/get-host-info.js"></script>
6 <script>
7 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
8 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pat hname;
9 } else {
10 test(function(test) {
11 assert_false('getInstalledRelatedApps' in navigator,
12 'navigator.getInstalledRelatedApps attribute has [SecureContext ]');
13 }, 'getInstalledRelatedApps requires a secure context');
14 }
15 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698