Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions WebCryptoAPI/getRandomValues.any.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// META: global=window,worker,shadowrealm

// Step 1.
test(function() {
assert_throws_dom("TypeMismatchError", function() {
Expand Down
6 changes: 4 additions & 2 deletions WebCryptoAPI/historical.any.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// META: global=window,dedicatedworker,sharedworker
// META: global=window,dedicatedworker,sharedworker,shadowrealm
//
// Do not run this in a service worker as that's always in a secure context
// Do not run this in a service worker as that's always in a secure context.
// ShadowRealm scopes created from secure contexts are OK, because SubtleCrypto
// is not [Exposed=*].

test(() => {
assert_equals(self.crypto.subtle, undefined);
Expand Down
1 change: 1 addition & 0 deletions WebCryptoAPI/idlharness.https.any.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
// META: global=window,dedicatedworker,shadowrealm-in-window

// https://w3c.github.io/webcrypto/Overview.html

Expand Down
2 changes: 2 additions & 0 deletions WebCryptoAPI/randomUUID.https.any.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// META: global=window,worker,shadowrealm

// Run for enough iterations that we're likely to catch edge-cases, like
// failing to set a reserved bit:
const iterations = 256;
Expand Down
Loading