PresentationRequest_mixedcontent.https.html (709B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Creating a PresentationRequest with an a priori unauthenticated URL in an HTTPS context throws a SecurityError exception.</title> 4 <link rel="author" title="Francois Daoust" href="https://www.w3.org/People/#fd"> 5 <link rel="help" href="http://w3c.github.io/presentation-api/#constructing-a-presentationrequest"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 9 <script> 10 function createPresentation() { 11 var request = new PresentationRequest('http://example.org/presentation.html'); 12 }; 13 14 test(function () { 15 assert_throws_dom('SecurityError', createPresentation); 16 }); 17 </script>