chromium/third_party/blink/web_tests/external/wpt/webusb/requestDevice/reject_opaque_origin.https.html

<!DOCTYPE html>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
  'use strict';

  promise_test(async (t) => {
    await promise_rejects_dom(
        t, 'SecurityError', navigator.usb.requestDevice({filters:[]}),
        'requestDevice() should throw a SecurityError DOMException when ' +
        'called from a context where the top-level document has an opaque ' +
        'origin.');
  }, 'Calls to USB APIs from an origin with opaque top origin get blocked.');
</script>