summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/resources/permissions-policy-local-fonts.html
blob: 1b965d9c7d7fbf6bf72c36cb17bcc7def38a2a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
<script>
'use strict';

window.onload = function() {
  self.queryLocalFonts().then(() => {
    parent.postMessage({ type: 'availability-result', enabled: true }, '*');
  }, error => {
    parent.postMessage({ type: 'availability-result', enabled: false }, '*');
  });
}
</script>