secure-context.html (534B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>setSinkId and sinkId are SecureContext</title> 5 <script src=/resources/testharness.js></script> 6 <script src=/resources/testharnessreport.js></script> 7 </head> 8 <body> 9 <script> 10 let audio; 11 setup(() => { 12 assert_false(window.isSecureContext, 13 "This test must be run in a non secure context"); 14 audio = document.createElement('audio'); 15 }); 16 for (const prop of ['sinkId', 'setSinkId']) { 17 test(() => { 18 assert_false(prop in audio); 19 }, `${prop} exposure`); 20 } 21 </script> 22 </body> 23 </html>