Do not send DOM model to renderer on model update [chromium/src : main]

0 views
Skip to first unread message

Seung Jae Lim (Gerrit)

unread,
Dec 16, 2025, 11:10:18 AM12/16/25
to Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
Attention needed from Xinghui Lu

Seung Jae Lim added 1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Seung Jae Lim . resolved

Hi @xing...@chromium.org, would you be able to take a look? Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Xinghui Lu
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: I0928964a4c0f64f1171ac30e572dc4319a78918b
Gerrit-Change-Number: 7247699
Gerrit-PatchSet: 8
Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Xinghui Lu <xing...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Dec 2025 16:10:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Xinghui Lu (Gerrit)

unread,
Dec 16, 2025, 1:21:29 PM12/16/25
to Seung Jae Lim, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
Attention needed from Seung Jae Lim

Xinghui Lu voted and added 4 comments

Votes added by Xinghui Lu

Code-Review+1

4 comments

Patchset-level comments
File-level comment, Patchset 9 (Latest):
Xinghui Lu . resolved

LGTM % some questions. Thanks Andy!

File components/safe_browsing/content/browser/client_side_phishing_model.h
Line 192, Patchset 9 (Latest): base::MappedReadOnlyRegion mapped_region_
Xinghui Lu . unresolved

We might be able to get one step further by not copying the model to `mapped_region_` to save more memory. What's the plan for this?

File components/safe_browsing/content/browser/client_side_phishing_model.cc
Line 392, Patchset 9 (Latest): // version. Once the metadata has been migrated to internal
// services, the fields will be derived through that instead of the
Xinghui Lu . unresolved

I don't understand what internal services mean. Could you elaborate on this?

File components/safe_browsing/content/renderer/phishing_classifier/scorer.cc
Line 467, Patchset 9 (Latest):std::unique_ptr<Scorer> Scorer::Create(base::File visual_tflite_model) {
Xinghui Lu . unresolved

Nit: I think it is less error-prone to pass in the width and height explicitly in this function rather than relying on external callers to call SetClassificationDimensions

Open in Gerrit

Related details

Attention is currently required from:
  • Seung Jae Lim
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
    Gerrit-Change-Number: 7247699
    Gerrit-PatchSet: 9
    Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
    Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
    Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Seung Jae Lim <andy...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Dec 2025 18:21:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Seung Jae Lim (Gerrit)

    unread,
    Dec 16, 2025, 4:17:46 PM12/16/25
    to Chromium IPC Reviews, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
    Attention needed from Chromium IPC Reviews

    Seung Jae Lim voted and added 4 comments

    Votes added by Seung Jae Lim

    Commit-Queue+1

    4 comments

    Patchset-level comments
    Seung Jae Lim . resolved

    Adding Chromium IPC reviewer for safe_browsing.mojom change.

    File components/safe_browsing/content/browser/client_side_phishing_model.h
    Line 192, Patchset 9: base::MappedReadOnlyRegion mapped_region_
    Xinghui Lu . resolved

    We might be able to get one step further by not copying the model to `mapped_region_` to save more memory. What's the plan for this?

    Seung Jae Lim

    Yes, this will be part 3 of the deprecation where we no longer rely on the flatbuffer model. Sadly, we still need it as part of this change in order to retrieve the thresholds for image classification, and dimensions for embedding and classification.

    File components/safe_browsing/content/browser/client_side_phishing_model.cc
    Line 392, Patchset 9: // version. Once the metadata has been migrated to internal

    // services, the fields will be derived through that instead of the
    Xinghui Lu . resolved

    I don't understand what internal services mean. Could you elaborate on this?

    Seung Jae Lim

    This is for the internal service that distributes the model, aka optimization guide. I can clarify that here.

    File components/safe_browsing/content/renderer/phishing_classifier/scorer.cc
    Line 467, Patchset 9:std::unique_ptr<Scorer> Scorer::Create(base::File visual_tflite_model) {
    Xinghui Lu . resolved

    Nit: I think it is less error-prone to pass in the width and height explicitly in this function rather than relying on external callers to call SetClassificationDimensions

    Seung Jae Lim

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Chromium IPC Reviews
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
      Gerrit-Change-Number: 7247699
      Gerrit-PatchSet: 10
      Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
      Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
      Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-Comment-Date: Tue, 16 Dec 2025 21:17:34 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Xinghui Lu <xing...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      gwsq (Gerrit)

      unread,
      Dec 16, 2025, 4:19:31 PM12/16/25
      to Seung Jae Lim, Chromium IPC Reviews, Giovanni Ortuno Urquidi, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
      Attention needed from Giovanni Ortuno Urquidi

      Message from gwsq

      From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
      IPC: ort...@chromium.org

      📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

      IPC reviewer(s): ort...@chromium.org


      Reviewer source(s):
      ort...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Giovanni Ortuno Urquidi
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
      Gerrit-Change-Number: 7247699
      Gerrit-PatchSet: 10
      Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
      Gerrit-Reviewer: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
      Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Giovanni Ortuno Urquidi <ort...@chromium.org>
      Gerrit-Comment-Date: Tue, 16 Dec 2025 21:19:21 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      gwsq (Gerrit)

      unread,
      Dec 17, 2025, 12:16:51 PM12/17/25
      to Seung Jae Lim, Chromium IPC Reviews, Dominic Farolino, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
      Attention needed from Dominic Farolino

      Message from gwsq

      From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
      IPC: d...@chromium.org

      📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

      IPC reviewer(s): d...@chromium.org


      Reviewer source(s):
      d...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Dominic Farolino
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
      Gerrit-Change-Number: 7247699
      Gerrit-PatchSet: 10
      Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
      Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
      Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
      Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Dominic Farolino <d...@chromium.org>
      Gerrit-Comment-Date: Wed, 17 Dec 2025 17:16:39 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Dominic Farolino (Gerrit)

      unread,
      Dec 18, 2025, 10:32:01 AM12/18/25
      to Seung Jae Lim, Chromium IPC Reviews, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
      Attention needed from Seung Jae Lim

      Dominic Farolino added 1 comment

      Commit Message
      Line 8, Patchset 10 (Latest):
      Dominic Farolino . unresolved

      Please add lots more documentation about what this CL does and how it does it, to help me review.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Seung Jae Lim
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
        Gerrit-Change-Number: 7247699
        Gerrit-PatchSet: 10
        Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
        Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
        Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
        Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: gwsq
        Gerrit-Attention: Seung Jae Lim <andy...@chromium.org>
        Gerrit-Comment-Date: Thu, 18 Dec 2025 15:31:51 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Seung Jae Lim (Gerrit)

        unread,
        Dec 18, 2025, 11:03:49 AM12/18/25
        to Chromium IPC Reviews, Dominic Farolino, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
        Attention needed from Dominic Farolino

        Seung Jae Lim added 1 comment

        Commit Message
        Line 8, Patchset 10:
        Dominic Farolino . resolved

        Please add lots more documentation about what this CL does and how it does it, to help me review.

        Seung Jae Lim

        Done. Thank you for the suggestion!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dominic Farolino
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
          Gerrit-Change-Number: 7247699
          Gerrit-PatchSet: 11
          Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
          Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Dominic Farolino <d...@chromium.org>
          Gerrit-Comment-Date: Thu, 18 Dec 2025 16:03:23 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Dominic Farolino <d...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Dominic Farolino (Gerrit)

          unread,
          Jan 6, 2026, 3:24:14 PM (7 days ago) Jan 6
          to Seung Jae Lim, Code Review Nudger, Chromium IPC Reviews, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
          Attention needed from Seung Jae Lim

          Dominic Farolino added 1 comment

          Patchset-level comments
          File-level comment, Patchset 11 (Latest):
          Dominic Farolino . resolved

          I am very sorry, but I just will not have any time to review this change this week, I am very swamped trying to catch up on a number of time-sensitive things. you might want to find another security reviewer for this. Sorry, again.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Seung Jae Lim
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
          Gerrit-Change-Number: 7247699
          Gerrit-PatchSet: 11
          Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
          Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Comment-Date: Tue, 06 Jan 2026 20:24:07 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Seung Jae Lim (Gerrit)

          unread,
          Jan 12, 2026, 11:07:54 AM (19 hours ago) Jan 12
          to Chromium IPC Reviews, Code Review Nudger, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
          Attention needed from Chromium IPC Reviews

          Seung Jae Lim voted and added 2 comments

          Votes added by Seung Jae Lim

          Commit-Queue+1

          2 comments

          Patchset-level comments
          Dominic Farolino . resolved

          I am very sorry, but I just will not have any time to review this change this week, I am very swamped trying to catch up on a number of time-sensitive things. you might want to find another security reviewer for this. Sorry, again.

          Seung Jae Lim

          No worries, thank you for letting me know!

          Seung Jae Lim . resolved

          Hi @chrome-ip...@google.com, would you be able to take a look at `safe_browsing.mojom`? Thanks!

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Chromium IPC Reviews
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
          Gerrit-Change-Number: 7247699
          Gerrit-PatchSet: 12
          Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-Comment-Date: Mon, 12 Jan 2026 16:07:44 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Dominic Farolino <d...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          gwsq (Gerrit)

          unread,
          Jan 12, 2026, 11:14:45 AM (19 hours ago) Jan 12
          to Seung Jae Lim, Chromium IPC Reviews, Code Review Nudger, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
          Attention needed from Joe Mason

          Message from gwsq

          From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
          IPC: joenot...@google.com

          📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

          IPC reviewer(s): joenot...@google.com


          Reviewer source(s):
          joenot...@google.com is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Joe Mason
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
          Gerrit-Change-Number: 7247699
          Gerrit-PatchSet: 12
          Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Joe Mason <joenot...@google.com>
          Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
          Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: gwsq
          Gerrit-Attention: Joe Mason <joenot...@google.com>
          Gerrit-Comment-Date: Mon, 12 Jan 2026 16:14:07 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Joe Mason (Gerrit)

          unread,
          Jan 12, 2026, 2:28:10 PM (15 hours ago) Jan 12
          to Seung Jae Lim, Chromium IPC Reviews, Code Review Nudger, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
          Attention needed from Seung Jae Lim

          Joe Mason added 5 comments

          File components/safe_browsing/content/common/safe_browsing.mojom
          Line 195, Patchset 12 (Latest): // embedding model is converted from a TfLite file to a string in the browser
          Joe Mason . unresolved

          Can you make this comment more clear? I can't tell when the conversion to a string happens, or how it affects this method, since none of the arguments are strings. Is the model converted to a string and then written to a file, and this method gets a handle to the file?

          (I see the comment is copied from SetImageEmbeddingAndPhishingFlatBufferModel, and it doesn't make much sense to me there either. Is it out of date?)

          Line 218, Patchset 12 (Latest): // match. Input width and height for image embedding are included in the
          Joe Mason . unresolved

          Nit: can you document what happens if the versions don't match?

          File components/safe_browsing/content/renderer/phishing_classifier/phishing_model_setter_impl.cc
          Line 149, Patchset 12 (Latest): scorer->AttachImageEmbeddingModel(image_embedding_input_width,
          Joe Mason . unresolved

          The mojo comment says that this method attaches the image embedding model IF it matches the version of the scorer. But I can't find any version check. Is the check done on the browser side? (That's safer in any case, since a compromised renderer could lie about the model version.)

          File components/safe_browsing/content/renderer/phishing_classifier/scorer.cc
          Line 467, Patchset 12 (Latest):std::unique_ptr<Scorer> Scorer::Create(int classification_input_width,
          Joe Mason . unresolved

          These width/height parameters aren't used in the two new Create functions. Is that intentional?

          Line 501, Patchset 12 (Latest): if (scorer && !scorer->image_embedding_model_.Initialize(
          Joe Mason . unresolved

          Minor nit: I don't see any way `scorer` can be null, since if the earlier initialize fails it early returns.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Seung Jae Lim
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
            Gerrit-Change-Number: 7247699
            Gerrit-PatchSet: 12
            Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
            Gerrit-Reviewer: Joe Mason <joenot...@google.com>
            Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
            Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
            Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
            Gerrit-CC: gwsq
            Gerrit-Attention: Seung Jae Lim <andy...@chromium.org>
            Gerrit-Comment-Date: Mon, 12 Jan 2026 19:27:58 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Seung Jae Lim (Gerrit)

            unread,
            Jan 12, 2026, 4:48:43 PM (13 hours ago) Jan 12
            to Chromium IPC Reviews, Code Review Nudger, Xinghui Lu, Chromium Metrics Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, asvitkine...@chromium.org, andysjl...@chromium.org, druber...@chromium.org, ipc-securi...@chromium.org, nwoked...@chromium.org, vakh+safe_br...@chromium.org, xinghui...@chromium.org, zackha...@chromium.org
            Attention needed from Joe Mason

            Seung Jae Lim voted and added 5 comments

            Votes added by Seung Jae Lim

            Commit-Queue+1

            5 comments

            File components/safe_browsing/content/common/safe_browsing.mojom
            Line 195, Patchset 12: // embedding model is converted from a TfLite file to a string in the browser
            Joe Mason . unresolved

            Can you make this comment more clear? I can't tell when the conversion to a string happens, or how it affects this method, since none of the arguments are strings. Is the model converted to a string and then written to a file, and this method gets a handle to the file?

            (I see the comment is copied from SetImageEmbeddingAndPhishingFlatBufferModel, and it doesn't make much sense to me there either. Is it out of date?)

            Seung Jae Lim

            Good point, and yes I did copy some sections from the comment from the other function. We have never converted this in the browser process, so I can't recall why this comment was stated this way, so it's removed. Changed the original as well as the new one. Please let me know how it looks now.

            Line 218, Patchset 12: // match. Input width and height for image embedding are included in the
            Joe Mason . resolved

            Nit: can you document what happens if the versions don't match?

            Seung Jae Lim

            Done. I added a comment moreso that this function should not be called if the versions don't match.

            File components/safe_browsing/content/renderer/phishing_classifier/phishing_model_setter_impl.cc
            Line 149, Patchset 12: scorer->AttachImageEmbeddingModel(image_embedding_input_width,
            Joe Mason . unresolved

            The mojo comment says that this method attaches the image embedding model IF it matches the version of the scorer. But I can't find any version check. Is the check done on the browser side? (That's safer in any case, since a compromised renderer could lie about the model version.)

            File components/safe_browsing/content/renderer/phishing_classifier/scorer.cc
            Line 467, Patchset 12:std::unique_ptr<Scorer> Scorer::Create(int classification_input_width,
            Joe Mason . resolved

            These width/height parameters aren't used in the two new Create functions. Is that intentional?

            Seung Jae Lim

            Great find. Thank you so much for this catch!

            Line 501, Patchset 12: if (scorer && !scorer->image_embedding_model_.Initialize(
            Joe Mason . resolved

            Minor nit: I don't see any way `scorer` can be null, since if the earlier initialize fails it early returns.

            Seung Jae Lim

            Good point! Removed this.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Joe Mason
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not 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: I0928964a4c0f64f1171ac30e572dc4319a78918b
            Gerrit-Change-Number: 7247699
            Gerrit-PatchSet: 13
            Gerrit-Owner: Seung Jae Lim <andy...@chromium.org>
            Gerrit-Reviewer: Joe Mason <joenot...@google.com>
            Gerrit-Reviewer: Seung Jae Lim <andy...@chromium.org>
            Gerrit-Reviewer: Xinghui Lu <xing...@chromium.org>
            Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
            Gerrit-CC: gwsq
            Gerrit-Attention: Joe Mason <joenot...@google.com>
            Gerrit-Comment-Date: Mon, 12 Jan 2026 21:48:31 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Joe Mason <joenot...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages