diff options
Diffstat (limited to '')
-rw-r--r-- | dom/credentialmanagement/tests/crashtests/bug1691963.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dom/credentialmanagement/tests/crashtests/bug1691963.html b/dom/credentialmanagement/tests/crashtests/bug1691963.html new file mode 100644 index 0000000000..f7ef34622f --- /dev/null +++ b/dom/credentialmanagement/tests/crashtests/bug1691963.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<head> + <script> + document.addEventListener("DOMContentLoaded", () => { + const frame = document.createElement("frame"); + document.body.appendChild(frame); + const { credentials } = frame.contentWindow.navigator; + + let i = 0; + setInterval(async () => { + if (i++ > 3) { + document.documentElement.removeAttribute("class"); + } + try { + await credentials.get({ + publicKey: { + challenge: new Uint8Array(128), + allowCredentials: [{ type: 'public-key', id: new TextEncoder().encode('FOOBAR'), }], + }, + }); + } catch (e) {} + frame.remove(); + }, 1000); + }, { once: true }); + </script> +</head> +</html> |