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

Disallow multiple in-progress credential requests #207

Merged
merged 7 commits into from
Sep 16, 2022
Merged

Conversation

npm1
Copy link
Contributor

@npm1 npm1 commented Aug 26, 2022

Fixes #206


Preview | Diff

@npm1 npm1 requested a review from nsatragno August 26, 2022 21:57
index.bs Outdated
1. [=map/For each=] |optionKey| → <var ignore>optionValue</var> of |options|:

1. If |topLevelBrowsingContext|'s [=active credential types=] [=set/contains=] |optionKey|,
[=reject=] |p| with null and return |p|.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't sure what we should do (probably not reject p with null?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm1 and others added 2 commits August 29, 2022 16:09
* Add permissions policy check for FedCM

Companion change to w3c-fedid/FedCM#236
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@npm1 npm1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to disable autoremoval of blank spaces before end of a line...

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@nsatragno
Copy link
Member

It looks like this PR needs to be rebased, there are a bunch of unrelated changes (like the introduction of permissions policy for fedcm).

@npm1
Copy link
Contributor Author

npm1 commented Sep 15, 2022

It looks like this PR needs to be rebased, there are a bunch of unrelated changes (like the introduction of permissions policy for fedcm).

What do you mean? https://github.com/npm1/webappsec-credential-management/tree/repeated says I'm already ahead of w3c:main branch. I skimmed the diff and didn't see the introduction of permissions policy.

Copy link
Member

@nsatragno nsatragno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

1. For each |interface| in |options|' <a>relevant credential interface objects</a>:

1. If |settings|' [=active credential types=] [=set/contains=] |interface|'s
{{Credential/[[type]]}}, return [=a promise rejected with=] a "{{NotAllowedError}}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to the PR but can you file a crbug for this & to have a corresponding WPT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nsatragno nsatragno merged commit 976f91b into w3c:main Sep 16, 2022
github-actions bot added a commit that referenced this pull request Sep 16, 2022
SHA: 976f91b
Reason: push, by @nsatragno

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify what happens when a credential request is issued while another one is in progress
3 participants