From e0f36962a90da65edff46032bf590dbd5956627b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
Date: Tue, 16 Jul 2024 17:14:46 +1000
Subject: [PATCH] Introduce DiscoverFromExternalSource activation + visibility
requirements (#129)
---
explainer.md | 45 +++++++++++++++++++++++++++------------------
index.html | 34 +++++++++++++++++++++++++++++++++-
2 files changed, 60 insertions(+), 19 deletions(-)
diff --git a/explainer.md b/explainer.md
index c67d247..b2d6a4f 100644
--- a/explainer.md
+++ b/explainer.md
@@ -34,26 +34,35 @@ At its core, the API is designed for a website ("verifier") to [transparently](h
Here is an example of how the the API might be used in practice:
+The API needs to be initiated through a user gesture, such as a button click:
+
+```html
+
- Extensions to Credential Management API
+ Integration with Credential Management API
@@ -272,6 +272,38 @@
The data member is the
credential's response data.
+
+ When invoked, the [[\DiscoverFromExternalSource]](origin, options,
+ sameOriginWithAncestors) internal method MUST:
+
+
+
Let |global| be [=this=]'s [=relevant global object=].
+
+
Let |document| be |global|'s [=associated `Document`=].
+
+
If |document| is not a [=Document/fully active descendant of a
+ top-level traversable with user attention=], [=exception/throw=]
+ {{"NotAllowedError"}} {{DOMException}}.
+
+
If |window| does not have [=transient activation=],
+ [=exception/throw=] {{"NotAllowedError"}} {{DOMException}}.
+