-
Notifications
You must be signed in to change notification settings - Fork 39
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
Use 'InvalidStateError' for fully active check #245
Conversation
We have a little bit of an over-reliance on NotAllowedError in the spec. |
Looks good. This is a breaking change, could you accompany it with a WPT so we don't forget to make the corresponding change in chromium? |
index.bs
Outdated
@@ -951,7 +951,7 @@ spec:css-syntax-3; | |||
1. Assert: |settings| is a [=secure context=]. | |||
|
|||
1. If |settings|'s [=relevant global object=]'s [=associated Document=] is not [=Document/fully active=], | |||
then return [=a promise rejected with=] "{{NotAllowedError}}" {{DOMException}}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we should also make the change for the other algorithms (request, store, prevent silent access, and create), no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes, totally... will make those changes too.
Absolutely! Will update the tests now. |
https://bugs.webkit.org/show_bug.cgi?id=277125 rdar://132552299 Reviewed by NOBODY (OOPS!). Switched from NotAllowedError to InvalidStateError for non-fully active documents. Spec change: w3c/webappsec-credential-management#245 * LayoutTests/imported/w3c/web-platform-tests/credential-management/non-fully-active.https.html: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, thank you!
SHA: 991c1ec Reason: push, by nsatragno Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Chromium bug: https://crbug.com/355603420 |
https://bugs.webkit.org/show_bug.cgi?id=277125 rdar://132552299 Reviewed by NOBODY (OOPS!). Switched from NotAllowedError to InvalidStateError for non-fully active documents. Spec change: w3c/webappsec-credential-management#245 * LayoutTests/imported/w3c/web-platform-tests/credential-management/non-fully-active.https.html: * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/non-fully-active.https.html: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks):
https://bugs.webkit.org/show_bug.cgi?id=277125 rdar://132552299 Reviewed by Pascoe. Switched from NotAllowedError to InvalidStateError for non-fully active documents. Spec change: w3c/webappsec-credential-management#245 * LayoutTests/imported/w3c/web-platform-tests/credential-management/non-fully-active.https.html: * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/non-fully-active.https.html: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): Canonical link: https://commits.webkit.org/281535@main
https://bugs.webkit.org/show_bug.cgi?id=277125 rdar://132552299 Reviewed by Pascoe. Switched from NotAllowedError to InvalidStateError for non-fully active documents. Spec change: w3c/webappsec-credential-management#245 * LayoutTests/imported/w3c/web-platform-tests/credential-management/non-fully-active.https.html: * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/non-fully-active.https.html: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): Canonical link: https://commits.webkit.org/281535@main
In order to make errors more distinguishable, it would be good if we could use "InvalidStateError" instead for fully active checks.
The following tasks have been completed:
Implementation commitment:
Preview | Diff