Skip to content

Commit c25b59b

Browse files
committed
Allow idlharness.js use in sandbox
We just test that we always expose the interfaces in the sandbox.
1 parent 442e456 commit c25b59b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

test/harness/vendor/idlharness.js

+1-16
Original file line numberDiff line numberDiff line change
@@ -711,22 +711,7 @@ policies and contribution forms [3].
711711
}
712712

713713
function exposed_in(globals) {
714-
if ('document' in self) {
715-
return globals.has("Window");
716-
}
717-
if ('DedicatedWorkerGlobalScope' in self &&
718-
self instanceof DedicatedWorkerGlobalScope) {
719-
return globals.has("DedicatedWorker");
720-
}
721-
if ('SharedWorkerGlobalScope' in self &&
722-
self instanceof SharedWorkerGlobalScope) {
723-
return globals.has("SharedWorker");
724-
}
725-
if ('ServiceWorkerGlobalScope' in self &&
726-
self instanceof ServiceWorkerGlobalScope) {
727-
return globals.has("ServiceWorker");
728-
}
729-
throw new IdlHarnessError("Unexpected global object");
714+
return true;
730715
}
731716

732717
/**

0 commit comments

Comments
 (0)