-
Notifications
You must be signed in to change notification settings - Fork 12
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
Introduce DiscoverFromExternalSource activation + visibility requirements #129
Conversation
WebKit tracking bug https://bugs.webkit.org/show_bug.cgi?id=275782 |
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.
LGTM
async function requestLicense() { | ||
const oid4pv = { | ||
// Protocol extensibility: | ||
protocol: "oid4vp", // An example of an OpenID4VP request to wallets. // Based on https://github.com/openid/OpenID4VP/issues/125 |
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.
protocol: "oid4vp", // An example of an OpenID4VP request to wallets. // Based on https://github.com/openid/OpenID4VP/issues/125 | |
protocol: "urn:openid.net:oid4vp", // An example of an OpenID4VP request to wallets. // Based on https://github.com/openid/OpenID4VP/issues/125 |
That's the value they are using here: https://github.com/openid/OpenID4VP/pull/155/files
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.
I'll see if I can get them to drop that.... using a URN doesn't seem appropriate as otherwise we should parse these as URLs.
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.
I thought that we were deliberate in making protocol
a DOMString
, so that we wouldn't have to form an opinion on what these were.
Should we care if this is a URN or not? Or are you suggesting that we reject any DOMString
that isn't a URL?
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.
def should care if it's an URN... because URNs are URLs, and hence it implies URL parsing. We just don't want to get into a world where people are expecting a URL where we are using a DOMString.
I suggest correcting the typo in the title, from |
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility and focus checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
Just sent a PR to WebKit - WebKit/WebKit#30499 I might send separate tests to WPT for this... The focus and visibility requirements can be tricky to tests. |
Just noting that this is blocked on two things right now...
|
We can monkey patch for now though. |
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::scopeAndCrossOriginParent const): (WebCore::CredentialsContainer::get): (WebCore::CredentialsContainer::isCreate): (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: (WebCore::CredentialsContainer::document const): * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::scopeAndCrossOriginParent const): (WebCore::CredentialsContainer::get): (WebCore::CredentialsContainer::isCreate): (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: (WebCore::CredentialsContainer::document const): * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::scopeAndCrossOriginParent const): (WebCore::CredentialsContainer::get): (WebCore::CredentialsContainer::isCreate): (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: (WebCore::CredentialsContainer::document const): * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::scopeAndCrossOriginParent const): (WebCore::CredentialsContainer::get): (WebCore::CredentialsContainer::isCreate): (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: (WebCore::CredentialsContainer::document const): * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by NOBODY (OOPS!). Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::scopeAndCrossOriginParent const): (WebCore::CredentialsContainer::get): (WebCore::CredentialsContainer::isCreate): (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: (WebCore::CredentialsContainer::document const): * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get):
https://bugs.webkit.org/show_bug.cgi?id=275782 rdar://130821648 Reviewed by Andy Estes. Adds visibility, focus, and user activation checks as per: See WICG/digital-credentials#129 * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-basics.https.html: * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https-expected.txt: Added. * LayoutTests/http/wpt/identity/identitycredentialscontainer-get-hidden.https.html: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get-user-activation.https.html: Added. * LayoutTests/platform/ios/TestExpectations: * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp: (WebCore::CredentialsContainer::scopeAndCrossOriginParent const): (WebCore::CredentialsContainer::get): (WebCore::CredentialsContainer::isCreate): (WebCore::CredentialsContainer::preventSilentAccess const): (WebCore::CredentialsContainer::performCommonChecks): * Source/WebCore/Modules/credentialmanagement/CredentialsContainer.h: (WebCore::CredentialsContainer::document const): * Source/WebCore/Modules/identity/IdentityCredentialsContainer.cpp: (WebCore::IdentityCredentialsContainer::get): Canonical link: https://commits.webkit.org/281003@main
Closes #91
The following tasks have been completed:
Implementation commitment:
Documentation and checks
Preview | Diff