Preserve uninitialized state for effectAllowed on drop events [chromium/src : main]

0 views
Skip to first unread message

Hyowon Kim (Gerrit)

unread,
Mar 4, 2026, 9:54:12 PM (2 days ago) Mar 4
to Chromium IPC Reviews, Dave Tapuska, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org, AyeAye, blink-rev...@chromium.org, ipc-securi...@chromium.org, dcheng+c...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
Attention needed from Chromium IPC Reviews and Dave Tapuska

Hyowon Kim added 1 comment

File third_party/blink/renderer/core/clipboard/data_transfer.cc
Line 641, Patchset 2: effect_allowed_ = AtomicString("uninitialized");
Dave Tapuska . resolved

Please add unitialized into the keywords.json5 and use it as keywords::kUninitialized here (and other places in this file).

Hyowon Kim

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Chromium IPC Reviews
  • Dave Tapuska
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia4cc156d10f771d3b8b4254c6646a5d2006f813c
Gerrit-Change-Number: 7626438
Gerrit-PatchSet: 3
Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Comment-Date: Thu, 05 Mar 2026 02:53:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Mar 4, 2026, 9:58:13 PM (2 days ago) Mar 4
to Hyowon Kim, Chromium IPC Reviews, Hidehiko Abe, Dave Tapuska, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org, AyeAye, blink-rev...@chromium.org, ipc-securi...@chromium.org, dcheng+c...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
Attention needed from Dave Tapuska and Hidehiko Abe

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: hide...@chromium.org

📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

IPC reviewer(s): hide...@chromium.org


Reviewer source(s):
hide...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Dave Tapuska
  • Hidehiko Abe
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia4cc156d10f771d3b8b4254c6646a5d2006f813c
Gerrit-Change-Number: 7626438
Gerrit-PatchSet: 3
Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Comment-Date: Thu, 05 Mar 2026 02:57:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dave Tapuska (Gerrit)

unread,
Mar 5, 2026, 10:40:07 AM (yesterday) Mar 5
to Hyowon Kim, Chromium IPC Reviews, Hidehiko Abe, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org, AyeAye, blink-rev...@chromium.org, ipc-securi...@chromium.org, dcheng+c...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
Attention needed from Hidehiko Abe and Hyowon Kim

Dave Tapuska voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Hidehiko Abe
  • Hyowon Kim
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ia4cc156d10f771d3b8b4254c6646a5d2006f813c
    Gerrit-Change-Number: 7626438
    Gerrit-PatchSet: 3
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
    Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
    Gerrit-Comment-Date: Thu, 05 Mar 2026 15:39:56 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hidehiko Abe (Gerrit)

    unread,
    12:55 AM (23 hours ago) 12:55 AM
    to Hyowon Kim, Dave Tapuska, Chromium IPC Reviews, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org, AyeAye, blink-rev...@chromium.org, ipc-securi...@chromium.org, dcheng+c...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
    Attention needed from Hyowon Kim

    Hidehiko Abe added 1 comment

    Commit Message
    Line 10, Patchset 3 (Latest):This happened because both values were converted to the same operation
    mask `kDragOperationEvery` and we lost uninitialized state.
    Hidehiko Abe . unresolved

    If the degeneration is the problem, why we cannot assign the value into different state? If they need to be handled in the same way, clients of the value can handle these (newly) distinguished values as a same one?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hyowon Kim
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ia4cc156d10f771d3b8b4254c6646a5d2006f813c
      Gerrit-Change-Number: 7626438
      Gerrit-PatchSet: 3
      Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
      Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
      Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
      Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Hyowon Kim <hyo...@igalia.com>
      Gerrit-Comment-Date: Fri, 06 Mar 2026 05:54:42 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Hyowon Kim (Gerrit)

      unread,
      1:48 AM (22 hours ago) 1:48 AM
      to Dave Tapuska, Chromium IPC Reviews, Hidehiko Abe, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org, AyeAye, blink-rev...@chromium.org, ipc-securi...@chromium.org, dcheng+c...@chromium.org, creis...@chromium.org, alexmo...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
      Attention needed from Hidehiko Abe

      Hyowon Kim added 1 comment

      Commit Message
      Line 10, Patchset 3 (Latest):This happened because both values were converted to the same operation
      mask `kDragOperationEvery` and we lost uninitialized state.
      Hidehiko Abe . unresolved

      If the degeneration is the problem, why we cannot assign the value into different state? If they need to be handled in the same way, clients of the value can handle these (newly) distinguished values as a same one?

      Hyowon Kim

      Yes, I agree the core problem is that `uninitialized` and `all` both become `kDragOperationEvery`.
      So this CL adds a separate state, `source_effect_allowed_is_uninitialized`, and keeps it through the drag data path.

      If your question is why I did not add it to `DragOperationsMask` itself, my understanding is that `DragOperationsMask` is an operation bitmask, while `uninitialized` is a state, not an operation.
      https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/common/page/drag_operation.h;l=38-40

      If I misunderstood your question, or if there is a better way to add a separate state, please let me know. Thank you for the review.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Hidehiko Abe
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ia4cc156d10f771d3b8b4254c6646a5d2006f813c
      Gerrit-Change-Number: 7626438
      Gerrit-PatchSet: 3
      Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
      Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
      Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
      Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
      Gerrit-Comment-Date: Fri, 06 Mar 2026 06:48:34 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Hidehiko Abe <hide...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages