blob: d06a58647438f034a2535f4d821bb5bb47000580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict';
importScripts('/resources/testharness.js');
let workerType;
if (typeof postMessage === 'function') {
workerType = 'dedicated';
}
promise_test(() => navigator.usb.getDevices(),
`Inherited header permissions policy allows ${workerType} workers.`);
done();
|