Mask DENIED status for storage-access permission in overrides [chromium/src : main]

0 views
Skip to first unread message

Jalon Thomas (Gerrit)

unread,
Nov 4, 2025, 3:22:25 PM (3 days ago) Nov 4
to Chris Fredrickson, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Chris Fredrickson

Jalon Thomas added 4 comments

Patchset-level comments
File-level comment, Patchset 4:
Chris Fredrickson . resolved

You could also consider adding to chrome/browser/storage_access_api/api_browsertest.cc, to make sure that this really causes the JS-visible change we intend it to.

Jalon Thomas

Added a test here. I used QueryPermission as the sole check, but let me know if there's any other methods I should use as well.

Commit Message
Line 7, Patchset 5:Masks DENIED status for storage-access permission in overrides
Chris Fredrickson . resolved

Nit: git commit titles should be phrased as commands (imperative mood). (https://chris.beams.io/git-commit#imperative, linked from https://chromium.googlesource.com/chromium/src/+/main/docs/contributing.md#Uploading-a-change-for-review)

```suggestion
Mask DENIED status for storage-access permission in overrides
```

Jalon Thomas

Done

File chrome/test/chromedriver/test/run_py_tests.py
Line 3830, Patchset 5: # 'prompt' when queried to prevent any attempt at retaliating against users
Chris Fredrickson . resolved

Please fix this WARNING reported by Trailing Whitespace: Please remove the trailing whitespace.

Please remove the trailing whitespace.

Jalon Thomas

Done

File content/browser/permissions/permission_overrides.cc
Line 122, Patchset 4: if (permission == blink::PermissionType::STORAGE_ACCESS_GRANT &&
*status == PermissionStatus::DENIED) {
return std::make_optional(PermissionResult(
PermissionStatus::ASK, PermissionStatusSource::UNSPECIFIED));
}

return std::make_optional(
PermissionResult(*status, PermissionStatusSource::UNSPECIFIED));
}
Chris Fredrickson . resolved
Personal preference: there's a bit of duplication here, I'd factor that out into a single return statement for simplicity. You can use an additional mutable variable to help with that (since the map is immutable in this method).
```suggestion
PermissionStatus adjusted_status = *status;
if (permission == blink::PermissionType::STORAGE_ACCESS_GRANT &&
*status == PermissionStatus::DENIED) {
adjusted_status = PermissionStatus::ASK;
}
  return std::make_optional(
PermissionResult(adjusted_status, PermissionStatusSource::UNSPECIFIED));
}
```
Jalon Thomas

Used this suggestion.

Open in Gerrit

Related details

Attention is currently required from:
  • Chris Fredrickson
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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
Gerrit-Change-Number: 7118843
Gerrit-PatchSet: 7
Gerrit-Owner: Jalon Thomas <jalon...@google.com>
Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
Gerrit-CC: Mathias Bynens <mat...@chromium.org>
Gerrit-Attention: Chris Fredrickson <cfre...@chromium.org>
Gerrit-Comment-Date: Tue, 04 Nov 2025 20:22:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Chris Fredrickson <cfre...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Chris Fredrickson (Gerrit)

unread,
Nov 4, 2025, 3:30:14 PM (3 days ago) Nov 4
to Jalon Thomas, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cfredri...@chromium.org
Attention needed from Jalon Thomas

Chris Fredrickson voted and added 3 comments

Votes added by Chris Fredrickson

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Chris Fredrickson . resolved

LGTM with test nits

File chrome/browser/storage_access_api/api_browsertest.cc
Line 816, Patchset 7 (Latest): NavigateFrameTo(kHostB, "/echoheader?cookie");
Chris Fredrickson . unresolved

We're not depending on the `echoheader` logic in this test, so we can simplify this.

```suggestion
NavigateFrameTo(kHostB, "/empty.html");
```
Line 818, Patchset 7 (Latest): devtools_client.SendCommandSync(
"Browser.setPermission",
base::Value::Dict()
.Set("setting", "granted")
.Set("origin", kOriginA)
.Set("embeddedOrigin", kOriginB)
.Set("permission",
base::Value::Dict().Set("name", "storage-access")));

// Ensure that we granted the permission.
EXPECT_EQ(QueryPermission(GetFrame()), "granted");
Chris Fredrickson . unresolved

This part is already tested in `PermissionGrantedViaDevtools`, so normally I'd say we should skip it here. But in this case, it's nice to show that the two calls to `QueryPermission` give different results, so we know for sure that we're manipulating the right permission.

So to make it clearer that the "denied" part is the part this test cares about, maybe we consider these lines the "setup"?
```suggestion
devtools_client.SendCommandSync(
"Browser.setPermission",
base::Value::Dict()
.Set("setting", "granted")
.Set("origin", kOriginA)
.Set("embeddedOrigin", kOriginB)
.Set("permission",
base::Value::Dict().Set("name", "storage-access")));
  // Ensure that we granted the permission.
ASSERT_EQ(QueryPermission(GetFrame()), "granted");

```

Open in Gerrit

Related details

Attention is currently required from:
  • Jalon Thomas
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
    Gerrit-Change-Number: 7118843
    Gerrit-PatchSet: 7
    Gerrit-Owner: Jalon Thomas <jalon...@google.com>
    Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
    Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
    Gerrit-CC: Mathias Bynens <mat...@chromium.org>
    Gerrit-Attention: Jalon Thomas <jalon...@google.com>
    Gerrit-Comment-Date: Tue, 04 Nov 2025 20:30:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Chris Fredrickson (Gerrit)

    unread,
    Nov 4, 2025, 3:31:10 PM (3 days ago) Nov 4
    to Jalon Thomas, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cfredri...@chromium.org
    Attention needed from Jalon Thomas

    Chris Fredrickson added 1 comment

    File chrome/browser/storage_access_api/api_browsertest.cc
    Line 827, Patchset 7 (Latest): // Ensure that we granted the permission.
    Chris Fredrickson . unresolved

    Nit: this comment doesn't add any information, so I'd remove it. https://testing.googleblog.com/2017/07/code-health-to-comment-or-not-to-comment.html

    Gerrit-Comment-Date: Tue, 04 Nov 2025 20:31:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jalon Thomas (Gerrit)

    unread,
    Nov 4, 2025, 4:00:00 PM (3 days ago) Nov 4
    to Chris Fredrickson, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cfredri...@chromium.org
    Attention needed from Chris Fredrickson

    Jalon Thomas added 3 comments

    File chrome/browser/storage_access_api/api_browsertest.cc
    Line 816, Patchset 7: NavigateFrameTo(kHostB, "/echoheader?cookie");
    Chris Fredrickson . resolved

    We're not depending on the `echoheader` logic in this test, so we can simplify this.

    ```suggestion
    NavigateFrameTo(kHostB, "/empty.html");
    ```
    Jalon Thomas

    Done

    Line 827, Patchset 7: // Ensure that we granted the permission.
    Chris Fredrickson . resolved

    Nit: this comment doesn't add any information, so I'd remove it. https://testing.googleblog.com/2017/07/code-health-to-comment-or-not-to-comment.html

    Jalon Thomas

    Done

    Line 818, Patchset 7: devtools_client.SendCommandSync(

    "Browser.setPermission",
    base::Value::Dict()
    .Set("setting", "granted")
    .Set("origin", kOriginA)
    .Set("embeddedOrigin", kOriginB)
    .Set("permission",
    base::Value::Dict().Set("name", "storage-access")));

    // Ensure that we granted the permission.
    EXPECT_EQ(QueryPermission(GetFrame()), "granted");
    Chris Fredrickson . resolved

    This part is already tested in `PermissionGrantedViaDevtools`, so normally I'd say we should skip it here. But in this case, it's nice to show that the two calls to `QueryPermission` give different results, so we know for sure that we're manipulating the right permission.

    So to make it clearer that the "denied" part is the part this test cares about, maybe we consider these lines the "setup"?
    ```suggestion
    devtools_client.SendCommandSync(
    "Browser.setPermission",
    base::Value::Dict()
    .Set("setting", "granted")
    .Set("origin", kOriginA)
    .Set("embeddedOrigin", kOriginB)
    .Set("permission",
    base::Value::Dict().Set("name", "storage-access")));
      // Ensure that we granted the permission.
    ASSERT_EQ(QueryPermission(GetFrame()), "granted");

    ```

    Jalon Thomas

    Makes sense!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Chris Fredrickson
    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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
      Gerrit-Change-Number: 7118843
      Gerrit-PatchSet: 8
      Gerrit-Owner: Jalon Thomas <jalon...@google.com>
      Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
      Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
      Gerrit-CC: Mathias Bynens <mat...@chromium.org>
      Gerrit-Attention: Chris Fredrickson <cfre...@chromium.org>
      Gerrit-Comment-Date: Tue, 04 Nov 2025 20:59:54 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Chris Fredrickson <cfre...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Chris Fredrickson (Gerrit)

      unread,
      Nov 4, 2025, 4:00:34 PM (3 days ago) Nov 4
      to Jalon Thomas, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cfredri...@chromium.org
      Attention needed from Jalon Thomas

      Chris Fredrickson voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Jalon Thomas
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not 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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
        Gerrit-Change-Number: 7118843
        Gerrit-PatchSet: 8
        Gerrit-Owner: Jalon Thomas <jalon...@google.com>
        Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
        Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
        Gerrit-CC: Mathias Bynens <mat...@chromium.org>
        Gerrit-Attention: Jalon Thomas <jalon...@google.com>
        Gerrit-Comment-Date: Tue, 04 Nov 2025 21:00:26 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Chris Fredrickson (Gerrit)

        unread,
        Nov 4, 2025, 4:38:26 PM (3 days ago) Nov 4
        to Jalon Thomas, Elias Klim, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cfredri...@chromium.org
        Attention needed from Elias Klim and Jalon Thomas

        Chris Fredrickson added 1 comment

        File content/browser/permissions/permission_overrides.cc
        Line 128, Patchset 8 (Latest): return std::make_optional(
        PermissionResult(adjusted_status, PermissionStatusSource::UNSPECIFIED));
        Chris Fredrickson . resolved

        Optional: now that this is no longer in the ternary expression, you can remove the `std::make_optional` call and just return the PermissionResult directly, relying on the implicit conversion to optional. (That also might end up being faster due to copy elision; a C++ expert would know for sure.)


        ```suggestion
        return PermissionResult(adjusted_status, PermissionStatusSource::UNSPECIFIED);
        ```
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Elias Klim
        • Jalon Thomas
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not 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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
        Gerrit-Change-Number: 7118843
        Gerrit-PatchSet: 8
        Gerrit-Owner: Jalon Thomas <jalon...@google.com>
        Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
        Gerrit-Reviewer: Elias Klim <el...@chromium.org>
        Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
        Gerrit-CC: Mathias Bynens <mat...@chromium.org>
        Gerrit-Attention: Elias Klim <el...@chromium.org>
        Gerrit-Attention: Jalon Thomas <jalon...@google.com>
        Gerrit-Comment-Date: Tue, 04 Nov 2025 21:38:18 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Elias Klim (Gerrit)

        unread,
        Nov 5, 2025, 5:27:23 AM (2 days ago) Nov 5
        to Jalon Thomas, Chris Fredrickson, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
        Attention needed from Chris Fredrickson and Jalon Thomas

        Elias Klim added 1 comment

        Patchset-level comments
        File-level comment, Patchset 10 (Latest):
        Elias Klim . unresolved

        AFAIU, these `overrides` are for test only, in other words I do not see how real users would be impacted. It is still a good idea to match specs, I just want to better understand if this was mainly an inconvenience or a real privacy-related issue?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Chris Fredrickson
        • Jalon Thomas
        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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
          Gerrit-Change-Number: 7118843
          Gerrit-PatchSet: 10
          Gerrit-Owner: Jalon Thomas <jalon...@google.com>
          Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
          Gerrit-Reviewer: Elias Klim <el...@chromium.org>
          Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
          Gerrit-CC: Mathias Bynens <mat...@chromium.org>
          Gerrit-Attention: Chris Fredrickson <cfre...@chromium.org>
          Gerrit-Attention: Jalon Thomas <jalon...@google.com>
          Gerrit-Comment-Date: Wed, 05 Nov 2025 10:27:07 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Elias Klim (Gerrit)

          unread,
          Nov 5, 2025, 5:27:35 AM (2 days ago) Nov 5
          to Jalon Thomas, Chris Fredrickson, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
          Attention needed from Chris Fredrickson and Jalon Thomas

          Elias Klim voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Chris Fredrickson
          • Jalon Thomas
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
            Gerrit-Change-Number: 7118843
            Gerrit-PatchSet: 10
            Gerrit-Owner: Jalon Thomas <jalon...@google.com>
            Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
            Gerrit-Reviewer: Elias Klim <el...@chromium.org>
            Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
            Gerrit-CC: Mathias Bynens <mat...@chromium.org>
            Gerrit-Attention: Chris Fredrickson <cfre...@chromium.org>
            Gerrit-Attention: Jalon Thomas <jalon...@google.com>
            Gerrit-Comment-Date: Wed, 05 Nov 2025 10:27:20 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Jalon Thomas (Gerrit)

            unread,
            Nov 5, 2025, 9:58:34 AM (2 days ago) Nov 5
            to Elias Klim, Chris Fredrickson, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
            Attention needed from Chris Fredrickson and Elias Klim

            Jalon Thomas added 1 comment

            Patchset-level comments
            Elias Klim . unresolved

            AFAIU, these `overrides` are for test only, in other words I do not see how real users would be impacted. It is still a good idea to match specs, I just want to better understand if this was mainly an inconvenience or a real privacy-related issue?

            Jalon Thomas

            That's right, but we need `overrides` to match the spec behavior for web platform tests. For example, this is [the test](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/storage-access-api/resources/permissions-iframe.https.html;l=32) that is fixed with this change. So, making this change is necessary to pass the tests, and it aligns with the actual SAA code [here](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/storage_access_api/storage_access_grant_permission_context.cc;l=608) because when an override is set, it gets used, instead of calling into `GetContentSettingStatusInternal`. Does that make sense?

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Chris Fredrickson
            • Elias Klim
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement satisfiedReview-Enforcement
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: chromium/src
            Gerrit-Branch: main
            Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
            Gerrit-Change-Number: 7118843
            Gerrit-PatchSet: 10
            Gerrit-Owner: Jalon Thomas <jalon...@google.com>
            Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
            Gerrit-Reviewer: Elias Klim <el...@chromium.org>
            Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
            Gerrit-CC: Mathias Bynens <mat...@chromium.org>
            Gerrit-Attention: Elias Klim <el...@chromium.org>
            Gerrit-Attention: Chris Fredrickson <cfre...@chromium.org>
            Gerrit-Comment-Date: Wed, 05 Nov 2025 14:58:26 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Elias Klim <el...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Chris Fredrickson (Gerrit)

            unread,
            Nov 5, 2025, 10:36:35 AM (2 days ago) Nov 5
            to Jalon Thomas, Elias Klim, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
            Attention needed from Elias Klim and Jalon Thomas

            Chris Fredrickson voted Code-Review+1

            Code-Review+1
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Elias Klim
            • Jalon Thomas
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: chromium/src
              Gerrit-Branch: main
              Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
              Gerrit-Change-Number: 7118843
              Gerrit-PatchSet: 10
              Gerrit-Owner: Jalon Thomas <jalon...@google.com>
              Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
              Gerrit-Reviewer: Elias Klim <el...@chromium.org>
              Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
              Gerrit-CC: Mathias Bynens <mat...@chromium.org>
              Gerrit-Attention: Elias Klim <el...@chromium.org>
              Gerrit-Attention: Jalon Thomas <jalon...@google.com>
              Gerrit-Comment-Date: Wed, 05 Nov 2025 15:36:29 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Elias Klim (Gerrit)

              unread,
              Nov 5, 2025, 2:26:09 PM (2 days ago) Nov 5
              to Jalon Thomas, Alex N. Jose, Chris Fredrickson, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
              Attention needed from Alex N. Jose and Jalon Thomas

              Elias Klim added 1 comment

              Patchset-level comments
              Elias Klim . resolved

              AFAIU, these `overrides` are for test only, in other words I do not see how real users would be impacted. It is still a good idea to match specs, I just want to better understand if this was mainly an inconvenience or a real privacy-related issue?

              Jalon Thomas

              That's right, but we need `overrides` to match the spec behavior for web platform tests. For example, this is [the test](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/storage-access-api/resources/permissions-iframe.https.html;l=32) that is fixed with this change. So, making this change is necessary to pass the tests, and it aligns with the actual SAA code [here](https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/storage_access_api/storage_access_grant_permission_context.cc;l=608) because when an override is set, it gets used, instead of calling into `GetContentSettingStatusInternal`. Does that make sense?

              Elias Klim

              Yes, this makes perfect sense, thank you!

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Alex N. Jose
              • Jalon Thomas
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Gerrit-Change-Number: 7118843
                Gerrit-PatchSet: 10
                Gerrit-Owner: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Alex N. Jose <ale...@chromium.org>
                Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
                Gerrit-Reviewer: Elias Klim <el...@chromium.org>
                Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
                Gerrit-CC: Mathias Bynens <mat...@chromium.org>
                Gerrit-Attention: Alex N. Jose <ale...@chromium.org>
                Gerrit-Attention: Jalon Thomas <jalon...@google.com>
                Gerrit-Comment-Date: Wed, 05 Nov 2025 19:25:51 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Elias Klim <el...@chromium.org>
                Comment-In-Reply-To: Jalon Thomas <jalon...@google.com>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Alex N. Jose (Gerrit)

                unread,
                Nov 5, 2025, 3:56:15 PM (2 days ago) Nov 5
                to Jalon Thomas, Peter Kvitek, Chris Fredrickson, Elias Klim, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
                Attention needed from Jalon Thomas and Peter Kvitek

                Alex N. Jose added 1 comment

                Patchset-level comments
                Alex N. Jose . resolved

                + kvitekp@ to reviewer since crrev.com/c/7076875. LGTM from a chromedriver test update pov.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Jalon Thomas
                • Peter Kvitek
                Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Gerrit-Change-Number: 7118843
                Gerrit-PatchSet: 10
                Gerrit-Owner: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Alex N. Jose <ale...@chromium.org>
                Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
                Gerrit-Reviewer: Elias Klim <el...@chromium.org>
                Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
                Gerrit-CC: Mathias Bynens <mat...@chromium.org>
                Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
                Gerrit-Attention: Jalon Thomas <jalon...@google.com>
                Gerrit-Comment-Date: Wed, 05 Nov 2025 20:56:03 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Alex N. Jose (Gerrit)

                unread,
                Nov 5, 2025, 3:57:16 PM (2 days ago) Nov 5
                to Jalon Thomas, Peter Kvitek, Chris Fredrickson, Elias Klim, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
                Attention needed from Jalon Thomas and Peter Kvitek

                Alex N. Jose voted Code-Review+1

                Code-Review+1
                Open in Gerrit

                Related details

                Attention is currently required from:
                • Jalon Thomas
                • Peter Kvitek
                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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Gerrit-Change-Number: 7118843
                Gerrit-PatchSet: 10
                Gerrit-Owner: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Alex N. Jose <ale...@chromium.org>
                Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
                Gerrit-Reviewer: Elias Klim <el...@chromium.org>
                Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
                Gerrit-CC: Mathias Bynens <mat...@chromium.org>
                Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
                Gerrit-Attention: Jalon Thomas <jalon...@google.com>
                Gerrit-Comment-Date: Wed, 05 Nov 2025 20:57:05 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Peter Kvitek (Gerrit)

                unread,
                Nov 5, 2025, 3:58:36 PM (2 days ago) Nov 5
                to Jalon Thomas, Alex N. Jose, Chris Fredrickson, Elias Klim, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org
                Attention needed from Jalon Thomas

                Peter Kvitek voted and added 1 comment

                Votes added by Peter Kvitek

                Code-Review+1

                1 comment

                Patchset-level comments
                Peter Kvitek . resolved

                lgtm

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Jalon Thomas
                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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Gerrit-Change-Number: 7118843
                Gerrit-PatchSet: 10
                Gerrit-Owner: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Alex N. Jose <ale...@chromium.org>
                Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
                Gerrit-Reviewer: Elias Klim <el...@chromium.org>
                Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
                Gerrit-CC: Mathias Bynens <mat...@chromium.org>
                Gerrit-Attention: Jalon Thomas <jalon...@google.com>
                Gerrit-Comment-Date: Wed, 05 Nov 2025 20:58:24 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Jalon Thomas (Gerrit)

                unread,
                Nov 5, 2025, 5:02:48 PM (2 days ago) Nov 5
                to Peter Kvitek, Alex N. Jose, Chris Fredrickson, Elias Klim, Mathias Bynens, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org

                Jalon Thomas voted Commit-Queue+2

                Commit-Queue+2
                Open in Gerrit

                Related details

                Attention set is empty
                Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                Gerrit-MessageType: comment
                Gerrit-Project: chromium/src
                Gerrit-Branch: main
                Gerrit-Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Gerrit-Change-Number: 7118843
                Gerrit-PatchSet: 10
                Gerrit-Owner: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Alex N. Jose <ale...@chromium.org>
                Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
                Gerrit-Reviewer: Elias Klim <el...@chromium.org>
                Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
                Gerrit-CC: Mathias Bynens <mat...@chromium.org>
                Gerrit-Comment-Date: Wed, 05 Nov 2025 22:02:19 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                open
                diffy

                Chromium LUCI CQ (Gerrit)

                unread,
                Nov 5, 2025, 5:07:25 PM (2 days ago) Nov 5
                to Jalon Thomas, Peter Kvitek, Alex N. Jose, Chris Fredrickson, Elias Klim, Mathias Bynens, AyeAye, chromium...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, cfredri...@chromium.org

                Chromium LUCI CQ submitted the change

                Change information

                Commit message:
                Mask DENIED status for storage-access permission in overrides

                Permission overrides should align with the Storage Access API spec
                calling for avoiding exposure of rejections to prevent any attempt at
                retaliating against users who would reject a prompt:
                https://privacycg.github.io/storage-access/#permissions-integration
                Bug: 384959114
                Change-Id: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Reviewed-by: Alex N. Jose <ale...@chromium.org>
                Commit-Queue: Jalon Thomas <jalon...@google.com>
                Reviewed-by: Peter Kvitek <kvi...@chromium.org>
                Reviewed-by: Chris Fredrickson <cfre...@chromium.org>
                Reviewed-by: Elias Klim <el...@chromium.org>
                Cr-Commit-Position: refs/heads/main@{#1540868}
                Files:
                • M chrome/browser/storage_access_api/api_browsertest.cc
                • M chrome/test/chromedriver/test/run_py_tests.py
                • M content/browser/permissions/permission_controller_impl_unittest.cc
                • M content/browser/permissions/permission_overrides.cc
                • M content/browser/permissions/permission_overrides_unittest.cc
                • D third_party/blink/web_tests/external/wpt/storage-access-api/storage-access-permission.sub.https.window-expected.txt
                Change size: M
                Delta: 6 files changed, 86 insertions(+), 9 deletions(-)
                Branch: refs/heads/main
                Submit Requirements:
                • requirement satisfiedCode-Review: +1 by Peter Kvitek, +1 by Elias Klim, +1 by Alex N. Jose, +1 by Chris Fredrickson
                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: Ib26d7ea16ddacdb9d3b2c6091f5c68711776ec6d
                Gerrit-Change-Number: 7118843
                Gerrit-PatchSet: 11
                Gerrit-Owner: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Alex N. Jose <ale...@chromium.org>
                Gerrit-Reviewer: Chris Fredrickson <cfre...@chromium.org>
                Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                Gerrit-Reviewer: Elias Klim <el...@chromium.org>
                Gerrit-Reviewer: Jalon Thomas <jalon...@google.com>
                Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
                open
                diffy
                satisfied_requirement
                Reply all
                Reply to author
                Forward
                0 new messages