Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of non-fully active documents for PublicKeyCredential methods #2184

Open
nsatragno opened this issue Oct 9, 2024 · 0 comments
Open

Comments

@nsatragno
Copy link
Member

Documents become non-fully active after they are navigated away.

User agents must not allow the user to interact with child navigables whose container documents are not themselves fully active.

The Credential Management specification rejects promises returned by navigator.create and navigator.get with InvalidStateError if the document is not fully active.

Should we specify that we do the same for methods that hang from PublicKeyCredential (isuvpaa, iscma, signal*, get client capabilities)? Chrome will throw if the document is not fully-active for methods that return a promise. For signal*, we won't change this behaviour: signal* methods may result in UI, and we need a document to attach that UI to. isuvpaa, iscma, and get client capabilities I could see us going either way, but honestly there's no reason to call these from a detached document.

Let's standardize this behaviour and reject for non-fully active documents.

@nsatragno nsatragno self-assigned this Oct 9, 2024
@nicksteele nicksteele added this to the Futures (catch-all) milestone Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants