chromium/third_party/blink/web_tests/external/wpt/contacts/resources/non-main-frame-select.html

<script>
  'use strict';

  window.onload = function() {
    navigator.contacts.select(['name', 'email'], { multiple: true })
      .then(results => parent.postMessage({ errorMsg: '' }, '*'))
      .catch(exception => parent.postMessage({ errorMsg: exception.name }, '*'));
  }
</script>