[fedcm] Introduce a <login> element to the accessibility parse tree [chromium/src : main]

0 views
Skip to first unread message

Sam Goto (Gerrit)

unread,
Jan 29, 2026, 4:43:00 PM (2 days ago) Jan 29
to Philip Jägenstedt, Christian Biesinger, chromium...@chromium.org, (Julie)Jeongeun Kim, Kevin Babbitt, abigailbk...@google.com, bling-alchemy-eng+...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chromium-a...@chromium.org, dtseng...@chromium.org, extension...@chromium.org, francisjp...@google.com, ipc-securi...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, lucasrada...@google.com, moqati-team+chr...@google.com, nektar...@chromium.org, npm+...@chromium.org, yigu+...@chromium.org, yuzo+...@chromium.org
Attention needed from Philip Jägenstedt

Sam Goto added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Sam Goto . resolved

@foo...@chromium.org, wdyt?

This seemed better to me than to extend the Annotated Page Content mojom service, because I wanted to get all of the benefits of the accessibility tree (like synchronizing JS updates with the DOM).

Is this an appropriate use of the accessibility tree? Otherwise, I'd be happy to move this elsewhere.

Open in Gerrit

Related details

Attention is currently required from:
  • Philip Jägenstedt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id949134c0c7a49a7e30ee1ba42e4a15191986869
Gerrit-Change-Number: 7532994
Gerrit-PatchSet: 1
Gerrit-Owner: Sam Goto <go...@chromium.org>
Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
Gerrit-Attention: Philip Jägenstedt <foo...@chromium.org>
Gerrit-Comment-Date: Thu, 29 Jan 2026 21:42:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

AI Code Reviewer (Gerrit)

unread,
Jan 29, 2026, 4:48:31 PM (2 days ago) Jan 29
to Sam Goto, Philip Jägenstedt, Christian Biesinger, chromium...@chromium.org, (Julie)Jeongeun Kim, Kevin Babbitt, abigailbk...@google.com, bling-alchemy-eng+...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chromium-a...@chromium.org, dtseng...@chromium.org, extension...@chromium.org, francisjp...@google.com, ipc-securi...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, lucasrada...@google.com, moqati-team+chr...@google.com, nektar...@chromium.org, npm+...@chromium.org, yigu+...@chromium.org, yuzo+...@chromium.org
Attention needed from Philip Jägenstedt

AI Code Reviewer added 1 comment

File third_party/blink/renderer/modules/accessibility/ax_node_object.cc
Line 1157, Patchset 1 (Latest): ax::mojom::blink::Role::kLogin,
AI Code Reviewer . unresolved

nit: Please keep the list sorted alphabetically to maintain consistency. 'kLogin' should appear before 'kRegion'.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention is currently required from:
  • Philip Jägenstedt
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id949134c0c7a49a7e30ee1ba42e4a15191986869
    Gerrit-Change-Number: 7532994
    Gerrit-PatchSet: 1
    Gerrit-Owner: Sam Goto <go...@chromium.org>
    Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
    Gerrit-Attention: Philip Jägenstedt <foo...@chromium.org>
    Gerrit-Comment-Date: Thu, 29 Jan 2026 21:48:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Philip Jägenstedt (Gerrit)

    unread,
    Jan 30, 2026, 1:27:52 AM (23 hours ago) Jan 30
    to Sam Goto, David Grogan, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Christian Biesinger, chromium...@chromium.org, (Julie)Jeongeun Kim, Kevin Babbitt, mac-r...@chromium.org, asvitkine...@chromium.org, abigailbk...@google.com, bling-alchemy-eng+...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chromium-a...@chromium.org, dtseng...@chromium.org, extension...@chromium.org, francisjp...@google.com, ipc-securi...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, lucasrada...@google.com, moqati-team+chr...@google.com, nektar...@chromium.org, npm+...@chromium.org, yigu+...@chromium.org, yuzo+...@chromium.org
    Attention needed from David Grogan and Sam Goto

    Philip Jägenstedt added 1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Philip Jägenstedt . resolved

    dgrogan@ can you take a look? How should one go about picking the most appropriate mapping on each platform? I think this would be defined in https://w3c.github.io/html-aam/ but following the reference to https://developer.apple.com/documentation/appkit/nsaccessibility I can't find an obvious choice.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • David Grogan
    • Sam Goto
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id949134c0c7a49a7e30ee1ba42e4a15191986869
    Gerrit-Change-Number: 7532994
    Gerrit-PatchSet: 5
    Gerrit-Owner: Sam Goto <go...@chromium.org>
    Gerrit-Reviewer: David Grogan <dgr...@chromium.org>
    Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
    Gerrit-Reviewer: Sam Goto <go...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
    Gerrit-Attention: David Grogan <dgr...@chromium.org>
    Gerrit-Attention: Sam Goto <go...@chromium.org>
    Gerrit-Comment-Date: Fri, 30 Jan 2026 06:27:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    David Grogan (Gerrit)

    unread,
    Jan 30, 2026, 2:40:25 PM (10 hours ago) Jan 30
    to Sam Goto, David Grogan, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Philip Jägenstedt, Christian Biesinger, chromium...@chromium.org, (Julie)Jeongeun Kim, Kevin Babbitt, mac-r...@chromium.org, asvitkine...@chromium.org, abigailbk...@google.com, bling-alchemy-eng+...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chromium-a...@chromium.org, dtseng...@chromium.org, extension...@chromium.org, francisjp...@google.com, ipc-securi...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, lucasrada...@google.com, moqati-team+chr...@google.com, nektar...@chromium.org, npm+...@chromium.org, yigu+...@chromium.org, yuzo+...@chromium.org
    Attention needed from Philip Jägenstedt and Sam Goto

    David Grogan added 1 comment

    Patchset-level comments
    Philip Jägenstedt . resolved

    dgrogan@ can you take a look? How should one go about picking the most appropriate mapping on each platform? I think this would be defined in https://w3c.github.io/html-aam/ but following the reference to https://developer.apple.com/documentation/appkit/nsaccessibility I can't find an obvious choice.

    David Grogan

    Yeah, there's nothing obvious to me either. Sam, when you're even kind of sure that you're going to introduce a new <login> element, file an issue on https://github.com/w3c/html-aam/issues/ asking for ARIA's guidance for mappings for this new element. (Are you already kind of sure? If so, go ahead and file.)

    There's also https://w3c.github.io/html-aam/#mapping_nodirect , which this CL might already abide by, honestly. (Not sure what comes out in the description --
    https://w3c.github.io/core-aam/#accessible-names-and-descriptions -- for login elements.) It's no big deal, for now, if it doesn't though.

    In the meantime, seems like Sam is just [ab]using chrome's axtree as a place for convenient access. That's fine. As long as that usage isn't going to require expanding the axtree's (or syncing) performance or behavior beyond what is required for a11y purposes.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Philip Jägenstedt
    • Sam Goto
    Gerrit-Attention: Philip Jägenstedt <foo...@chromium.org>
    Gerrit-Attention: Sam Goto <go...@chromium.org>
    Gerrit-Comment-Date: Fri, 30 Jan 2026 19:40:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Philip Jägenstedt <foo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sam Goto (Gerrit)

    unread,
    Jan 30, 2026, 4:49:30 PM (8 hours ago) Jan 30
    to David Grogan, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Philip Jägenstedt, Christian Biesinger, chromium...@chromium.org, (Julie)Jeongeun Kim, Kevin Babbitt, mac-r...@chromium.org, asvitkine...@chromium.org, abigailbk...@google.com, bling-alchemy-eng+...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chromium-a...@chromium.org, dtseng...@chromium.org, extension...@chromium.org, francisjp...@google.com, ipc-securi...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, lucasrada...@google.com, moqati-team+chr...@google.com, nektar...@chromium.org, npm+...@chromium.org, yigu+...@chromium.org, yuzo+...@chromium.org
    Attention needed from David Grogan and Philip Jägenstedt

    Sam Goto added 1 comment

    Patchset-level comments
    Philip Jägenstedt . resolved

    dgrogan@ can you take a look? How should one go about picking the most appropriate mapping on each platform? I think this would be defined in https://w3c.github.io/html-aam/ but following the reference to https://developer.apple.com/documentation/appkit/nsaccessibility I can't find an obvious choice.

    David Grogan

    Yeah, there's nothing obvious to me either. Sam, when you're even kind of sure that you're going to introduce a new <login> element, file an issue on https://github.com/w3c/html-aam/issues/ asking for ARIA's guidance for mappings for this new element. (Are you already kind of sure? If so, go ahead and file.)

    There's also https://w3c.github.io/html-aam/#mapping_nodirect , which this CL might already abide by, honestly. (Not sure what comes out in the description --
    https://w3c.github.io/core-aam/#accessible-names-and-descriptions -- for login elements.) It's no big deal, for now, if it doesn't though.

    In the meantime, seems like Sam is just [ab]using chrome's axtree as a place for convenient access. That's fine. As long as that usage isn't going to require expanding the axtree's (or syncing) performance or behavior beyond what is required for a11y purposes.

    Sam Goto

    In the meantime, seems like Sam is just [ab]using chrome's axtree as a place for convenient access. That's fine.

    Yeah, I think that's exactly what I'm trying to do: using chrome's axtree (and hopefully not abusing it) for convenient access. If this is an abuse (and please, do feel free to point me another way!) with unintended consequences (e.g. messing up with screen readers) there are probably different ways that I can accomplish the same goal here (e.g. using the Annotated Content Proto for AI agents?).

    As long as that usage isn't going to require expanding the axtree's (or syncing) performance or behavior beyond what is required for a11y purposes.

    Yeah, I'm not sure if I can be a good judge of this, so do please LMK if that's the case.

    Specifically, I think it is early enough that I don't know if I can answer these questions:

     Sam, when you're even kind of sure that you're going to introduce a new <login> element, file an issue on https://github.com/w3c/html-aam/issues/ asking for ARIA's guidance for mappings for this new element. (Are you already kind of sure? If so, go ahead and file.)

    I think it is plausible that this <login> element will behave more like the <geolocation> element more than <search> or <main>, so I wanted to make sure that I have something that I can play with without cornering myself.

    Can you help me understand something? Will this CL actually have any affect on screen readers? Like, if a user runs into a website with a <login> element, with this CL patched in, will their user experience change in any shape or form?

    If so, I think this is probably not the right approach to this problem.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • David Grogan
    • Philip Jägenstedt
    Gerrit-Attention: David Grogan <dgr...@chromium.org>
    Gerrit-Comment-Date: Fri, 30 Jan 2026 21:49:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Philip Jägenstedt <foo...@chromium.org>
    Comment-In-Reply-To: David Grogan <dgr...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sam Goto (Gerrit)

    unread,
    Jan 30, 2026, 8:48:51 PM (4 hours ago) Jan 30
    to David Grogan, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, AI Code Reviewer, Philip Jägenstedt, Christian Biesinger, chromium...@chromium.org, (Julie)Jeongeun Kim, Kevin Babbitt, mac-r...@chromium.org, asvitkine...@chromium.org, abigailbk...@google.com, bling-alchemy-eng+...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, chrome-intell...@chromium.org, chrome-intelligence-te...@google.com, chromium-a...@chromium.org, dtseng...@chromium.org, extension...@chromium.org, francisjp...@google.com, ipc-securi...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, lucasrada...@google.com, moqati-team+chr...@google.com, nektar...@chromium.org, npm+...@chromium.org, yigu+...@chromium.org, yuzo+...@chromium.org
    Attention needed from David Grogan and Philip Jägenstedt

    Sam Goto added 1 comment

    Patchset-level comments
    Philip Jägenstedt . resolved

    dgrogan@ can you take a look? How should one go about picking the most appropriate mapping on each platform? I think this would be defined in https://w3c.github.io/html-aam/ but following the reference to https://developer.apple.com/documentation/appkit/nsaccessibility I can't find an obvious choice.

    David Grogan

    Yeah, there's nothing obvious to me either. Sam, when you're even kind of sure that you're going to introduce a new <login> element, file an issue on https://github.com/w3c/html-aam/issues/ asking for ARIA's guidance for mappings for this new element. (Are you already kind of sure? If so, go ahead and file.)

    There's also https://w3c.github.io/html-aam/#mapping_nodirect , which this CL might already abide by, honestly. (Not sure what comes out in the description --
    https://w3c.github.io/core-aam/#accessible-names-and-descriptions -- for login elements.) It's no big deal, for now, if it doesn't though.

    In the meantime, seems like Sam is just [ab]using chrome's axtree as a place for convenient access. That's fine. As long as that usage isn't going to require expanding the axtree's (or syncing) performance or behavior beyond what is required for a11y purposes.

    Sam Goto

    In the meantime, seems like Sam is just [ab]using chrome's axtree as a place for convenient access. That's fine.

    Yeah, I think that's exactly what I'm trying to do: using chrome's axtree (and hopefully not abusing it) for convenient access. If this is an abuse (and please, do feel free to point me another way!) with unintended consequences (e.g. messing up with screen readers) there are probably different ways that I can accomplish the same goal here (e.g. using the Annotated Content Proto for AI agents?).

    As long as that usage isn't going to require expanding the axtree's (or syncing) performance or behavior beyond what is required for a11y purposes.

    Yeah, I'm not sure if I can be a good judge of this, so do please LMK if that's the case.

    Specifically, I think it is early enough that I don't know if I can answer these questions:

     Sam, when you're even kind of sure that you're going to introduce a new <login> element, file an issue on https://github.com/w3c/html-aam/issues/ asking for ARIA's guidance for mappings for this new element. (Are you already kind of sure? If so, go ahead and file.)

    I think it is plausible that this <login> element will behave more like the <geolocation> element more than <search> or <main>, so I wanted to make sure that I have something that I can play with without cornering myself.

    Can you help me understand something? Will this CL actually have any affect on screen readers? Like, if a user runs into a website with a <login> element, with this CL patched in, will their user experience change in any shape or form?

    If so, I think this is probably not the right approach to this problem.

    Sam Goto

    I'm wondering, for example, if I'm better off calling rfh->ExecuteJavaScriptInIsolatedWorld() instead from the browser process at run time, rather than using the accessibility tree:

    https://chromium-review.googlesource.com/c/chromium/src/+/7536484

    WDYT?

    That seems a lot less invasive to the accessibility codebase and might allow me to satisfy my basic requirement to help agentic browsing to find these when they need it?

    WDYT?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • David Grogan
    • Philip Jägenstedt
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id949134c0c7a49a7e30ee1ba42e4a15191986869
    Gerrit-Change-Number: 7532994
    Gerrit-PatchSet: 6
    Gerrit-Owner: Sam Goto <go...@chromium.org>
    Gerrit-Reviewer: David Grogan <dgr...@chromium.org>
    Gerrit-Reviewer: Philip Jägenstedt <foo...@chromium.org>
    Gerrit-Reviewer: Sam Goto <go...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Christian Biesinger <cbies...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
    Gerrit-Attention: Philip Jägenstedt <foo...@chromium.org>
    Gerrit-Attention: David Grogan <dgr...@chromium.org>
    Gerrit-Comment-Date: Sat, 31 Jan 2026 01:48:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Philip Jägenstedt <foo...@chromium.org>
    Comment-In-Reply-To: David Grogan <dgr...@chromium.org>
    Comment-In-Reply-To: Sam Goto <go...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages