[StorageKey] Allow (de)serialization of opaque top_level_site [chromium/src : main]

16 views
Skip to first unread message

Ari Chivukula (Gerrit)

unread,
Jan 23, 2023, 8:46:10 PM1/23/23
to Steven Bingler, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org

Attention is currently required from: Steven Bingler.

Ari Chivukula would like Steven Bingler to review this change.

View Change

[StorageKey] Allow (de)serialization of opaque top_level_site

It's possible, for example on a data url with an iframe, to have a
non-opaque origin and an opaque top_level_site. In such instances we
need to be able to serialize the opaque top_level_site so that storage
access is possible. In future, we may want to remove this capability but
with a target launch of M112 we cannot take on more near term
deprecations.

Bug: 1407243
Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
---
M net/base/schemeful_site.cc
M net/base/schemeful_site.h
M net/base/schemeful_site_unittest.cc
M third_party/blink/common/storage_key/storage_key.cc
M third_party/blink/common/storage_key/storage_key_mojom_traits_unittest.cc
M third_party/blink/common/storage_key/storage_key_unittest.cc
M third_party/blink/public/common/storage_key/storage_key.h
M third_party/blink/renderer/platform/network/blink_schemeful_site.h
M third_party/blink/renderer/platform/network/blink_schemeful_site_test.cc
M third_party/blink/renderer/platform/storage/blink_storage_key.cc
M third_party/blink/renderer/platform/storage/blink_storage_key_mojom_traits_test.cc
M third_party/blink/renderer/platform/storage/blink_storage_key_test.cc
M url/origin.h
13 files changed, 422 insertions(+), 75 deletions(-)


To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
Gerrit-Change-Number: 4189064
Gerrit-PatchSet: 1
Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
Gerrit-Attention: Steven Bingler <bin...@chromium.org>
Gerrit-MessageType: newchange

Ari Chivukula (Gerrit)

unread,
Jan 23, 2023, 8:46:14 PM1/23/23
to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Steven Bingler, chromium...@chromium.org

Attention is currently required from: Steven Bingler.

Patch set 1:Auto-Submit +1Commit-Queue +1

View Change

    To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
    Gerrit-Change-Number: 4189064
    Gerrit-PatchSet: 1
    Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
    Gerrit-Attention: Steven Bingler <bin...@chromium.org>
    Gerrit-Comment-Date: Tue, 24 Jan 2023 01:46:07 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Ari Chivukula (Gerrit)

    unread,
    Jan 23, 2023, 8:49:43 PM1/23/23
    to Daniel Cheng, Victor Vasiliev, Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Steven Bingler

    Attention is currently required from: Daniel Cheng, Steven Bingler, Victor Vasiliev, Yoav Weiss.

    Ari Chivukula would like Daniel Cheng, Victor Vasiliev and Yoav Weiss to review this change.

    To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
    Gerrit-Change-Number: 4189064
    Gerrit-PatchSet: 1
    Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
    Gerrit-Reviewer: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Attention: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>

    Ari Chivukula (Gerrit)

    unread,
    Jan 23, 2023, 8:49:49 PM1/23/23
    to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Daniel Cheng, Victor Vasiliev, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

    Attention is currently required from: Daniel Cheng, Steven Bingler, Victor Vasiliev, Yoav Weiss.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #1:

        @Victor Vasiliev Just looking for SchemefulSite
        @Yoav Weiss Just looking for BlinkSchemefulSite
        @bingler and @dcheng looking for holistic review

    To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
    Gerrit-Change-Number: 4189064
    Gerrit-PatchSet: 1
    Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
    Gerrit-Reviewer: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Attention: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Steven Bingler <bin...@chromium.org>
    Gerrit-Comment-Date: Tue, 24 Jan 2023 01:49:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Ari Chivukula (Gerrit)

    unread,
    Jan 23, 2023, 9:17:39 PM1/23/23
    to Alex Moshchuk, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Daniel Cheng, Victor Vasiliev, Yoav Weiss, Steven Bingler

    Attention is currently required from: Alex Moshchuk, Daniel Cheng, Steven Bingler, Victor Vasiliev, Yoav Weiss.

    Ari Chivukula would like Alex Moshchuk to review this change.

    View Change

    [StorageKey] Allow (de)serialization of opaque top_level_site

    It's possible, for example on a data url with an iframe, to have a
    non-opaque origin and an opaque top_level_site. In such instances we
    need to be able to serialize the opaque top_level_site so that storage
    access is possible. In future, we may want to remove this capability but
    with a target launch of M112 we cannot take on more near term
    deprecations.

    Bug: 1407243
    Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
    ---
    M content/browser/renderer_host/render_frame_host_impl.cc
    M net/base/schemeful_site.cc
    M net/base/schemeful_site.h
    M net/base/schemeful_site_fuzzer.cc

    M net/base/schemeful_site_unittest.cc
    M third_party/blink/common/storage_key/storage_key.cc
    M third_party/blink/common/storage_key/storage_key_mojom_traits_unittest.cc
    M third_party/blink/common/storage_key/storage_key_unittest.cc
    M third_party/blink/public/common/storage_key/storage_key.h
    M third_party/blink/renderer/platform/network/blink_schemeful_site.h
    M third_party/blink/renderer/platform/network/blink_schemeful_site_test.cc
    M third_party/blink/renderer/platform/storage/blink_storage_key.cc
    M third_party/blink/renderer/platform/storage/blink_storage_key_mojom_traits_test.cc
    M third_party/blink/renderer/platform/storage/blink_storage_key_test.cc
    M url/origin.h
    15 files changed, 441 insertions(+), 85 deletions(-)


    To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
    Gerrit-Change-Number: 4189064
    Gerrit-PatchSet: 2
    Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
    Gerrit-Reviewer: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Attention: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Steven Bingler <bin...@chromium.org>
    Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
    Gerrit-MessageType: newchange

    Ari Chivukula (Gerrit)

    unread,
    Jan 23, 2023, 9:17:43 PM1/23/23
    to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Daniel Cheng, Victor Vasiliev, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

    Attention is currently required from: Alex Moshchuk, Daniel Cheng, Steven Bingler, Victor Vasiliev, Yoav Weiss.

    Patch set 2:Auto-Submit +1

    View Change

    1 comment:

    To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
    Gerrit-Change-Number: 4189064
    Gerrit-PatchSet: 2
    Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
    Gerrit-Reviewer: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Attention: Victor Vasiliev <vas...@chromium.org>
    Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Attention: Steven Bingler <bin...@chromium.org>
    Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Comment-Date: Tue, 24 Jan 2023 02:17:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Ari Chivukula (Gerrit)

    unread,
    Jan 23, 2023, 11:01:25 PM1/23/23
    to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Daniel Cheng, Victor Vasiliev, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

    Attention is currently required from: Alex Moshchuk, Daniel Cheng, Steven Bingler, Victor Vasiliev, Yoav Weiss.

    Patch set 4:Auto-Submit +1

    View Change

      To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
      Gerrit-Change-Number: 4189064
      Gerrit-PatchSet: 4
      Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
      Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
      Gerrit-Reviewer: Victor Vasiliev <vas...@chromium.org>
      Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
      Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
      Gerrit-Attention: Victor Vasiliev <vas...@chromium.org>
      Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
      Gerrit-Attention: Steven Bingler <bin...@chromium.org>
      Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
      Gerrit-Comment-Date: Tue, 24 Jan 2023 04:01:16 +0000

      Ari Chivukula (Gerrit)

      unread,
      Jan 24, 2023, 7:46:13 AM1/24/23
      to Josh Karlin, Victor Vasiliev, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Steven Bingler

      Attention is currently required from: Alex Moshchuk, Daniel Cheng, Josh Karlin, Steven Bingler, Yoav Weiss.

      Ari Chivukula would like Josh Karlin to review this change.

      Ari Chivukula removed Victor Vasiliev from this change.

      View Change

      [StorageKey] Allow (de)serialization of opaque top_level_site

      It's possible, for example on a data url with an iframe, to have a
      non-opaque origin and an opaque top_level_site. In such instances we
      need to be able to serialize the opaque top_level_site so that storage
      access is possible. In future, we may want to remove this capability but
      with a target launch of M112 we cannot take on more near term
      deprecations.

      Bug: 1407243
      Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
      ---
      M content/browser/renderer_host/navigation_request.cc
      M content/browser/renderer_host/render_frame_host_impl.cc
      M net/base/schemeful_site.h

      M net/base/schemeful_site_unittest.cc
      M third_party/blink/common/storage_key/storage_key.cc
      M third_party/blink/common/storage_key/storage_key_mojom_traits_unittest.cc
      M third_party/blink/common/storage_key/storage_key_unittest.cc
      M third_party/blink/public/common/storage_key/storage_key.h
      M third_party/blink/renderer/platform/network/blink_schemeful_site.h
      M third_party/blink/renderer/platform/network/blink_schemeful_site_test.cc
      M third_party/blink/renderer/platform/storage/blink_storage_key.cc
      M third_party/blink/renderer/platform/storage/blink_storage_key_mojom_traits_test.cc
      M third_party/blink/renderer/platform/storage/blink_storage_key_test.cc
      M url/origin.h
      14 files changed, 427 insertions(+), 54 deletions(-)


      To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
      Gerrit-Change-Number: 4189064
      Gerrit-PatchSet: 6
      Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
      Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
      Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
      Gerrit-Reviewer: Josh Karlin <jka...@chromium.org>
      Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
      Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
      Gerrit-Attention: Josh Karlin <jka...@chromium.org>
      Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
      Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
      Gerrit-Attention: Steven Bingler <bin...@chromium.org>
      Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
      Gerrit-MessageType: newchange

      Ari Chivukula (Gerrit)

      unread,
      Jan 24, 2023, 7:46:18 AM1/24/23
      to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Josh Karlin, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

      Attention is currently required from: Alex Moshchuk, Daniel Cheng, Josh Karlin, Steven Bingler, Yoav Weiss.

      Patch set 6:Auto-Submit +1

      View Change

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Josh Karlin <jka...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 12:46:10 +0000

        Josh Karlin (Gerrit)

        unread,
        Jan 24, 2023, 9:18:01 AM1/24/23
        to Matt Menke, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Ari Chivukula, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Steven Bingler, Josh Karlin

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Matt Menke, Steven Bingler, Yoav Weiss.

        Josh Karlin would like Matt Menke to review this change authored by Ari Chivukula.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-MessageType: newchange

        Josh Karlin (Gerrit)

        unread,
        Jan 24, 2023, 9:18:09 AM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org, Josh Karlin

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Matt Menke, Steven Bingler, Yoav Weiss.

        View Change

        1 comment:

        • Patchset:

          • Patch Set #6:

            Switching to Matt to review this as he knows much more about the storage keys at this point.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 14:17:53 +0000

        Matt Menke (Gerrit)

        unread,
        Jan 24, 2023, 10:58:17 AM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Steven Bingler, Yoav Weiss.

        View Change

        2 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #6, Line 440:


            base::NumberToString(
            top_level_site_.nonce()->GetHighForSerialization()),

            Why is top_level_site_.SerializeWithNonce() insufficient? Does this need to be ASCII text?

        • File third_party/blink/public/common/storage_key/storage_key.h:

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 15:58:06 +0000

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 11:45:00 AM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Daniel Cheng, Matt Menke, Steven Bingler, Yoav Weiss.

        Patch set 7:Auto-Submit +1Commit-Queue +1

        View Change

        2 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Why is top_level_site_. […]

            We don't want to depend on other serialization paths here generally, we want to be in as close to absolute control as possible to ensure no unexpected issues

        • File third_party/blink/public/common/storage_key/storage_key.h:

          • Done

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 16:44:51 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Matt Menke <mme...@chromium.org>
        Gerrit-MessageType: comment

        Matt Menke (Gerrit)

        unread,
        Jan 24, 2023, 11:47:18 AM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Steven Bingler, Yoav Weiss.

        View Change

        1 comment:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • We don't want to depend on other serialization paths here generally, we want to be in as close to absolute control as possible to ensure no unexpected issues

            Why? Per docs, these will not be reused across restarts. This seems like re-inventing the wheel to me. Using its built-in-functions provides more protection against changes in internal representation.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 16:47:10 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Ari Chivukula <ari...@chromium.org>

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 11:51:36 AM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Steven Bingler

        Attention is currently required from: Alex Moshchuk, Daniel Cheng, Matt Menke, Steven Bingler, Yoav Weiss.

        Ari Chivukula has uploaded this change for review.

        View Change

        14 files changed, 429 insertions(+), 56 deletions(-)


        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 11:51:41 AM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Daniel Cheng, Matt Menke, Steven Bingler, Yoav Weiss.

        View Change

        1 comment:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • > We don't want to depend on other serialization paths here generally, we want to be in as close to […]

            You mean because the top_level_site is opaque? That's true, the storage session shouldn't be resumed, but the code is written in a way that assumes it could be and I want to keep the serialization intact for that reason. If we weren't already doing custom nonce and origin serialization in this file I wouldn't be pushing back, but we are so I want to follow the trend. @mek for perspective

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 16:51:32 +0000

        Marijn Kruisselbrink (Gerrit)

        unread,
        Jan 24, 2023, 12:05:07 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Matt Menke, Steven Bingler, Yoav Weiss.

        View Change

        1 comment:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • You mean because the top_level_site is opaque? That's true, the storage session shouldn't be resumed […]

            SerializeWithNonce does not seem to currently be part of SchemefulSite's public API? Although that can of course be changed.

            A problem with reusing the existing serialization API though is that we have to make sure the data does not contain ^, as that would mess up our parsing. As far as I can tell, SerializeWithNonce can't provide that guarantee, since Pickle.WriteUInt64 just copies the provided bits verbatim. So if we wanted to be able to re-use arbitrary serialization methods for sub fields we would have had to use a serialization format for storage keys that does not rely just on separators to separate the individual fields. Since that's not what we have today, I don't think currently we can rely on at least something like SerializeWithNonce.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 17:03:12 +0000

        Matt Menke (Gerrit)

        unread,
        Jan 24, 2023, 12:17:40 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Marijn Kruisselbrink, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Marijn Kruisselbrink, Steven Bingler, Yoav Weiss.

        View Change

        3 comments:

        • File net/base/schemeful_site.h:

          • Patch Set #6, Line 210: nonce

            Let's not expose nonce() through this API. If the consumer needs it, and it needs internal_origin as well, have it get the nonce through internal_origin(). As-is, this class has no dependency on the details of nonce(), and I don't think we want to introduce one just for one consumer that's opinionated on the issue.

          • Patch Set #6, Line 214: internal_origin

            Let's not call this origin, because it's not actually an origin. It's a scheme+eTLD+1 packing into a url::Origin *or* an opaque origin. We could consider making it a variant or something, but since scheme+eTLD+1 can be packing into a url::Origin, I'm not sure it's worth the investment.

            I'm open to ideas, but here are some options:

            • internal_value()
            • as_bogus_origin()
            • not_actually_an_origin()

            With a scary comment about what it really is, and that demands consumers users pinky swear they know what they're doing before using it. internal_value(base::PinkySwear(<ldap>)) (no, not really).

        • File third_party/blink/common/storage_key/storage_key.cc:

          • SerializeWithNonce does not seem to currently be part of SchemefulSite's public API? Although that can of course be changed.

            It is not, for the same reason the nonce itself is not part of url::Origin's public API (which is what SerializeWithNonce wraps).

          • A problem with reusing the existing serialization API though is that we have to make sure the data does not contain ^, as that would mess up our parsing. As far as I can tell, SerializeWithNonce can't provide that guarantee, since Pickle.WriteUInt64 just copies the provided bits verbatim. So if we wanted to be able to re-use arbitrary serialization methods for sub fields we would have had to use a serialization format for storage keys that does not rely just on separators to separate the individual fields. Since that's not what we have today, I don't think currently we can rely on at least something like SerializeWithNonce.

          • If that's really the only issue, this code could just base-64-encode the serialization of the site.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 17:17:28 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Marijn Kruisselbrink <m...@chromium.org>

        Yoav Weiss (Gerrit)

        unread,
        Jan 24, 2023, 12:18:16 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Marijn Kruisselbrink, Steven Bingler.

        View Change

        1 comment:

        • File third_party/blink/renderer/platform/storage/blink_storage_key.cc:

          • Patch Set #6, Line 62: if (top_level_site.IsOpaque()) {

            Can you surround all the constructor code with `#ifdef DCHECK_IS_ON`?

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 17:18:05 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Gerrit-MessageType: comment

        Daniel Cheng (Gerrit)

        unread,
        Jan 24, 2023, 12:31:34 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Marijn Kruisselbrink, Steven Bingler.

        View Change

        3 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #7, Line 239: std::string high_digits = static_cast<std::string>(

            We don't need to materialize a string here. StringToUint64 is happy to work with StringPieces.

          • Patch Set #7, Line 258: base::UnguessableToken::Deserialize(nonce_high, nonce_low);

            We're working on updating how this deserialize method works (it can return nullopt now, if both high and low are 0).

            Do you proactively using Deserialize2() here? And I guess we'd want to return nullopt to indicate failure if we get nullopt from Deserialize2.

            (see https://chromium-review.googlesource.com/c/chromium/src/+/4135540 for some context)

            These comments apply to the above (pre-existing) code too.

        • File url/origin.h:

          • Patch Set #7, Line 45: FORWARD_DECLARE_TEST(StorageKeyTest, SerializeDeserializeOpaqueTopLevelSite);

            Can we just give this test a test fixture and friend the test fixture instead? Same below.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 17:31:26 +0000

        Josh Karlin (Gerrit)

        unread,
        Jan 24, 2023, 1:22:33 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Marijn Kruisselbrink, Steven Bingler.

        View Change

        1 comment:

        • File net/base/schemeful_site.h:

          • I think this is called twice in one location. Is there a need for the private method? Same for internal_origin() below.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 6
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 18:22:25 +0000

        Matt Menke (Gerrit)

        unread,
        Jan 24, 2023, 1:28:31 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Josh Karlin, Marijn Kruisselbrink, Steven Bingler.

        View Change

        1 comment:

        • File net/base/schemeful_site.h:

          • Patch Set #6, Line 210: nonce

            I think this is called twice in one location. Is there a need for the private method? Same for internal_origin() below.

          • In general, I don't think we should have code depend on private member variables of unrelated classes. If we have to friend across such boundaries, I think it's much better to provide private accessors. Otherwise, it's not clear what internal state external classes are depending on. Yes, there's only on field here (for now), but still think it's better this way.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 7
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 18:28:17 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Josh Karlin <jka...@chromium.org>
        Gerrit-MessageType: comment

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 1:29:14 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Steven Bingler, Yoav Weiss.

        Patch set 8:Auto-Submit +1Commit-Queue +1

        View Change

        7 comments:

        • File net/base/schemeful_site.h:

          • Let's not expose nonce() through this API. […]

            Done

          • > I think this is called twice in one location. […]

            Done

          • Let's not call this origin, because it's not actually an origin. […]

            Done

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #7, Line 239: std::string high_digits = static_cast<std::string>(

            We don't need to materialize a string here. StringToUint64 is happy to work with StringPieces.

          • Done

          • We're working on updating how this deserialize method works (it can return nullopt now, if both high […]

            Done

        • File third_party/blink/renderer/platform/storage/blink_storage_key.cc:

          • Patch Set #6, Line 62: if (top_level_site.IsOpaque()) {

            Can you surround all the constructor code with `#ifdef DCHECK_IS_ON`?

          • Done

        • File url/origin.h:

          • Patch Set #7, Line 45: FORWARD_DECLARE_TEST(StorageKeyTest, SerializeDeserializeOpaqueTopLevelSite);

            Can we just give this test a test fixture and friend the test fixture instead? Same below.

          • Done

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 8
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 18:29:05 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Josh Karlin <jka...@chromium.org>
        Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
        Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>

        Matt Menke (Gerrit)

        unread,
        Jan 24, 2023, 1:32:36 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Steven Bingler, Yoav Weiss.

        View Change

        1 comment:

        • File net/base/schemeful_site.h:

          • Patch Set #8, Line 209:

            it's a scheme+eTLD+1 packed into a
            // (possibly opaque) Origin

            It's actually on opaque origin or a scheme+eTLD+1 packing into a non-opaque origin. In the opaque origin case, we leave the precusor stuff alone, as that's pretty niche, and not exposed by the API.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 8
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 18:32:30 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Gerrit-MessageType: comment

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 1:39:03 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Daniel Cheng, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Steven Bingler, Yoav Weiss.

        Patch set 9:Auto-Submit +1Commit-Queue +1

        View Change

        1 comment:

        • File net/base/schemeful_site.h:

          • It's actually on opaque origin or a scheme+eTLD+1 packing into a non-opaque origin. […]

            Done

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 9
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 18:38:56 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes

        Daniel Cheng (Gerrit)

        unread,
        Jan 24, 2023, 2:16:27 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Josh Karlin, Marijn Kruisselbrink, Matt Menke, Steven Bingler, Yoav Weiss.

        Patch set 9:Code-Review +1

        View Change

        3 comments:

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 9
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Attention: Matt Menke <mme...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 19:16:18 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Gerrit-MessageType: comment

        Matt Menke (Gerrit)

        unread,
        Jan 24, 2023, 2:30:43 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Josh Karlin, Marijn Kruisselbrink, Steven Bingler, Yoav Weiss.

        Patch set 9:Code-Review +1

        View Change

        1 comment:

        • Patchset:

          • Patch Set #9:

            LGTM. Still skeptical of poking at the internals of origin, but not going to block on it.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 9
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 19:30:35 +0000

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 2:46:09 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Josh Karlin, Marijn Kruisselbrink, Steven Bingler, Yoav Weiss.

        Patch set 10:Auto-Submit +1Commit-Queue +1

        View Change

        3 comments:

        • File net/base/schemeful_site.h:

          • Done

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #6, Line 440:


            base::NumberToString(
            top_level_site_.nonce()->GetHighForSerialization()),

            > SerializeWithNonce does not seem to currently be part of SchemefulSite's public API? Although that […]

            Done

        • File third_party/blink/common/storage_key/storage_key_unittest.cc:

          • Done

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 10
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Josh Karlin <jka...@chromium.org>
        Gerrit-Attention: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 19:45:57 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Marijn Kruisselbrink <m...@chromium.org>
        Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
        Comment-In-Reply-To: Ari Chivukula <ari...@chromium.org>

        Steven Bingler (Gerrit)

        unread,
        Jan 24, 2023, 3:15:21 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Yoav Weiss.

        View Change

        8 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #9, Line 51:

            <StorageKey `key`.origin> + "/" + [ ^4" + <StorageKey
            // `key`.top_level_site.nonce.High64Bits> + "^5" + <StorageKey
            // `key`.top_level_site.nonce.Low64Bits> ]

            Can you add the precursor here?

          • Patch Set #9, Line 102: attributes

            nit: "encoded attributes". It's confusing yes, but "encoded attributes" refers to the separator + uint8_t value pair. Saying "attributes" on its own makes me think that only 2 things are encoded in the string when it's actually 3 (origin, highbits, lowbits)

            The whole "encoded attributes" things could probably be renamed to something better in the future.

          • Patch Set #9, Line 286: url::SchemeHostPort(site_precursor)

            Can you construct this around line 275 and then call `IsValid()`?

          • Patch Set #9, Line 426: ancestor_chain_bit must be kSameSite,

            Must it? Is a `data: -> a.com -> b.com` frame tree not possible?

          • Patch Set #9, Line 574: StorageKey::ShouldSkipKeyDueToPartitioning(

            You'll also want to update this to skip opaque TLS StorageKeys.

        • File third_party/blink/common/storage_key/storage_key_unittest.cc:

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 10
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 20:15:11 +0000

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 4:35:39 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Steven Bingler, Yoav Weiss.

        Patch set 11:Auto-Submit +1Commit-Queue +1

        View Change

        8 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #9, Line 51:

            <StorageKey `key`.origin> + "/" + [ ^4" + <StorageKey
            // `key`.top_level_site.nonce.High64Bits> + "^5" + <StorageKey
            // `key`.top_level_site.nonce.Low64Bits> ]

            Can you add the precursor here?

          • Done

          • nit: "encoded attributes". […]

            Done

          • Patch Set #9, Line 286: url::SchemeHostPort(site_precursor)

            Can you construct this around line 275 and then call `IsValid()`?

          • Done

          • Patch Set #9, Line 574: StorageKey::ShouldSkipKeyDueToPartitioning(

            You'll also want to update this to skip opaque TLS StorageKeys.

          • Done

        • File third_party/blink/common/storage_key/storage_key_unittest.cc:

          • Done

          • I don't think it's a straightforward merge because that one is aimed at nonce testing specifically. I think it's better to have this test focused on the high == low == 0 case.

          • To prevent it getting angry about not storing return values.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 11
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 21:35:33 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Steven Bingler <bin...@chromium.org>
        Gerrit-MessageType: comment

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 4:37:09 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Steven Bingler, Yoav Weiss.

        View Change

        1 comment:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Patch Set #9, Line 426: ancestor_chain_bit must be kSameSite,

            So here's the thing, since ancestor_chain_bit really only cares if the frame's site_for_cookies is f […]

            Sorry that third line should read:
            (3) An origin and a non-matching site were serialized -> {origin, site, SameSite} [this could also be CrossSite, it's just a question of setting a convention).

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 11
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 21:37:01 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Ari Chivukula <ari...@chromium.org>

        Steven Bingler (Gerrit)

        unread,
        Jan 24, 2023, 5:08:02 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Yoav Weiss.

        View Change

        3 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Sorry that third line should read: […]

            Ok, since the A -> B -> A case isn't possible here that seems fine by me.

            Can you please document the decision to make the ACB irrelevant for opaque TLSs in StorageKey.h?

        • File third_party/blink/common/storage_key/storage_key_unittest.cc:

          • To prevent it getting angry about not storing return values.

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 11
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 22:07:51 +0000

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 5:25:11 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, Steven Bingler, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Steven Bingler, Yoav Weiss.

        Patch set 12:Auto-Submit +1Commit-Queue +1

        View Change

        3 comments:

        • File third_party/blink/common/storage_key/storage_key.cc:

          • Ok, since the A -> B -> A case isn't possible here that seems fine by me. […]

            Done

        • File third_party/blink/common/storage_key/storage_key_unittest.cc:

          • Gotcha, I think `std::ignore` is preferred here […]

            Done

        • File third_party/blink/renderer/platform/network/blink_schemeful_site.h:

          • I wanted to stick with the conventions of local origin representation and that's what SecurityOrigin does

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 12
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Steven Bingler <bin...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 22:25:03 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes

        Steven Bingler (Gerrit)

        unread,
        Jan 24, 2023, 5:38:49 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Ari Chivukula, Yoav Weiss.

        Patch set 12:Code-Review +1

        View Change

        2 comments:

        • Patchset:

        • File third_party/blink/public/common/storage_key/storage_key.h:

          • Patch Set #12, Line 24:

            // A class used by Storage APIs as a key for storage. An entity with a given
            // storage key may not access data keyed with any other storage key.
            //
            // When third party storage partitioning is disabled, a StorageKey is equivalent
            // to an origin, which is how storage has historically been partitioned.
            //
            // When third party storage partitioning is enabled, a storage key additionally
            // contains a top-level site and an ancestor chain bit (see below). This
            // achieves partitioning of an origin by the top-level site that it is embedded
            // in. For example, https://chat.example.net embedded in
            // https://social-example.org is a distinct key from https://chat.example.net
            // embedded in https://news-example.org.
            //
            // A key is a third-party key if its origin is not in its top-level site (or if
            // its ancestor chain bit is `kCrossSite`; see below); otherwise it is a
            // first-party key.
            //
            // A corner-case is a first-party origin embedded in a third-party origin, such
            // as https://a.com embedded in https://b.com in https://a.com. The inner
            // `a.com` frame can be controlled by `b.com`, and is thus considered
            // third-party. The ancestor chain bit tracks this status.
            //
            // Storage keys can also optionally have a nonce. Keys with different nonces are
            // considered distinct, and distinct from a key with no nonce. This is used to
            // implement iframe credentialless and other forms of storage partitioning.
            // Keys with a nonce disregard the top level site and ancestor chain bit. For
            // consistency we set them to the origin's site and `kSameSite` respectively.

            Can you add a note about opaque TLSs and ignoring the ACB up here too?

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 12
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 22:38:43 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Gerrit-MessageType: comment

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 6:07:13 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Steven Bingler, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Alex Moshchuk, Yoav Weiss, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Alex Moshchuk, Yoav Weiss.

        Patch set 13:Auto-Submit +1Commit-Queue +1

        View Change

        1 comment:

        • File third_party/blink/public/common/storage_key/storage_key.h:

          • Done

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 13
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jan 2023 23:07:06 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes

        Alex Moshchuk (Gerrit)

        unread,
        Jan 24, 2023, 7:07:21 PM1/24/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Tricium, Steven Bingler, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Yoav Weiss, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Ari Chivukula, Yoav Weiss.

        Patch set 14:Code-Review +1

        View Change

        2 comments:

        • Patchset:

          • Patch Set #14:

            content/ LGTM, though I'm not sure I understand why the ancestor bit is kSameSite for opaque top-level frames.

        • File content/browser/renderer_host/render_frame_host_impl.cc:

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 14
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Comment-Date: Wed, 25 Jan 2023 00:07:13 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Gerrit-MessageType: comment

        Ari Chivukula (Gerrit)

        unread,
        Jan 24, 2023, 8:57:05 PM1/24/23
        to blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Tricium, Steven Bingler, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Yoav Weiss, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Yoav Weiss.

        Patch set 15:Auto-Submit +1

        View Change

        1 comment:

        • File content/browser/renderer_host/render_frame_host_impl.cc:

          • FWIW, without any other context, this seems confusing to me on first glance. […]

            Done

        To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
        Gerrit-Change-Number: 4189064
        Gerrit-PatchSet: 15
        Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
        Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
        Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
        Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
        Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
        Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
        Gerrit-CC: Josh Karlin <jka...@chromium.org>
        Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
        Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
        Gerrit-Comment-Date: Wed, 25 Jan 2023 01:56:54 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Alex Moshchuk <ale...@chromium.org>
        Gerrit-MessageType: comment

        Yoav Weiss (Gerrit)

        unread,
        Jan 25, 2023, 12:33:02 AM1/25/23
        to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Alex Moshchuk, Tricium, Steven Bingler, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, Chromium LUCI CQ, chromium...@chromium.org

        Attention is currently required from: Ari Chivukula.

        Patch set 15:Code-Review +1Commit-Queue +2

        View Change

          To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
          Gerrit-Change-Number: 4189064
          Gerrit-PatchSet: 15
          Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
          Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
          Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
          Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
          Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
          Gerrit-CC: Josh Karlin <jka...@chromium.org>
          Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
          Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
          Gerrit-Comment-Date: Wed, 25 Jan 2023 05:32:49 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          Gerrit-MessageType: comment

          Chromium LUCI CQ (Gerrit)

          unread,
          Jan 25, 2023, 12:35:18 AM1/25/23
          to Ari Chivukula, blink-re...@chromium.org, blink-...@chromium.org, bnc+...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, net-r...@chromium.org, Yoav Weiss, Alex Moshchuk, Tricium, Steven Bingler, Matt Menke, Daniel Cheng, Josh Karlin, Marijn Kruisselbrink, chromium...@chromium.org

          Chromium LUCI CQ submitted this change.

          View Change

          Approvals: Daniel Cheng: Looks good to me Yoav Weiss: Looks good to me; Commit Alex Moshchuk: Looks good to me Steven Bingler: Looks good to me Ari Chivukula: Send CL to CQ automatically after approval Matt Menke: Looks good to me
          [StorageKey] Allow (de)serialization of opaque top_level_site

          It's possible, for example on a data url with an iframe, to have a
          non-opaque origin and an opaque top_level_site. In such instances we
          need to be able to serialize the opaque top_level_site so that storage
          access is possible. In future, we may want to remove this capability but
          with a target launch of M112 we cannot take on more near term
          deprecations.

          Bug: 1407243
          Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
          Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4189064
          Reviewed-by: Matt Menke <mme...@chromium.org>
          Reviewed-by: Yoav Weiss <yoav...@chromium.org>
          Commit-Queue: Yoav Weiss <yoav...@chromium.org>
          Reviewed-by: Daniel Cheng <dch...@chromium.org>
          Auto-Submit: Ari Chivukula <ari...@chromium.org>
          Reviewed-by: Alex Moshchuk <ale...@chromium.org>
          Reviewed-by: Steven Bingler <bin...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#1096631}

          ---
          M content/browser/renderer_host/navigation_request.cc
          M content/browser/renderer_host/render_frame_host_impl.cc
          M net/base/schemeful_site.h
          M net/base/schemeful_site_unittest.cc
          M third_party/blink/common/storage_key/storage_key.cc
          M third_party/blink/common/storage_key/storage_key_mojom_traits_unittest.cc
          M third_party/blink/common/storage_key/storage_key_unittest.cc
          M third_party/blink/public/common/storage_key/storage_key.h
          M third_party/blink/renderer/platform/network/blink_schemeful_site.h
          M third_party/blink/renderer/platform/network/blink_schemeful_site_test.cc
          M third_party/blink/renderer/platform/storage/blink_storage_key.cc
          M third_party/blink/renderer/platform/storage/blink_storage_key_mojom_traits_test.cc
          M third_party/blink/renderer/platform/storage/blink_storage_key_test.cc
          M url/origin.h
          14 files changed, 580 insertions(+), 86 deletions(-)


          To view, visit change 4189064. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I0698e0b209884571e9c24b0f3b54490de90d3a2b
          Gerrit-Change-Number: 4189064
          Gerrit-PatchSet: 16
          Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
          Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
          Gerrit-Reviewer: Matt Menke <mme...@chromium.org>
          Gerrit-Reviewer: Steven Bingler <bin...@chromium.org>
          Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
          Gerrit-CC: Josh Karlin <jka...@chromium.org>
          Gerrit-CC: Marijn Kruisselbrink <m...@chromium.org>
          Gerrit-MessageType: merged
          Reply all
          Reply to author
          Forward
          0 new messages