Get TaskAttribution to work with MessagePort's postMessage. [chromium/src : main]

0 views
Skip to first unread message

Yoav Weiss (Gerrit)

unread,
Aug 8, 2022, 7:44:25 AM8/8/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Scott Haseley, Yoav Weiss, Yuki Shiino.

Patch set 1:Commit-Queue +1

View Change

1 comment:

  • Patchset:

    • Patch Set #1:

      Hey yukishiino@ and shaseley@!

      This is an initial draft of a solution for https://bugs.chromium.org/p/chromium/issues/detail?id=1342012 A couple of points that are missing here:

      • I'm not sure if/how we can make nullable uints in mojom, so the current solution is using a sentinel 0 as an indication that the task has no parent. That's not great. Ideally we'd solve this with a nullable, otherwise I'll make sure that no task can have a 0 ID..
      • We sometimes know the sender's agent cluster's ID at the receiver side, but only when the message is locked to the same agent cluster. Here we need slightly different semantics: the message is not locked, but we still want to know the agent cluster ID. I left a comment RE a couple of possible solutions for that.

      I'd love your thoughts on this solution. Assuming they are favorable, I'll also tackle the remaining parts (agent cluster limitation, window.postMessage, BroadcastChannel) in followups.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 1
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 11:44:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Aug 8, 2022, 7:52:41 AM8/8/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Scott Haseley, Yuki Shiino.

Patch set 1:Commit-Queue +1

View Change

1 comment:

  • File third_party/blink/public/common/DEPS:

    • Patch Set #1, Line 26: "+third_party/blink/renderer/platform/scheduler/public",

      Might be cleaner to just move task_id.h to blink/public/common

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 1
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 11:52:30 +0000

Yoav Weiss (Gerrit)

unread,
Aug 8, 2022, 8:46:44 AM8/8/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Scott Haseley, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/public/common/DEPS:

    • Might be cleaner to just move task_id. […]

      Done

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 3
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 12:46:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>
Gerrit-MessageType: comment

Michal Mocny (Gerrit)

unread,
Aug 8, 2022, 10:25:33 AM8/8/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Scott Haseley, Yoav Weiss, Yuki Shiino.

View Change

2 comments:

  • Patchset:

    • Patch Set #3:

      I am not familiar enough with these concepts to review thoroughly. I took a first pass read-through anyway, and it makes sense to me!

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Patch Set #3, Line 314: std::unique_ptr<scheduler::TaskAttributionTracker::TaskScope>

      This unqiue_ptr doesn't seem to actually be used here. I do see that CreateTaskScore() has side effects, but is it important that the destructor not be called until this function unwinds?

      If it is important, would a comment be useful here? If it is not important, could we save the variable and just leave the return value of of CreateTaskScore unused?

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 3
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 14:25:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Yuki Shiino (Gerrit)

unread,
Aug 8, 2022, 11:30:53 AM8/8/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Scott Haseley, Yoav Weiss.

View Change

3 comments:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 3
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 15:30:36 +0000

Yoav Weiss (Gerrit)

unread,
Aug 8, 2022, 3:48:19 PM8/8/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

2 comments:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Patch Set #3, Line 314: std::unique_ptr<scheduler::TaskAttributionTracker::TaskScope>

      This unqiue_ptr doesn't seem to actually be used here. […]

      It's important to ensure the task scope remains valid for the function's scope (and up until the event was sync dispatched). I'll add a comment.

    • Patch Set #3, Line 326: DOMWrapperWorld::MainWorld()

      Why can we assume it's the main world? It's possible to be an isolated world, isn't it?

    • Yeah, I think so. I'm failing to find a way to properly check if we're in main world, though. `context->GetCurrentWorld()` is returning a nullptr and I'm not finding a way around it..

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 4
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Aug 2022 19:48:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michal Mocny <mmo...@chromium.org>
Comment-In-Reply-To: Yuki Shiino <yukis...@chromium.org>
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Aug 9, 2022, 1:05:59 AM8/9/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yoav Weiss, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • It's important to ensure the task scope remains valid for the function's scope (and up until the eve […]

      Done

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 4
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Aug 2022 05:05:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michal Mocny <mmo...@chromium.org>

Yuki Shiino (Gerrit)

unread,
Aug 9, 2022, 3:09:43 AM8/9/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yoav Weiss.

View Change

1 comment:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Patch Set #3, Line 326: DOMWrapperWorld::MainWorld()

      Yeah, I think so. I'm failing to find a way to properly check if we're in main world, though. […]

      Replied offline.

      I started thinking that Task Attribution shouldn't be associated with any v8::Context in the first place. Since the purpose of Task Attribution is to track down an execution sequence, it should be associated with v8::Isolate instead of v8::Context, because v8::Isolate is an unit of execution sequence.

      Just for example, v8::TryCatch is associated with v8::Isolate because exception handling is about execution sequence.

      I think the best solution (for a long term) is to move the implementation of Task Attribution from v8::Context to v8::Isolate.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 5
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Tue, 09 Aug 2022 07:09:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 1:53:13 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

Patch set 10:Commit-Queue +1

View Change

2 comments:

  • File third_party/blink/public/mojom/messaging/transferable_message.mojom:

    • FYI, […]

      Done

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Replied offline. […]

      This makes sense to me, and tbh, would simplify some of the use cases (where an isolate is present but a ScriptState is not). I'm assuming this should be in a followup, and not block this specifically, right?

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 10
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 05:53:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 1:55:20 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/common/messaging/transferable_message_mojom_traits.cc:

    • Patch Set #11, Line 31: out->delegated_capability = data.delegated_capability();

      Here I'm not doing anything in particular for parent_task_id, as I'm assuming that it's handled by its own traits. Let me know if I'm wrong.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 11
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 05:55:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 1:58:06 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Michal Mocny, Yuki Shiino, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/common/messaging/transferable_message_mojom_traits.cc:

    • Patch Set #11, Line 10: #include "third_party/blink/public/mojom/messaging/transferable_message.mojom.h"

      This is spurious, but leaving it here for now just to keep this file in the diff (to address the comment below)

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 11
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 05:57:55 +0000

Yuki Shiino (Gerrit)

unread,
Aug 10, 2022, 2:44:48 AM8/10/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yoav Weiss.

Patch set 11:Code-Review +1

View Change

4 comments:

    • This makes sense to me, and tbh, would simplify some of the use cases (where an isolate is present b […]

      I think we'd need the followings at least to land this patch.

      1. File a bug and add a TODO(crbug.com/xxx) comment to the bug. It's very good to have a fix plan for a long term in the bug.
      2. Explain why this is acceptable as a short-term fix.

      Especially,
      2-1. Task Attribution uses the ScriptState (hence the v8::Context) only in order to store the tracking id in the v8::Context, and
      2-2. The ScriptState (hence the v8::Context) is never accessible from author scripts.

      Plus, we'd better to explain possible side effect (disclaimer).
      3. It's possible that, when used with isolated worlds, cross talk among the main world and isolated worlds may be possible. As a result, the tracking ID can be wrong in such a case. However, Task Attribution is used as FYI for web developers and possible cross talk (wrong tracking ID) won't be a security issue nor severe issue.

      I think it's important to note/comment that a) it's wrong to assume the main world, and b) this wrong assumption causes only minor issues.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 11
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 06:44:37 +0000

Yuki Shiino (Gerrit)

unread,
Aug 10, 2022, 3:33:46 AM8/10/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yoav Weiss.

View Change

5 comments:

  • File third_party/blink/common/messaging/task_attribution_id_mojom_traits.cc:

  • File third_party/blink/common/messaging/transferable_message_mojom_traits.cc:

    • Patch Set #11, Line 31: out->delegated_capability = data.delegated_capability();

      Here I'm not doing anything in particular for parent_task_id, as I'm assuming that it's handled by i […]

      I believe that you need to handle it for yourself.

  • File third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 11
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 07:33:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 4:26:07 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

3 comments:

  • File third_party/blink/public/common/messaging/transferable_message_mojom_traits.h:

    • absl::make_optional? […]

      Done

  • File third_party/blink/renderer/core/messaging/blink_transferable_message_mojom_traits.h:

    • Ditto. […]

      Done

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • I think we'd need the followings at least to land this patch. […]

      Done

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 12
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 08:25:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 5:40:46 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yoav Weiss, Yuki Shiino.

Patch set 12:Commit-Queue +1

View Change

3 comments:

  • File third_party/blink/common/messaging/task_attribution_id_mojom_traits.cc:

    • Done

    • Done

  • File third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h:

    • While I'm successfully using TaskAttributionId::DataView in the cc file, I'm failing to get this to build with it here.. I'd appreciate some advice 😊

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 12
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 09:40:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 5:46:19 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h:

    • While I'm successfully using TaskAttributionId::DataView in the cc file, I'm failing to get this to […]

      NM, I think I'm hitting some circular dependency where this relies on task_attribution_id.mojom.h and it relies on this h file. I'll figure out a way out of it..

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 13
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 09:46:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>

Yuki Shiino (Gerrit)

unread,
Aug 10, 2022, 5:55:32 AM8/10/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley.

View Change

1 comment:

  • File third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h:

    • Patch Set #11, Line 15: TaskAttributionIdDataView

      While I'm successfully using TaskAttributionId::DataView in the cc file, I'm failing to get this to […]

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 13
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 09:55:20 +0000

Kouhei Ueno (Gerrit)

unread,
Aug 10, 2022, 7:35:08 AM8/10/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yoav Weiss.

Patch set 13:Code-Review +1

View Change

1 comment:

  • File third_party/blink/public/common/scheduler/task_attribution_id.h:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 13
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 11:34:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 8:32:03 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

2 comments:

  • File third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h:

    • https://source.chromium. […]

      This was related to the fact that task_attribution_id_mojom_traits.h was dependent on task_attribution_id_mojom.h and vice versa, create a circular dependency (that was broken by the #defines at the beginning of the h files, but ended up not defining TaskAttributionId::DataView). Now it's all good 😊

    • Done

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 14
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 12:31:50 +0000

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 8:43:50 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Kouhei Ueno, Michal Mocny, Scott Haseley, Yuki Shiino.

Patch set 14:Commit-Queue +1

View Change

2 comments:

  • File third_party/blink/common/messaging/transferable_message_mojom_traits.cc:

    • I believe that you need to handle it for yourself.

      Thanks! Handled 😊

  • File third_party/blink/public/common/scheduler/task_attribution_id.h:

    • Done! Also simplified the added constructor as a result.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 14
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 12:43:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Kouhei Ueno <kou...@chromium.org>

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 8:44:35 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Kouhei Ueno, Michal Mocny, Scott Haseley, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/common/messaging/transferable_message_mojom_traits.cc:

    • Patch Set #11, Line 10: #include "third_party/blink/public/mojom/messaging/transferable_message.mojom.h"

      This is spurious, but leaving it here for now just to keep this file in the diff (to address the com […]

      Resolving

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 15
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Kouhei Ueno <kou...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 12:44:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Aug 10, 2022, 8:51:30 AM8/10/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Mike West, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Mike West, Scott Haseley.

View Change

1 comment:

  • Patchset:

    • Patch Set #15:

      Hey Mike! Can you take a look at the mojo parts of this CL? (which are admittedly, a lot of the CL..)

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 15
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 12:51:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Dave Tapuska (Gerrit)

unread,
Aug 10, 2022, 10:34:56 AM8/10/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Mike West, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Mike West, Scott Haseley, Yoav Weiss.

View Change

1 comment:

  • File third_party/blink/public/mojom/messaging/transferable_message.mojom:

    • Patch Set #15, Line 41: TaskAttributionId? parent_task_id;

      Won't this just cause confusion? The TaskAttributionId is scoped per renderer process so passing it across a mojom boundary seems confusing because when it hits another renderer it would be referencing a completely different task id.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 15
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Wed, 10 Aug 2022 14:34:39 +0000

Yoav Weiss (Gerrit)

unread,
Aug 11, 2022, 4:14:48 AM8/11/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Dave Tapuska, Mike West, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley.

View Change

1 comment:

  • File third_party/blink/public/mojom/messaging/transferable_message.mojom:

    • Won't this just cause confusion? The TaskAttributionId is scoped per renderer process so passing it […]

      This IPC is used both between different renderers as well as on the same renderer. Frameworks are postMessaging themselves in order to schedule tasks, which is the case I'm trying to tackle here.

      There's a TODO(crbug.com/1351643) in message_port.cc that is aimed to tackle this exact problem, and filter such task IDs if they are coming from a different agent cluster.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 15
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Thu, 11 Aug 2022 08:14:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>
Gerrit-MessageType: comment

Mike West (Gerrit)

unread,
Aug 11, 2022, 4:15:34 AM8/11/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Dave Tapuska, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Scott Haseley.

View Change

1 comment:

  • Patchset:

    • Patch Set #15:

      I agree with dtapuska@; it's not clear to me how this would work across an origin boundary. The test included in the CL only exercises code called in the same execution context. It would be ideal to take a look at workers, frames, and popups as well.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 15
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Thu, 11 Aug 2022 08:15:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Aug 11, 2022, 4:56:57 AM8/11/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Dave Tapuska, Mike West, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley.

View Change

2 comments:

  • Patchset:

    • Patch Set #15:

      I agree with dtapuska@; it's not clear to me how this would work across an origin boundary. […]

      I'm planning to cover that as part of crbug.com/1351641
      Would you consider this blocking?

  • File third_party/blink/public/mojom/messaging/transferable_message.mojom:

    • This IPC is used both between different renderers as well as on the same renderer. […]

      Apologies, that's crbug.com/1351641

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 15
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Thu, 11 Aug 2022 08:56:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>
Comment-In-Reply-To: Mike West <mk...@chromium.org>
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Sep 19, 2022, 8:59:13 AM9/19/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Dave Tapuska, Mike West, Kouhei Ueno, Yuki Shiino, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley.

View Change

2 comments:

  • Patchset:

    • Patch Set #15:

      I'm planning to cover that as part of crbug.com/1351641 […]

      Added filtering for messages from other agent clusters (plus iframe tests to verify it actually works).

  • Patchset:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 17
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Mon, 19 Sep 2022 12:58:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Yuki Shiino (Gerrit)

unread,
Sep 20, 2022, 5:02:42 AM9/20/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley, Yoav Weiss.

Patch set 17:Code-Review +1

View Change

1 comment:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 17
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Tue, 20 Sep 2022 09:02:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Dave Tapuska (Gerrit)

unread,
Sep 20, 2022, 10:02:10 AM9/20/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Mike West, Scott Haseley, Yoav Weiss.

View Change

2 comments:

  • Patchset:

    • Patch Set #17:

      Would it be possible to clobber the parent_task_id either in the browser RenderFrameHostImpl::PostMessageEvent (so that we don't leak the task ID to another renderer) or in LocalFrame::PostMessageEvent where the mojo side of that is handled in the renderer? (I personally prefer the browser side).

      Other than that this seems ok to me.

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Patch Set #17, Line 135: if (tracker && script_state->World().IsMainWorld()) {

      I feel a comment here why we don't do this for isolated worlds might be necessary.]

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 17
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Tue, 20 Sep 2022 14:01:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Sep 20, 2022, 3:57:02 PM9/20/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley.

View Change

1 comment:

  • Patchset:

    • Patch Set #17:

      Would it be possible to clobber the parent_task_id either in the browser RenderFrameHostImpl::PostMe […]

      I'm not sure I understand. Do you want me to run the agent cluster check in RenderFrameHostImpl::PostMessageEvent? Is there some way to get the destination agent cluster there?

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 17
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Tue, 20 Sep 2022 19:56:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Dave Tapuska (Gerrit)

unread,
Sep 20, 2022, 4:21:44 PM9/20/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Mike West, Scott Haseley, Yoav Weiss.

View Change

1 comment:

  • Patchset:

    • Patch Set #17:

      I'm not sure I understand. […]

      I was thinking:

      RenderFrameHostImpl::PostMessageEvent(... blink::TransferrableMessage message) {

      message.parent_task_id = absl::nullopt;

      }

      So we don't leak the parent_task_id from one renderer to another so it couldn't possibly be miused.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 17
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Tue, 20 Sep 2022 20:21:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>

Yoav Weiss (Gerrit)

unread,
Sep 21, 2022, 12:42:37 AM9/21/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley, Yuki Shiino.

View Change

1 comment:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 17
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Wed, 21 Sep 2022 04:42:16 +0000

Yoav Weiss (Gerrit)

unread,
Sep 21, 2022, 12:50:04 AM9/21/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley, Yuki Shiino.

Patch set 18:Commit-Queue +1

View Change

1 comment:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • I feel a comment here why we don't do this for isolated worlds might be necessary. […]

      Done

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 18
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Wed, 21 Sep 2022 04:49:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Mike West (Gerrit)

unread,
Sep 22, 2022, 2:11:10 AM9/22/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Scott Haseley, Yoav Weiss, Yuki Shiino.

View Change

2 comments:

  • Patchset:

    • Patch Set #19:

      I think it's reasonable to try this approach. One question below:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Patch Set #19, Line 330: // attributing continuations to that original task.

      Could you grab the world through `ExecutionContext::GetCurrentWorld()`?

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 19
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Sep 2022 06:10:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Sep 22, 2022, 3:07:05 AM9/22/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Mike West, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Scott Haseley, Yuki Shiino.

View Change

1 comment:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Patch Set #19, Line 330: // attributing continuations to that original task.

      Could you grab the world through `ExecutionContext::GetCurrentWorld()`?

    • Seems like `context->GetCurrentWorld()` returns a null refptr here, at least in some critical cases.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 19
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Sep 2022 07:06:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Mike West (Gerrit)

unread,
Sep 23, 2022, 2:37:52 AM9/23/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Scott Haseley, Yoav Weiss, Yuki Shiino.

Patch set 19:Code-Review +1

View Change

1 comment:

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Seems like `context->GetCurrentWorld()` returns a null refptr here, at least in some critical cases.

      Can you add a comment with some detail?

      Otherwise LGTM.

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 19
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 06:37:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Yoav Weiss <yoav...@chromium.org>

Yoav Weiss (Gerrit)

unread,
Sep 23, 2022, 2:47:54 AM9/23/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Arthur Sonzogni, Mike West, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Arthur Sonzogni, Dave Tapuska, Scott Haseley, Yuki Shiino.

View Change

2 comments:

  • Patchset:

    • Patch Set #19:

      Thanks for reviewing!!

      arthursonzogni@ - Can you take a look at render_frame_host_impl.cc ?

  • File third_party/blink/renderer/core/messaging/message_port.cc:

    • Can you add a comment with some detail? […]

      Done

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 19
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
Gerrit-Attention: Scott Haseley <shas...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 06:47:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Arthur Sonzogni (Gerrit)

unread,
Sep 23, 2022, 7:49:04 AM9/23/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Mike West, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Yoav Weiss.

View Change

1 comment:

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

    • Patch Set #20, Line 12604:


      // This is always called from either another renderer (through RemoteFrame) or
      // from the embedder itself. As such, we nullify the parent task ID here, to
      // prevent this information from leaking between renderers.
      message.parent_task_id = absl::nullopt;

      Does it exists one case where we need to exchange this data in between the renderer(s) and the browsers?

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 20
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 11:48:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Yoav Weiss (Gerrit)

unread,
Sep 23, 2022, 9:07:52 AM9/23/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Arthur Sonzogni, Mike West, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Arthur Sonzogni, Dave Tapuska.

View Change

1 comment:

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

    • Patch Set #20, Line 12604:


      // This is always called from either another renderer (through RemoteFrame) or
      // from the embedder itself. As such, we nullify the parent task ID here, to
      // prevent this information from leaking between renderers.
      message.parent_task_id = absl::nullopt;

    • Does it exists one case where we need to exchange this data in between the renderer(s) and the brows […]

      The data is (at least currently) only relevant inside of a single renderer process, so at the moment I don't believe there is such a case

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 20
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 13:07:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-MessageType: comment

Arthur Sonzogni (Gerrit)

unread,
Sep 23, 2022, 9:21:58 AM9/23/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Mike West, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Yoav Weiss.

View Change

1 comment:

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

    • Patch Set #20, Line 12604:


      // This is always called from either another renderer (through RemoteFrame) or
      // from the embedder itself. As such, we nullify the parent task ID here, to
      // prevent this information from leaking between renderers.
      message.parent_task_id = absl::nullopt;

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 20
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 13:21:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Arthur Sonzogni <arthurs...@chromium.org>

Yoav Weiss (Gerrit)

unread,
Sep 23, 2022, 10:34:11 AM9/23/22
to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Arthur Sonzogni, Mike West, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Arthur Sonzogni, Dave Tapuska, Mike West.

View Change

1 comment:

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

    • Patch Set #20, Line 12604:


      // This is always called from either another renderer (through RemoteFrame) or
      // from the embedder itself. As such, we nullify the parent task ID here, to
      // prevent this information from leaking between renderers.
      message.parent_task_id = absl::nullopt;

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 21
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 14:33:54 +0000

Arthur Sonzogni (Gerrit)

unread,
Sep 23, 2022, 10:43:08 AM9/23/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Mike West, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Mike West, Yoav Weiss.

Patch set 21:Code-Review +1

View Change

1 comment:

  • Patchset:

    • Patch Set #21:

      content/ LGTM.

      To make this somehow "future proof", it would have been nice to never send this attribute toward a different process. One possibility would have been not make it null during deserialization when the process is the browser process. Unfortunately:

      • There are no non hackish easy way to check what is the current process.
      • It is not clear to me how useful leaking this attribute is for an attacker.

      So I guess, the current patch is good enough ;-)

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 21
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Attention: Mike West <mk...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 14:42:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Mike West (Gerrit)

unread,
Sep 23, 2022, 11:08:38 AM9/23/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Arthur Sonzogni, Yuki Shiino, Dave Tapuska, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Dave Tapuska, Yoav Weiss.

Patch set 21:Code-Review +1

View Change

1 comment:

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

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
Gerrit-Change-Number: 3815445
Gerrit-PatchSet: 21
Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
Gerrit-Reviewer: Mike West <mk...@chromium.org>
Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Dave Tapuska <dtap...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
Gerrit-Comment-Date: Fri, 23 Sep 2022 15:08:19 +0000

Dave Tapuska (Gerrit)

unread,
Sep 23, 2022, 11:16:14 AM9/23/22
to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Mike West, Arthur Sonzogni, Yuki Shiino, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: Yoav Weiss.

Patch set 21:Code-Review +1

View Change

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
    Gerrit-Change-Number: 3815445
    Gerrit-PatchSet: 21
    Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    Gerrit-Attention: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Comment-Date: Fri, 23 Sep 2022 15:15:46 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Yoav Weiss (Gerrit)

    unread,
    Sep 23, 2022, 11:37:46 AM9/23/22
    to blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Dave Tapuska, Mike West, Arthur Sonzogni, Yuki Shiino, Kouhei Ueno, Michal Mocny, Scott Haseley, Chromium LUCI CQ, chromium...@chromium.org

    Patch set 21:Commit-Queue +2

    View Change

    1 comment:

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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
    Gerrit-Change-Number: 3815445
    Gerrit-PatchSet: 21
    Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    Gerrit-Comment-Date: Fri, 23 Sep 2022 15:37:25 +0000

    Chromium LUCI CQ (Gerrit)

    unread,
    Sep 23, 2022, 11:49:33 AM9/23/22
    to Yoav Weiss, blink-re...@chromium.org, blink-...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, Dave Tapuska, Mike West, Arthur Sonzogni, Yuki Shiino, Kouhei Ueno, Michal Mocny, Scott Haseley, chromium...@chromium.org

    Chromium LUCI CQ submitted this change.

    View Change


    Approvals: Dave Tapuska: Looks good to me Arthur Sonzogni: Looks good to me Mike West: Looks good to me Yoav Weiss: Commit
    Get TaskAttribution to work with MessagePort's postMessage.

    TaskAttribution is not currently taking postMessage into account.
    This CL addresses a part of that, where tasks that are being triggered
    by a postMessage on a MessagePort, are being traced back to the
    triggering task as their ancestor.

    Bug: 1342012
    Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3815445
    Reviewed-by: Mike West <mk...@chromium.org>
    Commit-Queue: Yoav Weiss <yoav...@chromium.org>
    Reviewed-by: Arthur Sonzogni <arthurs...@chromium.org>
    Reviewed-by: Dave Tapuska <dtap...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1050668}
    ---
    M content/browser/android/app_web_message_port.cc
    M content/browser/renderer_host/render_frame_host_impl.cc
    M content/browser/service_worker/service_worker_context_wrapper.cc
    M content/browser/service_worker/service_worker_object_host.cc
    M content/browser/service_worker/service_worker_version.cc
    M third_party/blink/common/BUILD.gn
    A third_party/blink/common/messaging/task_attribution_id_mojom_traits.cc
    M third_party/blink/common/messaging/transferable_message_mojom_traits.cc
    A third_party/blink/public/common/messaging/task_attribution_id_mojom_traits.h
    M third_party/blink/public/common/messaging/transferable_message.h
    M third_party/blink/public/common/messaging/transferable_message_mojom_traits.h
    M third_party/blink/public/common/scheduler/task_attribution_id.h
    M third_party/blink/public/mojom/BUILD.gn
    A third_party/blink/public/mojom/messaging/task_attribution_id.mojom
    M third_party/blink/public/mojom/messaging/transferable_message.mojom
    M third_party/blink/renderer/core/messaging/blink_transferable_message.cc
    M third_party/blink/renderer/core/messaging/blink_transferable_message.h
    M third_party/blink/renderer/core/messaging/blink_transferable_message_mojom_traits.h
    M third_party/blink/renderer/core/messaging/message_port.cc
    A third_party/blink/web_tests/wpt_internal/task-tracking/messageport-postmessage-same-origin-iframe.html
    A third_party/blink/web_tests/wpt_internal/task-tracking/resources/messageport-postmessage-iframe.html
    A third_party/blink/web_tests/wpt_internal/task-tracking/resources/messageport-postmessage-iframe.html.headers
    A third_party/blink/web_tests/wpt_internal/task-tracking/track-messageport-postmessage-cross-origin-iframe.html
    A third_party/blink/web_tests/wpt_internal/task-tracking/track-postmessage.html
    24 files changed, 310 insertions(+), 5 deletions(-)


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

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib1efab2e6ac3868a6d14b88f602356f0673ebbda
    Gerrit-Change-Number: 3815445
    Gerrit-PatchSet: 22
    Gerrit-Owner: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Reviewer: Arthur Sonzogni <arthurs...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
    Gerrit-Reviewer: Kouhei Ueno <kou...@chromium.org>
    Gerrit-Reviewer: Mike West <mk...@chromium.org>
    Gerrit-Reviewer: Scott Haseley <shas...@chromium.org>
    Gerrit-Reviewer: Yoav Weiss <yoav...@chromium.org>
    Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    Gerrit-MessageType: merged
    Reply all
    Reply to author
    Forward
    0 new messages