summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/credential-management/support/passwordcredential-get.html
blob: 0ec584d73d1f6d8626efe4c7190e5160fe527286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
  navigator.credentials.get({ 'password': true })
    .then(c => {
      window.parent.postMessage({
        "status": "resolved",
        "credential": c,
        "exception": null
      }, "*");
    })
    .catch(omg => {
      window.parent.postMessage({
        "status": "rejected",
        "credential": null,
        "exception": omg.name
      }, "*");
    });
</script>