| OLD | NEW |
| (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> |
| OLD | NEW |