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

Add support to show only top-level origin when calling from an iframe #464

Closed
wants to merge 2 commits into from

Conversation

npm1
Copy link
Collaborator

@npm1 npm1 commented Apr 28, 2023

This PR fixes the client metadata fetch by passing the client ID in the query, and fixes #449 by adding the proposed logic.


Preview | Diff

Copy link
Collaborator 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.

Adding Yi for the algorithm logic sanity check,@jyasskin for help in making sure the navigable stuff is being handled properly

@@ -22,6 +22,10 @@ Test Suite: https://github.com/web-platform-tests/wpt/blob/master/credential-man
</pre>

<pre class=anchors>
spec: html; urlPrefix: https://html.spec.whatwg.org/multipage
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is now exported from HTML (filed a bug about it), but hasnt reached bikeshed yet.

@npm1 npm1 requested a review from yi-gu April 28, 2023 19:44
@npm1
Copy link
Collaborator Author

npm1 commented May 1, 2023

Addressed comments, let me know what you think

@yi-gu
Copy link
Collaborator

yi-gu commented May 1, 2023

Thanks! Algorithm LGTM.

@npm1
Copy link
Collaborator Author

npm1 commented May 2, 2023

@martinthomson @cboozar @bvandersloot-mozilla please take a look. Per your request, not filing an official Mozilla standards position but you can consider this to be it. As discussed in the call, we would like to ship this on Chrome 115, which branches in May 23 so we'll send I2S perhaps a week or so before then.

@cboozar
Copy link

cboozar commented May 9, 2023

Makes sense to me, though I want to understand why the urgency for 115, who is consuming this ATM?

@npm1
Copy link
Collaborator Author

npm1 commented May 9, 2023

Makes sense to me, though I want to understand why the urgency for 115, who is consuming this ATM?

I'm not merging this yet, as there are concerns about the API shape being discussed in the issue. The urgency for 115 is for Google Identity Services (right now, if they want a website to use FedCM within an iframe, Chrome will force the dialog to show three origins, whereas the site will most likely prefer showing only two if possible, to provide better UX). I'm not confident we'll be shipping in that milestone though, we'll keep people updated in the issue.

@npm1
Copy link
Collaborator Author

npm1 commented May 18, 2023

I am closing this as we're not moving forward with this proposal.

@npm1 npm1 closed this May 18, 2023
@npm1 npm1 deleted the iframe branch May 18, 2023 23:39
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.

Iframe-origin in the FedCM UX is sometimes not meaningful to users
3 participants