GetFederations() => (array<Federation> federations);Sam GotoTechnically per https://docs.google.com/document/d/1Kw4aTuISF7csHnjOpDJGc7JYIjlvOAKRprCTBVWw_E4/edit?tab=t.0#heading=h.jv90dicow9kc, these new methods need to have at least one non-test usage, but they're only really exercised in browser tests and no production path.
https://chromium-review.googlesource.com/c/chromium/src/+/7539587 probably has some "production"-paths. Would it be possible to chain the next CL on top of this one that shows how these are really going to be used? (or point out which parts of that aforementioned CL I should look at to get a feel for how these mojo methods would be used outside of tests)?
Sam GotoI'm working on a CL that branches of this one that can give a concrete sense of how this CL is intended to be used.
I'll report back momentarily when I set that up.
Done.
I rebased this and also kicked off two CLs that branches from this one here to give you a concrete sense of how I'm planning to use this.
Something I've been wondering is if LocalFrame is in fact the right architectural choice, rather than this option I described here:
https://chromium-review.googlesource.com/c/chromium/src/+/7543033/comment/c06762eb_895b0ea9/
WDYT?
DispatchFederationEvent(mojo_base.mojom.UnguessableToken element_id, string token);Sam GotoI find it strange to add mojo IPC methods without actual usage. +1 on dom@'s comment that we should see a bit more of the picture and linking to the future CLs in this one is needed.
Sam GotoSGTM
Let me rebase some of these changes so that it gets easier to see how this (specifically, the Mojom browser/renderer API changes) is intended to be used.
I rebased this CL onto another one to decrease its scope to only contain the LocalFrame IPC change.
As requested, the way we are planning to use this is here:
https://chromium-review.googlesource.com/c/chromium/src/+/7563244
And as a consequence here too:
https://chromium-review.googlesource.com/c/chromium/src/+/7563245
Does that help give you a sense of how we are planning to use this?
On a related note, another architectural option that I was considering was to expose the <login> elements via the GetAIPageContent method (rather than the LocalFrame mojom) which is implemented by the AIPageContentAgent via the ai_page_content.mojom.
Because we are only planning to use this for agentic browsing, I think it probably fits there better, than the more broadly available LocalFrame.
Thoughts?
DispatchFederationEvent(mojo_base.mojom.UnguessableToken element_id, string token);Christian BiesingerWhat is this supposed to do besides just dispatching a DOM event? What Blink actions are supposed to happen, or what does this indicate?
Dominic FarolinoThat's it -- the website is supposed to listen to the event to receive the token that the IDP sent to the browser.
In a regular FedCM call, there's a promise returned from navigator.credentials.get. But in this case, because it's declarative, we instead deliver the token through this event. (Per https://www.w3.org/TR/design-principles/#state-and-subclassing, the token is stored on the federation element, not on the event object)
Christian BiesingerAh so Blink literally isn't supposed to take any action besides storing the state, and telling the developer about it here so they can grab it off of the element?
Dominic FarolinoYes that's correct
Sam GotoWhat "type" should `token` be? It's a string, but can it be described by any more specific type?
I have moved this change to this other CL:
https://chromium-review.googlesource.com/c/chromium/src/+/7552493
And replaced `token` for `credential` (and made it currently a `DOMString` -- I'll later want to make it a `Credential` but that requires me to make /core depend on /modules, so I'll do separately).
I'm going to resolve this here and take this discussion to this CL: https://chromium-review.googlesource.com/c/chromium/src/+/7552493
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |