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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/webshare-on-insecure-origin.html

Issue 2349253004: Restrict WebShare to secure contexts. (Closed)
Patch Set: Created 4 years, 3 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/webshare/NavigatorShare.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 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script src="/resources/get-host-info.js"></script>
5 <script src="/js-test-resources/mojo-helpers.js"></script>
6 <script src="/webshare/js-test-resources/mock-share-service.js"></script>
7 <script>
8 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
9 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + window.location.pat hname;
10 } else {
11 share_test((t, mock) => {
12 return callWithKeyDown(() => promise_rejects(
13 t, 'SecurityError', navigator.share({})));
14 }, "Requires secure context");
15 }
16 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698