chromium/third_party/blink/web_tests/external/wpt/permissions-policy/resources/permissions-policy-local-fonts.html

<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>