Source code

Revision control

Copy as Markdown

Other Tools

'use strict';
importScripts('/resources/testharness.js');
let workerType;
if (typeof postMessage === 'function') {
workerType = 'dedicated';
}
promise_test(() => navigator.hid.getDevices(),
`Inherited header permissions policy allows ${workerType} workers.`);
done();