[iOS][apcv2] Add ARIA role extraction the iOS APC TreeWalker [chromium/src : main]

0 views
Skip to first unread message

Fikre Mengistu (Gerrit)

unread,
Mar 18, 2026, 6:19:32 PMMar 18
to Fikre Mengistu, Vincent Boisselle, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Vincent Boisselle

Fikre Mengistu voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Vincent Boisselle
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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
Gerrit-Change-Number: 7681175
Gerrit-PatchSet: 3
Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
Gerrit-Attention: Vincent Boisselle <vi...@google.com>
Gerrit-Comment-Date: Wed, 18 Mar 2026 22:19:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Vincent Boisselle (Gerrit)

unread,
Mar 20, 2026, 8:16:04 AMMar 20
to Fikre Mengistu, Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
Attention needed from Fikre Mengistu and Nicolas MacBeth

Vincent Boisselle added 6 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Vincent Boisselle . resolved

thanks! your help is greatly appreciated!

Commit Message
Line 13, Patchset 5 (Latest):
Vincent Boisselle . unresolved

We also do adjustments to annotated roles: more than 1 and handle the hidden category

File ios/chrome/browser/intelligence/proto_wrappers/resources/annotated_page_content_extraction.ts
Line 291, Patchset 5 (Latest):function getAnnotatedRoleForAriaRole(ariaRoleAttr: string):
Line 293, Patchset 5 (Latest): const roles = ariaRoleAttr.trim().split(/\s+/);
Vincent Boisselle . unresolved

Make this a constant, e.g. ARIAL_ROLE_DELIMITER

Line 1777, Patchset 3: const style = windowObj.getComputedStyle(domNode);
Vincent Boisselle . resolved

note: I think we could limit the calls to getComputedStyle by sharing the style across calls but I am not sure if we'd expect any performance gains from doing that since (1) that there is caching done internally for the computed style and (2) all the extraction is done in one single synced call where the layout won't be refreshed.

filled http://crbug.com/494180380 for that

Line 1792, Patchset 5 (Latest): annotatedRoles.push(roleFromAria);
Vincent Boisselle . unresolved

we could consider making this a set then make it an array before returning the results

Open in Gerrit

Related details

Attention is currently required from:
  • Fikre Mengistu
  • Nicolas MacBeth
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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
    Gerrit-Change-Number: 7681175
    Gerrit-PatchSet: 5
    Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
    Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
    Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
    Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
    Gerrit-Attention: Fikre Mengistu <fikrem...@chromium.org>
    Gerrit-Attention: Nicolas MacBeth <nicolas...@google.com>
    Gerrit-Comment-Date: Fri, 20 Mar 2026 12:15:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vincent Boisselle (Gerrit)

    unread,
    Mar 20, 2026, 8:19:48 AMMar 20
    to Fikre Mengistu, Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
    Attention needed from Fikre Mengistu and Nicolas MacBeth

    Vincent Boisselle added 1 comment

    Patchset-level comments
    Gerrit-Comment-Date: Fri, 20 Mar 2026 12:19:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nicolas MacBeth (Gerrit)

    unread,
    Mar 20, 2026, 2:05:44 PMMar 20
    to Fikre Mengistu, Vincent Boisselle, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
    Attention needed from Fikre Mengistu

    Nicolas MacBeth added 3 comments

    Patchset-level comments
    Nicolas MacBeth . resolved

    Thanks Fikre!!

    File ios/chrome/browser/intelligence/proto_wrappers/resources/annotated_page_content_extraction.ts
    Line 293, Patchset 5 (Latest): const roles = ariaRoleAttr.trim().split(/\s+/);
    Vincent Boisselle . unresolved

    Make this a constant, e.g. ARIAL_ROLE_DELIMITER

    Nicolas MacBeth

    ++ in the comment can we add what this regex looks for

    Line 1741, Patchset 5 (Latest): annotatedRoles: [],
    Nicolas MacBeth . unresolved

    do we want to throwaway the annotated roles in this case?

    can we make sure that with the annotated roles modifications we don't throw them away in other spots as well? thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Fikre Mengistu
    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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
    Gerrit-Change-Number: 7681175
    Gerrit-PatchSet: 5
    Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
    Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
    Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
    Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
    Gerrit-Attention: Fikre Mengistu <fikrem...@chromium.org>
    Gerrit-Comment-Date: Fri, 20 Mar 2026 18:05:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Vincent Boisselle <vi...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Fikre Mengistu (Gerrit)

    unread,
    Mar 24, 2026, 5:45:46 PM (12 days ago) Mar 24
    to Fikre Mengistu, Nicolas MacBeth, Vincent Boisselle, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
    Attention needed from Nicolas MacBeth and Vincent Boisselle

    Fikre Mengistu added 6 comments

    Patchset-level comments
    File-level comment, Patchset 5:
    Vincent Boisselle . resolved
    Fikre Mengistu

    Done

    Commit Message
    Line 13, Patchset 5:
    Vincent Boisselle . resolved

    We also do adjustments to annotated roles: more than 1 and handle the hidden category

    Fikre Mengistu

    Done

    File ios/chrome/browser/intelligence/proto_wrappers/resources/annotated_page_content_extraction.ts
    Line 291, Patchset 5:function getAnnotatedRoleForAriaRole(ariaRoleAttr: string):
    Vincent Boisselle . resolved
    Fikre Mengistu

    Although it looks like that, I don't believe they do. Their [AXObject::DetermineRawAriaRole](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/content_extraction/ai_page_content_agent.cc;drc=963dd5d56d0e95e1df13f86fa8a6f1eb62e47fa4;l=2313) function parses the role string and resolves it to a single ARIA role enum (it just picks the first valid one and ignores the rest).

    It runs through a series of independent if statements checking both the HTML tag and that single resolved ARIA role.

    Because every if block is evaluated, an element can accumulate multiple annotated roles, one from the aria role and others from the html tag, visibility, and paid content status. It does not pull multiple roles from the role attribute string itself.

    The current logic here achieves this exact same output for feature parity.

    Line 293, Patchset 5: const roles = ariaRoleAttr.trim().split(/\s+/);
    Vincent Boisselle . resolved

    Make this a constant, e.g. ARIAL_ROLE_DELIMITER

    Nicolas MacBeth

    ++ in the comment can we add what this regex looks for

    Fikre Mengistu

    Done

    Line 1741, Patchset 5: annotatedRoles: [],
    Nicolas MacBeth . resolved

    do we want to throwaway the annotated roles in this case?

    can we make sure that with the annotated roles modifications we don't throw them away in other spots as well? thanks!

    Fikre Mengistu

    They actually aren't thrown away. Right below this block (around line 1750), there's a check that re-assigns them: `contentNode.contentAttributes.annotatedRoles = annotatedRoles;`.
    However, I'll remove the empty `annotatedRoles: []` from the initialization block here so it's clearer.

    Line 1792, Patchset 5: annotatedRoles.push(roleFromAria);
    Vincent Boisselle . resolved

    we could consider making this a set then make it an array before returning the results

    Fikre Mengistu

    we use an `if (!annotatedRoles.includes(roleFromAria))` check. This mimics Blink's duplicate-prevention behavior without adding the overhead of converting `Sets` back and forth to `Arrays` for a list that will only ever hold up to 4 items.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nicolas MacBeth
    • Vincent Boisselle
    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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
      Gerrit-Change-Number: 7681175
      Gerrit-PatchSet: 10
      Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
      Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
      Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
      Gerrit-Attention: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Attention: Vincent Boisselle <vi...@google.com>
      Gerrit-Comment-Date: Tue, 24 Mar 2026 21:45:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Nicolas MacBeth <nicolas...@google.com>
      Comment-In-Reply-To: Vincent Boisselle <vi...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Nicolas MacBeth (Gerrit)

      unread,
      Mar 25, 2026, 12:35:45 PM (11 days ago) Mar 25
      to Fikre Mengistu, Vincent Boisselle, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
      Attention needed from Fikre Mengistu and Vincent Boisselle

      Nicolas MacBeth voted and added 3 comments

      Votes added by Nicolas MacBeth

      Code-Review+1

      3 comments

      Patchset-level comments
      File-level comment, Patchset 13 (Latest):
      Nicolas MacBeth . resolved

      thanks, this looks great!

      File ios/chrome/browser/intelligence/proto_wrappers/resources/annotated_page_content_extraction.ts
      Line 202, Patchset 13 (Latest):const ATTR_VALUE_ROLE_BANNER = 'banner';
      const ATTR_VALUE_ROLE_NAVIGATION = 'navigation';
      const ATTR_VALUE_ROLE_SEARCH = 'search';
      const ATTR_VALUE_ROLE_MAIN = 'main';
      Nicolas MacBeth . unresolved

      nit: I think these are already defined in other constants, should we consolidate?

      Line 390, Patchset 13 (Latest): case 'none':
      Nicolas MacBeth . unresolved

      nit: constant?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Fikre Mengistu
      • Vincent Boisselle
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement 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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
      Gerrit-Change-Number: 7681175
      Gerrit-PatchSet: 13
      Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
      Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
      Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
      Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
      Gerrit-Attention: Fikre Mengistu <fikrem...@chromium.org>
      Gerrit-Attention: Vincent Boisselle <vi...@google.com>
      Gerrit-Comment-Date: Wed, 25 Mar 2026 16:35:38 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Fikre Mengistu (Gerrit)

      unread,
      Mar 25, 2026, 1:52:57 PM (11 days ago) Mar 25
      to Fikre Mengistu, Nicolas MacBeth, Vincent Boisselle, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
      Attention needed from Vincent Boisselle

      Fikre Mengistu added 2 comments

      File ios/chrome/browser/intelligence/proto_wrappers/resources/annotated_page_content_extraction.ts
      Line 202, Patchset 13:const ATTR_VALUE_ROLE_BANNER = 'banner';

      const ATTR_VALUE_ROLE_NAVIGATION = 'navigation';
      const ATTR_VALUE_ROLE_SEARCH = 'search';
      const ATTR_VALUE_ROLE_MAIN = 'main';
      Nicolas MacBeth . resolved

      nit: I think these are already defined in other constants, should we consolidate?

      Fikre Mengistu

      Keeping the constants separate helps readability, so I think I'll keep it as is.

      Line 390, Patchset 13: case 'none':
      Nicolas MacBeth . resolved

      nit: constant?

      Fikre Mengistu

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Vincent Boisselle
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement 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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Gerrit-Change-Number: 7681175
        Gerrit-PatchSet: 14
        Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
        Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
        Gerrit-Attention: Vincent Boisselle <vi...@google.com>
        Gerrit-Comment-Date: Wed, 25 Mar 2026 17:52:52 +0000
        satisfied_requirement
        open
        diffy

        Vincent Boisselle (Gerrit)

        unread,
        Mar 30, 2026, 10:28:22 AM (6 days ago) Mar 30
        to Fikre Mengistu, Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org
        Attention needed from Fikre Mengistu

        Vincent Boisselle voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Fikre Mengistu
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement 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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Gerrit-Change-Number: 7681175
        Gerrit-PatchSet: 14
        Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
        Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
        Gerrit-Attention: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Comment-Date: Mon, 30 Mar 2026 14:28:17 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Fikre Mengistu (Gerrit)

        unread,
        Mar 30, 2026, 11:10:45 PM (6 days ago) Mar 30
        to Fikre Mengistu, Vincent Boisselle, Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

        Fikre Mengistu voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement 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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Gerrit-Change-Number: 7681175
        Gerrit-PatchSet: 14
        Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
        Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
        Gerrit-Comment-Date: Tue, 31 Mar 2026 03:10:40 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Fikre Mengistu (Gerrit)

        unread,
        Apr 1, 2026, 9:28:26 PM (4 days ago) Apr 1
        to Fikre Mengistu, Vincent Boisselle, Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

        Fikre Mengistu voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement 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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Gerrit-Change-Number: 7681175
        Gerrit-PatchSet: 17
        Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
        Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
        Gerrit-Comment-Date: Thu, 02 Apr 2026 01:28:15 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Fikre Mengistu (Gerrit)

        unread,
        Apr 3, 2026, 7:33:06 PM (2 days ago) Apr 3
        to Fikre Mengistu, Vincent Boisselle, Nicolas MacBeth, Chromium LUCI CQ, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

        Fikre Mengistu voted Commit-Queue+2

        Commit-Queue+2
        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement 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: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Gerrit-Change-Number: 7681175
        Gerrit-PatchSet: 18
        Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
        Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
        Gerrit-Comment-Date: Fri, 03 Apr 2026 23:32:57 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Apr 3, 2026, 8:22:39 PM (2 days ago) Apr 3
        to Fikre Mengistu, Vincent Boisselle, Nicolas MacBeth, chromium...@chromium.org, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

        Chromium LUCI CQ submitted the change with unreviewed changes

        Unreviewed changes

        14 is the latest approved patch-set.
        The change was submitted with unreviewed changes in the following files:

        ```
        The name of the file: ios/chrome/browser/intelligence/proto_wrappers/resources/annotated_page_content_extraction.ts
        Insertions: 9, Deletions: 2.

        The diff is too large to show. Please review the diff.
        ```
        ```
        The name of the file: ios/chrome/browser/intelligence/proto_wrappers/page_context_wrapper_unittest.mm
        Insertions: 58, Deletions: 0.

        The diff is too large to show. Please review the diff.
        ```
        ```
        The name of the file: ios/chrome/browser/intelligence/proto_wrappers/page_context_extractor_java_script_feature_unittest.mm
        Insertions: 116, Deletions: 32.

        The diff is too large to show. Please review the diff.
        ```

        Change information

        Commit message:
        [iOS][apcv2] Add ARIA role extraction the iOS APC TreeWalker

        - Updated the iOS APC extractor to support ARIA roles and
        `content-visibility: hidden` styles.
        - Adjusted annotated roles logic to support accumulating multiple
        roles per element (e.g., combining tag-based roles, ARIA roles,
        and the hidden category) to match Blink's exact behavior.
        - Added explicit mapping from raw ARIA roles to the `AXRole` proto
        enum when actionable mode is enabled.
        - Refactored structure so that role extraction is only done once. Roles are now calculated early and passed down the tree,
        eliminating redundant DOM queries during generic container checks.
        Bug: 475243330
        Change-Id: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Reviewed-by: Vincent Boisselle <vi...@google.com>
        Commit-Queue: Fikre Mengistu <fikrem...@chromium.org>
        Reviewed-by: Nicolas MacBeth <nicolas...@google.com>
        Cr-Commit-Position: refs/heads/main@{#1610038}
        Files:
        Change size: L
        Delta: 5 files changed, 472 insertions(+), 41 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Nicolas MacBeth, +1 by Vincent Boisselle
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I48df12fbe17d38e0ab650eb1df7a5c708c4676ae
        Gerrit-Change-Number: 7681175
        Gerrit-PatchSet: 19
        Gerrit-Owner: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Fikre Mengistu <fikrem...@chromium.org>
        Gerrit-Reviewer: Nicolas MacBeth <nicolas...@google.com>
        Gerrit-Reviewer: Vincent Boisselle <vi...@google.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages