Add network-efficiency-guardrails asset size checks [chromium/src : main]

0 views
Skip to first unread message

Luis Flores (Gerrit)

unread,
Nov 19, 2025, 4:57:25 PMNov 19
to Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
Attention needed from Liang Zhao and Viktoriya Bryhider

Luis Flores added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Luis Flores . resolved

Adding basic checks for resource sizes, would appreciate your feedback!

Open in Gerrit

Related details

Attention is currently required from:
  • Liang Zhao
  • Viktoriya Bryhider
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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
Gerrit-Change-Number: 7173352
Gerrit-PatchSet: 1
Gerrit-Owner: Luis Flores <luf...@microsoft.com>
Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
Gerrit-Comment-Date: Wed, 19 Nov 2025 21:57:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Liang Zhao (Gerrit)

unread,
Nov 19, 2025, 5:39:38 PMNov 19
to Luis Flores, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
Attention needed from Luis Flores and Viktoriya Bryhider

Liang Zhao added 2 comments

File third_party/blink/renderer/core/loader/frame_fetch_context.cc
Line 596, Patchset 1 (Latest): 1024 * 1024) {
Liang Zhao . unresolved

Can we define these limit numbers in a more visible place? We might actually need it for tests.
Might want to also include this size limit in CL description.

File third_party/blink/renderer/platform/loader/fetch/fetch_context.h
Line 166, Patchset 1 (Latest): virtual void CheckGuardrailsPolicyForLargeAsset() {}
Liang Zhao . unresolved

Please add comments to describe what the function does. The name of the function doesn't really tell me what it does. Is there a better name?

Open in Gerrit

Related details

Attention is currently required from:
  • Luis Flores
  • Viktoriya Bryhider
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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
    Gerrit-Change-Number: 7173352
    Gerrit-PatchSet: 1
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
    Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-Comment-Date: Wed, 19 Nov 2025 22:39:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Viktoriya Bryhider (Gerrit)

    unread,
    Nov 19, 2025, 8:14:56 PMNov 19
    to Luis Flores, Liang Zhao, chromium...@chromium.org, Nate Chapin, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Luis Flores

    Viktoriya Bryhider added 1 comment

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 598, Patchset 1 (Latest): mojom::blink::DocumentPolicyFeature::kNetworkEfficiencyGuardrails,
    Viktoriya Bryhider . unresolved

    CheckGuardrailsPolicyForRequest is called before check for response.WasFetchedViaServiceWorker() - do we still want/need to report policy violation if it was SW/cache(?) or some other way to get image without going to the network?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Luis Flores
    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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
    Gerrit-Change-Number: 7173352
    Gerrit-PatchSet: 1
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
    Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Comment-Date: Thu, 20 Nov 2025 01:14:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Luis Flores (Gerrit)

    unread,
    Dec 2, 2025, 8:59:17 PMDec 2
    to Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Liang Zhao and Viktoriya Bryhider

    Luis Flores added 3 comments

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 596, Patchset 1: 1024 * 1024) {
    Liang Zhao . unresolved

    Can we define these limit numbers in a more visible place? We might actually need it for tests.
    Might want to also include this size limit in CL description.

    Luis Flores

    Moved them to frame_fetch_context.h

    Line 598, Patchset 1: mojom::blink::DocumentPolicyFeature::kNetworkEfficiencyGuardrails,
    Viktoriya Bryhider . unresolved

    CheckGuardrailsPolicyForRequest is called before check for response.WasFetchedViaServiceWorker() - do we still want/need to report policy violation if it was SW/cache(?) or some other way to get image without going to the network?

    Luis Flores

    This isn't in the doc currently, but given the purpose of the policy (to flag perf costs), I think it should only be reported when we actually hit the network. I've looked at ResourceLoader and my understanding is we'll currently intercept all responses so I'll add checks for network cases only.

    File third_party/blink/renderer/platform/loader/fetch/fetch_context.h
    Line 166, Patchset 1: virtual void CheckGuardrailsPolicyForLargeAsset() {}
    Liang Zhao . unresolved

    Please add comments to describe what the function does. The name of the function doesn't really tell me what it does. Is there a better name?

    Luis Flores

    Renamed to CheckGuardrailsPolicyForAssetSize and added a comment in fetch_context.h

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Liang Zhao
    • Viktoriya Bryhider
    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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
    Gerrit-Change-Number: 7173352
    Gerrit-PatchSet: 3
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
    Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
    Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-Comment-Date: Wed, 03 Dec 2025 01:59:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Liang Zhao <lz...@microsoft.com>
    Comment-In-Reply-To: Viktoriya Bryhider <vbry...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Viktoriya Bryhider (Gerrit)

    unread,
    Dec 4, 2025, 2:03:12 PM (12 days ago) Dec 4
    to Luis Flores, Liang Zhao, chromium...@chromium.org, Nate Chapin, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Liang Zhao and Luis Flores

    Viktoriya Bryhider added 3 comments

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 74, Patchset 3 (Latest): static constexpr size_t kGuardrailsLargeDataThreshold = 100 * 1024; // 100kB
    Viktoriya Bryhider . unresolved

    nit(?) I have seen Units added in the name of the const(kSlowDeserializationSizeThresholdBytes for example) - may consider adding it here, like kGuardrailsLargeDataThresholdBytes.

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 590, Patchset 3 (Latest): !response.NetworkAccessed()) {
    Viktoriya Bryhider . unresolved

    May be add comment, why `!response.NetworkAccessed()` check is not enough. Can it be that NetworkAccessed and WasCached will be both true?

    File third_party/blink/renderer/core/loader/frame_fetch_context_test.cc
    Line 1820, Patchset 3 (Latest): bool expect_violation;
    Viktoriya Bryhider . unresolved

    add default value here

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Liang Zhao
    • Luis Flores
    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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
    Gerrit-Change-Number: 7173352
    Gerrit-PatchSet: 3
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
    Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
    Gerrit-Comment-Date: Thu, 04 Dec 2025 19:03:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Luis Flores (Gerrit)

    unread,
    Dec 11, 2025, 3:58:53 AM (6 days ago) Dec 11
    to AyeAye, Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Liang Zhao and Viktoriya Bryhider

    Luis Flores added 4 comments

    Patchset-level comments
    File-level comment, Patchset 6 (Latest):
    Luis Flores . resolved

    Addressing feedback and adding last impl pieces.

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 74, Patchset 3: static constexpr size_t kGuardrailsLargeDataThreshold = 100 * 1024; // 100kB
    Viktoriya Bryhider . unresolved

    nit(?) I have seen Units added in the name of the const(kSlowDeserializationSizeThresholdBytes for example) - may consider adding it here, like kGuardrailsLargeDataThresholdBytes.

    Luis Flores

    Updated.

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 590, Patchset 3: !response.NetworkAccessed()) {
    Viktoriya Bryhider . unresolved

    May be add comment, why `!response.NetworkAccessed()` check is not enough. Can it be that NetworkAccessed and WasCached will be both true?

    Luis Flores

    Updated.

    File third_party/blink/renderer/core/loader/frame_fetch_context_test.cc
    Line 1820, Patchset 3: bool expect_violation;
    Viktoriya Bryhider . unresolved

    add default value here

    Luis Flores

    Added.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Liang Zhao
    • Viktoriya Bryhider
    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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
    Gerrit-Change-Number: 7173352
    Gerrit-PatchSet: 6
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
    Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
    Gerrit-Comment-Date: Thu, 11 Dec 2025 08:58:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Viktoriya Bryhider <vbry...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Liang Zhao (Gerrit)

    unread,
    Dec 11, 2025, 2:05:12 PM (5 days ago) Dec 11
    to Luis Flores, Chromium LUCI CQ, AyeAye, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Luis Flores and Viktoriya Bryhider

    Liang Zhao added 1 comment

    File third_party/blink/renderer/core/frame/local_dom_window.cc
    Line 2743, Patchset 6 (Latest): bool is_enforced_policy =
    Liang Zhao . unresolved

    would has_enforced_policy a better name?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Luis Flores
    • Viktoriya Bryhider
    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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
    Gerrit-Change-Number: 7173352
    Gerrit-PatchSet: 6
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
    Gerrit-Comment-Date: Thu, 11 Dec 2025 19:05:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Luis Flores (Gerrit)

    unread,
    Dec 11, 2025, 4:26:58 PM (5 days ago) Dec 11
    to Takashi Toyoshima, Mason Freed, Chromium LUCI CQ, AyeAye, Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Liang Zhao, Mason Freed, Takashi Toyoshima and Viktoriya Bryhider

    Luis Flores added 8 comments

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    Luis Flores . resolved

    Adding resource size check to network-efficiency-guardrails Document Policy, per https://docs.google.com/document/d/1gS1p2poGx_zvUKeYg-py_fHGU-GVHmm75cQSZNGglig

    masonf@ for execution_context/local_dom_window
    toyoshim@ for loader

    File third_party/blink/renderer/core/frame/local_dom_window.cc
    Line 2743, Patchset 6: bool is_enforced_policy =
    Liang Zhao . resolved

    would has_enforced_policy a better name?

    Luis Flores

    Renamed.

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 74, Patchset 3: static constexpr size_t kGuardrailsLargeDataThreshold = 100 * 1024; // 100kB
    Viktoriya Bryhider . resolved

    nit(?) I have seen Units added in the name of the const(kSlowDeserializationSizeThresholdBytes for example) - may consider adding it here, like kGuardrailsLargeDataThresholdBytes.

    Luis Flores

    Updated.

    Luis Flores

    Marked as resolved.

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 590, Patchset 3: !response.NetworkAccessed()) {
    Viktoriya Bryhider . resolved

    May be add comment, why `!response.NetworkAccessed()` check is not enough. Can it be that NetworkAccessed and WasCached will be both true?

    Luis Flores

    Updated.

    Luis Flores

    Marked as resolved.

    Line 596, Patchset 1: 1024 * 1024) {
    Liang Zhao . resolved

    Can we define these limit numbers in a more visible place? We might actually need it for tests.
    Might want to also include this size limit in CL description.

    Luis Flores

    Moved them to frame_fetch_context.h

    Luis Flores

    Moved to local_dom_window.h, where they're used.

    Line 598, Patchset 1: mojom::blink::DocumentPolicyFeature::kNetworkEfficiencyGuardrails,
    Viktoriya Bryhider . resolved

    CheckGuardrailsPolicyForRequest is called before check for response.WasFetchedViaServiceWorker() - do we still want/need to report policy violation if it was SW/cache(?) or some other way to get image without going to the network?

    Luis Flores

    This isn't in the doc currently, but given the purpose of the policy (to flag perf costs), I think it should only be reported when we actually hit the network. I've looked at ResourceLoader and my understanding is we'll currently intercept all responses so I'll add checks for network cases only.

    Luis Flores

    Marked as resolved.

    File third_party/blink/renderer/core/loader/frame_fetch_context_test.cc
    Line 1820, Patchset 3: bool expect_violation;
    Viktoriya Bryhider . resolved

    add default value here

    Luis Flores

    Added.

    Luis Flores

    Marked as resolved.

    File third_party/blink/renderer/platform/loader/fetch/fetch_context.h
    Line 166, Patchset 1: virtual void CheckGuardrailsPolicyForLargeAsset() {}
    Liang Zhao . resolved

    Please add comments to describe what the function does. The name of the function doesn't really tell me what it does. Is there a better name?

    Luis Flores

    Renamed to CheckGuardrailsPolicyForAssetSize and added a comment in fetch_context.h

    Luis Flores

    Marked as resolved.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Liang Zhao
    • Mason Freed
    • Takashi Toyoshima
    • Viktoriya Bryhider
    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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
      Gerrit-Change-Number: 7173352
      Gerrit-PatchSet: 7
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
      Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-Comment-Date: Thu, 11 Dec 2025 21:26:47 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Luis Flores <luf...@microsoft.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mason Freed (Gerrit)

      unread,
      Dec 15, 2025, 1:47:59 PM (2 days ago) Dec 15
      to Luis Flores, Takashi Toyoshima, Chromium LUCI CQ, AyeAye, Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
      Attention needed from Liang Zhao, Luis Flores, Takashi Toyoshima and Viktoriya Bryhider

      Mason Freed voted and added 3 comments

      Votes added by Mason Freed

      Code-Review+1

      3 comments

      Patchset-level comments
      File-level comment, Patchset 11 (Latest):
      Mason Freed . resolved

      execution_context/local_dom_window LGTM

      File third_party/blink/renderer/core/frame/local_dom_window.h
      Line 123, Patchset 11 (Latest): // Make those const public for testing purpose.
      Mason Freed . unresolved

      nit: `These are` rather than `Make those`

      File third_party/blink/renderer/core/frame/local_dom_window.cc
      Line 2719, Patchset 11 (Latest): if (bytes < kGuardrailsLargeDataThresholdBytes) {
      Mason Freed . unresolved

      `<=` ?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Liang Zhao
      • Luis Flores
      • Takashi Toyoshima
      • Viktoriya Bryhider
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
      Gerrit-Change-Number: 7173352
      Gerrit-PatchSet: 11
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Attention: Luis Flores <luf...@microsoft.com>
      Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
      Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-Comment-Date: Mon, 15 Dec 2025 18:47:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Luis Flores (Gerrit)

      unread,
      Dec 15, 2025, 5:27:31 PM (2 days ago) Dec 15
      to Mason Freed, Takashi Toyoshima, Chromium LUCI CQ, AyeAye, Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
      Attention needed from Liang Zhao, Mason Freed, Takashi Toyoshima and Viktoriya Bryhider

      Luis Flores added 3 comments

      Patchset-level comments
      File-level comment, Patchset 12 (Latest):
      Luis Flores . resolved

      Addressed comments. Thanks!

      File third_party/blink/renderer/core/frame/local_dom_window.h
      Line 123, Patchset 11: // Make those const public for testing purpose.
      Mason Freed . unresolved

      nit: `These are` rather than `Make those`

      Luis Flores

      Updated.

      File third_party/blink/renderer/core/frame/local_dom_window.cc
      Line 2719, Patchset 11: if (bytes < kGuardrailsLargeDataThresholdBytes) {
      Mason Freed . unresolved

      `<=` ?

      Luis Flores

      Updated and added tests at the boundary. Thanks!

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Liang Zhao
      • Mason Freed
      • Takashi Toyoshima
      • Viktoriya Bryhider
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
      Gerrit-Change-Number: 7173352
      Gerrit-PatchSet: 12
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
      Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-Comment-Date: Mon, 15 Dec 2025 22:27:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Luis Flores (Gerrit)

      unread,
      Dec 15, 2025, 8:16:22 PM (2 days ago) Dec 15
      to Mason Freed, Takashi Toyoshima, Chromium LUCI CQ, AyeAye, Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
      Attention needed from Liang Zhao, Mason Freed, Takashi Toyoshima and Viktoriya Bryhider

      Luis Flores added 1 comment

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Liang Zhao
      • Mason Freed
      • Takashi Toyoshima
      • Viktoriya Bryhider
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
      Gerrit-Change-Number: 7173352
      Gerrit-PatchSet: 13
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
      Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
      Gerrit-Comment-Date: Tue, 16 Dec 2025 01:16:12 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mason Freed (Gerrit)

      unread,
      Dec 16, 2025, 7:01:18 PM (6 hours ago) Dec 16
      to Luis Flores, Takashi Toyoshima, Chromium LUCI CQ, AyeAye, Liang Zhao, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
      Attention needed from Liang Zhao, Luis Flores, Takashi Toyoshima and Viktoriya Bryhider

      Mason Freed voted and added 3 comments

      Votes added by Mason Freed

      Code-Review+1

      3 comments

      Patchset-level comments
      File-level comment, Patchset 14 (Latest):
      Mason Freed . resolved

      execution_context/local_dom_window still LGTM

      File third_party/blink/renderer/core/frame/local_dom_window.h
      Line 123, Patchset 11: // Make those const public for testing purpose.
      Mason Freed . resolved

      nit: `These are` rather than `Make those`

      Luis Flores

      Updated.

      Mason Freed

      Done

      File third_party/blink/renderer/core/frame/local_dom_window.cc
      Line 2719, Patchset 11: if (bytes < kGuardrailsLargeDataThresholdBytes) {
      Mason Freed . resolved

      `<=` ?

      Luis Flores

      Updated and added tests at the boundary. Thanks!

      Mason Freed

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Liang Zhao
      • Luis Flores
      • Takashi Toyoshima
      • Viktoriya Bryhider
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement 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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
        Gerrit-Change-Number: 7173352
        Gerrit-PatchSet: 14
        Gerrit-Owner: Luis Flores <luf...@microsoft.com>
        Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
        Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Attention: Luis Flores <luf...@microsoft.com>
        Gerrit-Attention: Liang Zhao <lz...@microsoft.com>
        Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
        Gerrit-Comment-Date: Wed, 17 Dec 2025 00:01:02 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
        Comment-In-Reply-To: Luis Flores <luf...@microsoft.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Liang Zhao (Gerrit)

        unread,
        Dec 16, 2025, 7:41:06 PM (5 hours ago) Dec 16
        to Luis Flores, Mason Freed, Takashi Toyoshima, Chromium LUCI CQ, AyeAye, Viktoriya Bryhider, chromium...@chromium.org, Nate Chapin, blink-revi...@chromium.org, blink-...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
        Attention needed from Luis Flores, Takashi Toyoshima and Viktoriya Bryhider

        Liang Zhao voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Luis Flores
        • Takashi Toyoshima
        • Viktoriya Bryhider
        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: Iddc73dbf709b5a74ba9da894e0c7ccb51b90c40e
          Gerrit-Change-Number: 7173352
          Gerrit-PatchSet: 14
          Gerrit-Owner: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Liang Zhao <lz...@microsoft.com>
          Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
          Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
          Gerrit-Reviewer: Viktoriya Bryhider <vbry...@microsoft.com>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
          Gerrit-Attention: Luis Flores <luf...@microsoft.com>
          Gerrit-Attention: Viktoriya Bryhider <vbry...@microsoft.com>
          Gerrit-Comment-Date: Wed, 17 Dec 2025 00:40:53 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages