Initial implementation for network-efficiency-guardrails [chromium/src : main]

0 views
Skip to first unread message

Luis Flores (Gerrit)

unread,
Aug 22, 2025, 12:42:19 PMAug 22
to Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Luis Flores

Message from Luis Flores

Set Ready For Review

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
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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
Gerrit-Change-Number: 6844536
Gerrit-PatchSet: 2
Gerrit-Owner: Luis Flores <luf...@microsoft.com>
Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Luna Lu <loon...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Luis Flores <luf...@microsoft.com>
Gerrit-Comment-Date: Fri, 22 Aug 2025 16:42:09 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Luis Flores (Gerrit)

unread,
Aug 22, 2025, 1:19:16 PMAug 22
to Takashi Toyoshima, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Ari Chivukula and Takashi Toyoshima

Luis Flores added 1 comment

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

Starting prototype implementation for network-efficiency-guardrails Document Policy. This CL implements compression checks for the "basic" category in linked explainer: aka.ms/webembeddedperf and https://docs.google.com/document/d/1RGxvtkoQbvApLVdipiASoUQjC0Jf-IKD9qV1EfUJHAQ. Would appreciate your feedback on the design. Thanks!

network-efficiency-guardrails
* http compression (js, css, json): this CL
* http compression (html): upcoming CL
* resource size: upcoming CL
* compressed formats: upcoming CL
Open in Gerrit

Related details

Attention is currently required from:
  • Ari Chivukula
  • Takashi Toyoshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
Gerrit-Change-Number: 6844536
Gerrit-PatchSet: 2
Gerrit-Owner: Luis Flores <luf...@microsoft.com>
Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Luna Lu <loon...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Comment-Date: Fri, 22 Aug 2025 17:19:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Ari Chivukula (Gerrit)

unread,
Aug 24, 2025, 7:23:36 AMAug 24
to Luis Flores, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Luis Flores and Takashi Toyoshima

Ari Chivukula added 4 comments

File third_party/blink/renderer/core/loader/frame_fetch_context.h
Line 102, Patchset 2 (Latest): ResourceType resource_type,
Ari Chivukula . unresolved

maybe it can be a TODO for now, but there probably needs to be a browsertest for this and not just a wpt

File third_party/blink/renderer/core/loader/frame_fetch_context.cc
Line 552, Patchset 2 (Latest): const DocumentPolicy* enforce_policy =
Ari Chivukula . unresolved

the check above on 527 could be a report-only policy or the enforced policy? Might be worth leaving a comment

File third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
Line 98, Patchset 2 (Latest): // todo: turn into enum for versioning
Ari Chivukula . unresolved

why leave as TODO here?

File third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html.headers
Line 1, Patchset 2 (Latest):Document-Policy: network-efficiency-guardrails
Ari Chivukula . unresolved

should Document-Policy-Report-Only be tested too?

Open in Gerrit

Related details

Attention is currently required from:
  • Luis Flores
  • Takashi Toyoshima
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
    Gerrit-Change-Number: 6844536
    Gerrit-PatchSet: 2
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Luna Lu <loon...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Comment-Date: Sun, 24 Aug 2025 11:23:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Takashi Toyoshima (Gerrit)

    unread,
    Aug 25, 2025, 1:48:27 AMAug 25
    to Luis Flores, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Luis Flores

    Takashi Toyoshima added 3 comments

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 518, Patchset 2 (Latest):
    Takashi Toyoshima . unresolved

    Can you add a comment that includes a link to a spec or an explainer that defines the implemented behavior below?

    Line 546, Patchset 2 (Latest): default:
    return;
    Takashi Toyoshima . unresolved

    Can you avoid using `default` but list up all ResourceTypes instead, so that we can find this by a compile error when people add a new ResourceType?

    File third_party/blink/renderer/platform/loader/fetch/fetch_context.h
    Line 165, Patchset 2 (Latest):
    Takashi Toyoshima . unresolved

    Can you have a method comment?
    A link for a spec (or an equivalent) that I asked in another comment, might be placed here.

    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
    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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
    Gerrit-Change-Number: 6844536
    Gerrit-PatchSet: 2
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Luna Lu <loon...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Comment-Date: Mon, 25 Aug 2025 05:47:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Luis Flores (Gerrit)

    unread,
    Aug 25, 2025, 8:12:09 PMAug 25
    to Takashi Toyoshima, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Ari Chivukula and Takashi Toyoshima

    Luis Flores added 8 comments

    Patchset-level comments
    File-level comment, Patchset 2:
    Luis Flores . resolved

    Thanks for the feedback. I have addressed actionable comments. ari...@chromium.org Would appreciate thoughts on enum and naming comments.

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 102, Patchset 2: ResourceType resource_type,
    Ari Chivukula . unresolved

    maybe it can be a TODO for now, but there probably needs to be a browsertest for this and not just a wpt

    Luis Flores

    Thanks. I can add in a follow up patchset/CL, I'd like to nail down the overall design first.

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Takashi Toyoshima . unresolved

    Can you add a comment that includes a link to a spec or an explainer that defines the implemented behavior below?

    Luis Flores

    Done

    Line 546, Patchset 2: default:
    return;
    Takashi Toyoshima . unresolved

    Can you avoid using `default` but list up all ResourceTypes instead, so that we can find this by a compile error when people add a new ResourceType?

    Luis Flores

    Done

    Line 552, Patchset 2: const DocumentPolicy* enforce_policy =
    Ari Chivukula . unresolved

    the check above on 527 could be a report-only policy or the enforced policy? Might be worth leaving a comment

    Luis Flores

    I have added a comment.

    File third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
    Line 98, Patchset 2: // todo: turn into enum for versioning
    Ari Chivukula . unresolved

    why leave as TODO here?

    Luis Flores

    Haven't decided on the final shape for versioning yet. I'm trying to start with something simple and have apps try it first. There's no strictness comparison for enum either so unsure yet whether that's the right solution. I can remove the comment if that's better? Or would it be better to be decided now?

    File third_party/blink/renderer/platform/loader/fetch/fetch_context.h
    Takashi Toyoshima . unresolved

    Can you have a method comment?
    A link for a spec (or an equivalent) that I asked in another comment, might be placed here.

    Luis Flores

    Done

    File third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html.headers
    Line 1, Patchset 2:Document-Policy: network-efficiency-guardrails
    Ari Chivukula . unresolved

    should Document-Policy-Report-Only be tested too?

    Luis Flores

    Thanks, this was actually great calling out as there was in fact a bug for reporting only. I had been struggling with IsFeatureEnabled but now reading through Document Policy implementation and spec draft again, I think the problem is that both spec and impl assume |false| to be a stricter value than |true| which doesn't hold for the way this feature is currently done.

    I have changed the check in this CL as a middle step, but I'm considering to switch the configuration point from "network-efficiency-guardrails" to "no-network-efficiency-guardrails", as it would fit better with existing Document Policy infrastructure.

    Thoughts?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ari Chivukula
    • Takashi Toyoshima
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
    Gerrit-Change-Number: 6844536
    Gerrit-PatchSet: 2
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Luna Lu <loon...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
    Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 00:11:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ari Chivukula <ari...@chromium.org>
    Comment-In-Reply-To: Takashi Toyoshima <toyo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Takashi Toyoshima (Gerrit)

    unread,
    Aug 25, 2025, 8:48:30 PMAug 25
    to Luis Flores, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Ari Chivukula and Luis Flores

    Takashi Toyoshima voted and added 3 comments

    Votes added by Takashi Toyoshima

    Code-Review+1

    3 comments

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 518, Patchset 2:
    Takashi Toyoshima . resolved

    Can you add a comment that includes a link to a spec or an explainer that defines the implemented behavior below?

    Luis Flores

    Done

    Takashi Toyoshima

    Acknowledged

    Line 546, Patchset 2: default:
    return;
    Takashi Toyoshima . resolved

    Can you avoid using `default` but list up all ResourceTypes instead, so that we can find this by a compile error when people add a new ResourceType?

    Luis Flores

    Done

    Takashi Toyoshima

    Acknowledged

    File third_party/blink/renderer/platform/loader/fetch/fetch_context.h
    Line 165, Patchset 2:
    Takashi Toyoshima . resolved

    Can you have a method comment?
    A link for a spec (or an equivalent) that I asked in another comment, might be placed here.

    Luis Flores

    Done

    Takashi Toyoshima

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ari Chivukula
    • Luis Flores
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
    Gerrit-Change-Number: 6844536
    Gerrit-PatchSet: 3
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Luna Lu <loon...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 00:47:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Luis Flores <luf...@microsoft.com>
    Comment-In-Reply-To: Takashi Toyoshima <toyo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ari Chivukula (Gerrit)

    unread,
    Aug 25, 2025, 9:14:46 PMAug 25
    to Luis Flores, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Luis Flores

    Ari Chivukula added 6 comments

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 102, Patchset 2: ResourceType resource_type,
    Ari Chivukula . unresolved

    maybe it can be a TODO for now, but there probably needs to be a browsertest for this and not just a wpt

    Luis Flores

    Thanks. I can add in a follow up patchset/CL, I'd like to nail down the overall design first.

    Ari Chivukula

    please add a TODO for that then

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 531, Patchset 3 (Latest): if (!security_context.GetDocumentPolicy()
    Ari Chivukula . unresolved
    this is kinda awkward, maybe:
    ```
    bool is_report_only_policy = ...
    bool is_enforced_policy = ...
    if (!is_report_only_policy && !is_enforced_policy) {
    return;
    }
    mojom::blink::PolicyDisposition disposition = is_enforced_policy ? kEnforce : kReport;
    ```
    Line 552, Patchset 2: const DocumentPolicy* enforce_policy =
    Ari Chivukula . resolved

    the check above on 527 could be a report-only policy or the enforced policy? Might be worth leaving a comment

    Luis Flores

    I have added a comment.

    Ari Chivukula

    Done

    Line 578, Patchset 3 (Latest): response.HttpHeaderField(http_names::kContentEncoding).empty()) {
    Ari Chivukula . unresolved

    check this early for an exit?

    File third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
    Line 98, Patchset 2: // todo: turn into enum for versioning
    Ari Chivukula . unresolved

    why leave as TODO here?

    Luis Flores

    Haven't decided on the final shape for versioning yet. I'm trying to start with something simple and have apps try it first. There's no strictness comparison for enum either so unsure yet whether that's the right solution. I can remove the comment if that's better? Or would it be better to be decided now?

    Ari Chivukula

    I'm confused, is this being rolled out now or just in early prototyping? If it's the latter then it's okay to be unsure for now but you want a TODO like:

    `// TODO(crbug.com/XXX): ...`

    File third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html.headers
    Line 1, Patchset 2:Document-Policy: network-efficiency-guardrails
    Ari Chivukula . unresolved

    should Document-Policy-Report-Only be tested too?

    Luis Flores

    Thanks, this was actually great calling out as there was in fact a bug for reporting only. I had been struggling with IsFeatureEnabled but now reading through Document Policy implementation and spec draft again, I think the problem is that both spec and impl assume |false| to be a stricter value than |true| which doesn't hold for the way this feature is currently done.

    I have changed the check in this CL as a middle step, but I'm considering to switch the configuration point from "network-efficiency-guardrails" to "no-network-efficiency-guardrails", as it would fit better with existing Document Policy infrastructure.

    Thoughts?

    Ari Chivukula

    If you were using an enum instead of a bool would it be easier? The implementation here differs enough from the explainer I'm not quite sure how it's intended to evolve

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Luis Flores
    Gerrit-Comment-Date: Tue, 26 Aug 2025 01:14:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Luis Flores <luf...@microsoft.com>
    Comment-In-Reply-To: Ari Chivukula <ari...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Luis Flores (Gerrit)

    unread,
    Aug 27, 2025, 1:27:04 AMAug 27
    to Takashi Toyoshima, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Ari Chivukula and Takashi Toyoshima

    Luis Flores added 6 comments

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

    Addressing more comments, sharing additional details on others.

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 102, Patchset 2: ResourceType resource_type,
    Ari Chivukula . unresolved

    maybe it can be a TODO for now, but there probably needs to be a browsertest for this and not just a wpt

    Luis Flores

    Thanks. I can add in a follow up patchset/CL, I'd like to nail down the overall design first.

    Ari Chivukula

    please add a TODO for that then

    Luis Flores

    Done

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 531, Patchset 3: if (!security_context.GetDocumentPolicy()
    Ari Chivukula . unresolved
    this is kinda awkward, maybe:
    ```
    bool is_report_only_policy = ...
    bool is_enforced_policy = ...
    if (!is_report_only_policy && !is_enforced_policy) {
    return;
    }
    mojom::blink::PolicyDisposition disposition = is_enforced_policy ? kEnforce : kReport;
    ```
    Luis Flores

    Done

    Line 578, Patchset 3: response.HttpHeaderField(http_names::kContentEncoding).empty()) {
    Ari Chivukula . unresolved

    check this early for an exit?

    Luis Flores

    Do you mean moving the compression check above? I was thinking that since most cases wouldn't have the policy, it'd be better to start checking for that. Are you suggesting this should be the first check instead?

    File third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
    Line 98, Patchset 2: // todo: turn into enum for versioning
    Ari Chivukula . unresolved

    why leave as TODO here?

    Luis Flores

    Haven't decided on the final shape for versioning yet. I'm trying to start with something simple and have apps try it first. There's no strictness comparison for enum either so unsure yet whether that's the right solution. I can remove the comment if that's better? Or would it be better to be decided now?

    Ari Chivukula

    I'm confused, is this being rolled out now or just in early prototyping? If it's the latter then it's okay to be unsure for now but you want a TODO like:

    `// TODO(crbug.com/XXX): ...`

    Luis Flores

    It's an early prototype, but we have partner app willing to try it out in this early stage. I have added as todo. Apologies for the confusion.

    File third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html.headers
    Line 1, Patchset 2:Document-Policy: network-efficiency-guardrails
    Ari Chivukula . unresolved

    should Document-Policy-Report-Only be tested too?

    Luis Flores

    Thanks, this was actually great calling out as there was in fact a bug for reporting only. I had been struggling with IsFeatureEnabled but now reading through Document Policy implementation and spec draft again, I think the problem is that both spec and impl assume |false| to be a stricter value than |true| which doesn't hold for the way this feature is currently done.

    I have changed the check in this CL as a middle step, but I'm considering to switch the configuration point from "network-efficiency-guardrails" to "no-network-efficiency-guardrails", as it would fit better with existing Document Policy infrastructure.

    Thoughts?

    Ari Chivukula

    If you were using an enum instead of a bool would it be easier? The implementation here differs enough from the explainer I'm not quite sure how it's intended to evolve

    Luis Flores

    The history is a bit messy. Apologies for that. I'm still working on this feature based on the explainer, but there are a few things not mapping 1:1 currently:

    The immediate plan was to have it as boolean for now and decide on versioning, potentially through enum, as it moves forward. I can explore using an enum now, but unsure whether that will be the solution. Alternatively, I was considering switching the name to "no network efficiency guardrails" to fit Document Policy infra better. I have realized in its current state, policy inheritance will likely break.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ari Chivukula
    • Takashi Toyoshima
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
    Gerrit-Change-Number: 6844536
    Gerrit-PatchSet: 4
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Luna Lu <loon...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
    Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 05:26:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ari Chivukula <ari...@chromium.org>
    Comment-In-Reply-To: Luis Flores <luf...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Luis Flores (Gerrit)

    unread,
    Aug 27, 2025, 1:29:27 AMAug 27
    to Takashi Toyoshima, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Ari Chivukula and Takashi Toyoshima

    Luis Flores added 1 comment

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 102, Patchset 2: ResourceType resource_type,
    Ari Chivukula . unresolved

    maybe it can be a TODO for now, but there probably needs to be a browsertest for this and not just a wpt

    Luis Flores

    Thanks. I can add in a follow up patchset/CL, I'd like to nail down the overall design first.

    Ari Chivukula

    please add a TODO for that then

    Luis Flores

    Done

    Luis Flores

    Added at top of method in third_party/blink/renderer/core/loader/frame_fetch_context.cc

    Gerrit-Comment-Date: Wed, 27 Aug 2025 05:29:17 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Takashi Toyoshima (Gerrit)

    unread,
    Aug 27, 2025, 5:15:52 AMAug 27
    to Luis Flores, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Ari Chivukula and Luis Flores

    Takashi Toyoshima voted and added 1 comment

    Votes added by Takashi Toyoshima

    Code-Review+1

    1 comment

    Patchset-level comments
    Takashi Toyoshima . resolved

    I don't have any extra comment other than arichiv@ already pointed.
    So, defer to arichiv@

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ari Chivukula
    • Luis Flores
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
    Gerrit-Change-Number: 6844536
    Gerrit-PatchSet: 4
    Gerrit-Owner: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Luna Lu <loon...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-Attention: Luis Flores <luf...@microsoft.com>
    Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 09:15:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ari Chivukula (Gerrit)

    unread,
    Aug 27, 2025, 5:24:54 AMAug 27
    to Luis Flores, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Luis Flores

    Ari Chivukula voted and added 5 comments

    Votes added by Ari Chivukula

    Code-Review+1

    5 comments

    Patchset-level comments
    Ari Chivukula . resolved

    LGTM third_party/blink/renderer/core/permissions_policy/document_policy_features.json5

    File third_party/blink/renderer/core/loader/frame_fetch_context.h
    Line 102, Patchset 2: ResourceType resource_type,
    Ari Chivukula . resolved

    maybe it can be a TODO for now, but there probably needs to be a browsertest for this and not just a wpt

    Luis Flores

    Thanks. I can add in a follow up patchset/CL, I'd like to nail down the overall design first.

    Ari Chivukula

    please add a TODO for that then

    Luis Flores

    Done

    Luis Flores

    Added at top of method in third_party/blink/renderer/core/loader/frame_fetch_context.cc

    Ari Chivukula

    Done

    File third_party/blink/renderer/core/loader/frame_fetch_context.cc
    Line 578, Patchset 3: response.HttpHeaderField(http_names::kContentEncoding).empty()) {
    Ari Chivukula . resolved

    check this early for an exit?

    Luis Flores

    Do you mean moving the compression check above? I was thinking that since most cases wouldn't have the policy, it'd be better to start checking for that. Are you suggesting this should be the first check instead?

    Ari Chivukula

    I guess it's not really much of a difference

    File third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
    Line 98, Patchset 2: // todo: turn into enum for versioning
    Ari Chivukula . resolved

    why leave as TODO here?

    Luis Flores

    Haven't decided on the final shape for versioning yet. I'm trying to start with something simple and have apps try it first. There's no strictness comparison for enum either so unsure yet whether that's the right solution. I can remove the comment if that's better? Or would it be better to be decided now?

    Ari Chivukula

    I'm confused, is this being rolled out now or just in early prototyping? If it's the latter then it's okay to be unsure for now but you want a TODO like:

    `// TODO(crbug.com/XXX): ...`

    Luis Flores

    It's an early prototype, but we have partner app willing to try it out in this early stage. I have added as todo. Apologies for the confusion.

    Ari Chivukula

    Done

    File third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html.headers
    Line 1, Patchset 2:Document-Policy: network-efficiency-guardrails
    Ari Chivukula . resolved

    should Document-Policy-Report-Only be tested too?

    Luis Flores

    Thanks, this was actually great calling out as there was in fact a bug for reporting only. I had been struggling with IsFeatureEnabled but now reading through Document Policy implementation and spec draft again, I think the problem is that both spec and impl assume |false| to be a stricter value than |true| which doesn't hold for the way this feature is currently done.

    I have changed the check in this CL as a middle step, but I'm considering to switch the configuration point from "network-efficiency-guardrails" to "no-network-efficiency-guardrails", as it would fit better with existing Document Policy infrastructure.

    Thoughts?

    Ari Chivukula

    If you were using an enum instead of a bool would it be easier? The implementation here differs enough from the explainer I'm not quite sure how it's intended to evolve

    Luis Flores

    The history is a bit messy. Apologies for that. I'm still working on this feature based on the explainer, but there are a few things not mapping 1:1 currently:

    The immediate plan was to have it as boolean for now and decide on versioning, potentially through enum, as it moves forward. I can explore using an enum now, but unsure whether that will be the solution. Alternatively, I was considering switching the name to "no network efficiency guardrails" to fit Document Policy infra better. I have realized in its current state, policy inheritance will likely break.

    Ari Chivukula

    as long as this is just early prototyping, I'm fine with some thrash on the design.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Luis Flores
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
      Gerrit-Change-Number: 6844536
      Gerrit-PatchSet: 4
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Luna Lu <loon...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Luis Flores <luf...@microsoft.com>
      Gerrit-Comment-Date: Wed, 27 Aug 2025 09:24:48 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Ari Chivukula (Gerrit)

      unread,
      Aug 27, 2025, 1:27:19 PMAug 27
      to Luis Flores, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Luis Flores

      Ari Chivukula added 1 comment

      File third_party/blink/renderer/core/loader/frame_fetch_context.cc
      Line 531, Patchset 3: if (!security_context.GetDocumentPolicy()
      Ari Chivukula . resolved
      this is kinda awkward, maybe:
      ```
      bool is_report_only_policy = ...
      bool is_enforced_policy = ...
      if (!is_report_only_policy && !is_enforced_policy) {
      return;
      }
      mojom::blink::PolicyDisposition disposition = is_enforced_policy ? kEnforce : kReport;
      ```
      Luis Flores

      Done

      Ari Chivukula

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Luis Flores
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
      Gerrit-Change-Number: 6844536
      Gerrit-PatchSet: 4
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Luna Lu <loon...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Luis Flores <luf...@microsoft.com>
      Gerrit-Comment-Date: Wed, 27 Aug 2025 17:27:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Blink W3C Test Autoroller (Gerrit)

      unread,
      Aug 28, 2025, 12:41:27 PMAug 28
      to Luis Flores, Ari Chivukula, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Luis Flores

      Message from Blink W3C Test Autoroller

      Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/54573.

      When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.

      WPT Export docs:
      https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Luis Flores
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
      Gerrit-Change-Number: 6844536
      Gerrit-PatchSet: 4
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Luna Lu <loon...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Attention: Luis Flores <luf...@microsoft.com>
      Gerrit-Comment-Date: Thu, 28 Aug 2025 16:41:21 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Luis Flores (Gerrit)

      unread,
      Sep 1, 2025, 2:35:47 AMSep 1
      to Blink W3C Test Autoroller, Ari Chivukula, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

      Luis Flores 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
      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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
      Gerrit-Change-Number: 6844536
      Gerrit-PatchSet: 4
      Gerrit-Owner: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
      Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
      Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Luna Lu <loon...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-Comment-Date: Mon, 01 Sep 2025 06:35:35 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Luis Flores (Gerrit)

      unread,
      Sep 11, 2025, 3:19:52 AM (7 days ago) Sep 11
      to Blink W3C Test Autoroller, Ari Chivukula, Takashi Toyoshima, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Ari Chivukula and Takashi Toyoshima

      Luis Flores added 1 comment

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

      toyo...@chromium.org ari...@chromium.org I had not realized there was a crash on CQ. I've fixed it and rebased the CL. I'd appreciate your review on this latest patchset.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Ari Chivukula
      • Takashi Toyoshima
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
        Gerrit-Change-Number: 6844536
        Gerrit-PatchSet: 6
        Gerrit-Owner: Luis Flores <luf...@microsoft.com>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Luna Lu <loon...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-Comment-Date: Thu, 11 Sep 2025 07:19:41 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Takashi Toyoshima (Gerrit)

        unread,
        Sep 11, 2025, 3:35:57 AM (7 days ago) Sep 11
        to Luis Flores, Blink W3C Test Autoroller, Ari Chivukula, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
        Attention needed from Ari Chivukula and Luis Flores

        Takashi Toyoshima voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Ari Chivukula
        • Luis Flores
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
        Gerrit-Change-Number: 6844536
        Gerrit-PatchSet: 6
        Gerrit-Owner: Luis Flores <luf...@microsoft.com>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
        Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
        Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Luna Lu <loon...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-Attention: Luis Flores <luf...@microsoft.com>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Comment-Date: Thu, 11 Sep 2025 07:35:29 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Ari Chivukula (Gerrit)

        unread,
        Sep 15, 2025, 12:52:25 PM (2 days ago) Sep 15
        to Luis Flores, Takashi Toyoshima, Blink W3C Test Autoroller, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
        Attention needed from Luis Flores

        Ari Chivukula voted and added 1 comment

        Votes added by Ari Chivukula

        Code-Review+1

        1 comment

        Patchset-level comments
        Ari Chivukula . resolved

        I don't think there were new changes for me to review

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Luis Flores
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
          Gerrit-Change-Number: 6844536
          Gerrit-PatchSet: 6
          Gerrit-Owner: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
          Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Luna Lu <loon...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-Attention: Luis Flores <luf...@microsoft.com>
          Gerrit-Comment-Date: Mon, 15 Sep 2025 16:52:19 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Luis Flores (Gerrit)

          unread,
          Sep 15, 2025, 1:11:29 PM (2 days ago) Sep 15
          to Ari Chivukula, Takashi Toyoshima, Blink W3C Test Autoroller, Chromium LUCI CQ, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

          Luis Flores 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
          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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
          Gerrit-Change-Number: 6844536
          Gerrit-PatchSet: 6
          Gerrit-Owner: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
          Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Luna Lu <loon...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-Comment-Date: Mon, 15 Sep 2025 17:11:19 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Sep 15, 2025, 2:13:36 PM (2 days ago) Sep 15
          to Luis Flores, Ari Chivukula, Takashi Toyoshima, Blink W3C Test Autoroller, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

          Chromium LUCI CQ submitted the change

          Change information

          Commit message:
          Initial implementation for network-efficiency-guardrails

          Adds Document Policy configuration point for
          network-efficiency-guardrails and base implementation for HTTP resource
          compression check.
          Bug: 434744664
          Change-Id: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
          Reviewed-by: Ari Chivukula <ari...@chromium.org>
          Reviewed-by: Takashi Toyoshima <toyo...@chromium.org>
          Commit-Queue: Luis Flores <luf...@microsoft.com>
          Cr-Commit-Position: refs/heads/main@{#1515624}
          Files:
          • M third_party/blink/public/mojom/permissions_policy/document_policy_feature.mojom
          • M third_party/blink/renderer/core/loader/frame_fetch_context.cc
          • M third_party/blink/renderer/core/loader/frame_fetch_context.h
          • M third_party/blink/renderer/core/permissions_policy/document_policy_features.json5
          • M third_party/blink/renderer/platform/loader/fetch/fetch_context.h
          • M third_party/blink/renderer/platform/loader/fetch/resource_loader.cc
          • M third_party/blink/renderer/platform/runtime_enabled_features.json5
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails-json.tentative.html
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails-json.tentative.html.headers
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails-report-only.tentative.html
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails-report-only.tentative.html.headers
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/network-efficiency-guardrails.tentative.html.headers
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/resources/compressed.css
          • A third_party/blink/web_tests/external/wpt/document-policy/experimental-features/resources/compressed.json
          • M tools/metrics/histograms/metadata/blink/enums.xml
          Change size: M
          Delta: 16 files changed, 231 insertions(+), 0 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Ari Chivukula, +1 by Takashi Toyoshima
          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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
          Gerrit-Change-Number: 6844536
          Gerrit-PatchSet: 7
          Gerrit-Owner: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
          Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
          open
          diffy
          satisfied_requirement

          Blink W3C Test Autoroller (Gerrit)

          unread,
          Sep 15, 2025, 2:56:47 PM (2 days ago) Sep 15
          to Luis Flores, Chromium LUCI CQ, Ari Chivukula, Takashi Toyoshima, Nate Chapin, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, Luna Lu, gavinp...@chromium.org, blink-revie...@chromium.org, loading...@chromium.org, loading-re...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, iclella...@chromium.org, ipc-securi...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

          Message from Blink W3C Test Autoroller

          The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/54573

          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Owners
          • requirement satisfiedCode-Review
          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: I708e06e1a37f1ed8652c81460bfaa952077b5fa6
          Gerrit-Change-Number: 6844536
          Gerrit-PatchSet: 7
          Gerrit-Owner: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Luis Flores <luf...@microsoft.com>
          Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
          Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Luna Lu <loon...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-Comment-Date: Mon, 15 Sep 2025 18:56:42 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: No
          satisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages