shared-storage-permissions-policy-helper.html (517B)
1 <!doctype html> 2 <body> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="/shared-storage/resources/util.js"></script> 6 <script> 7 'use strict'; 8 9 window.onload = async function() { 10 if (await AreRegularSharedStorageMethodsAllowed()) { 11 parent.postMessage({ type: 'availability-result', enabled: true }, '*'); 12 return; 13 } 14 15 parent.postMessage({ type: 'availability-result', enabled: false }, '*'); 16 } 17 </script> 18 </body>