Update DataTransfer.Files upon change to it's items list [chromium/src : main]

0 views
Skip to first unread message

Utkarsh Pathak (Gerrit)

unread,
Nov 4, 2024, 4:20:32 AMNov 4
to Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-...@chromium.org, kinuko+...@chromium.org
Attention needed from Rohan Raja

Utkarsh Pathak added 2 comments

File third_party/blink/renderer/core/clipboard/data_transfer.cc
Line 321, Patchset 5 (Latest): if (auto* file = DynamicTo<File>(blob)) {
Utkarsh Pathak . unresolved

Do we need this dynamic conversion? Since `GetAsFile()` method gives a File* I think we should be able to use it directly, no need for conversion from parent class blob to child class File. Just use File* instead of blob and check if this File* is not nullptr in the if condition.

File third_party/blink/web_tests/fast/files/file-list-change-reference-updates.html
Line 9, Patchset 5 (Latest): var dt = new DataTransfer();
Utkarsh Pathak . unresolved

nit: consider using let for better scoping and reduced risks

Open in Gerrit

Related details

Attention is currently required from:
  • Rohan Raja
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
Gerrit-Change-Number: 5973363
Gerrit-PatchSet: 5
Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
Gerrit-CC: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
Gerrit-Comment-Date: Mon, 04 Nov 2024 09:20:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Pranav Modi (Gerrit)

unread,
Nov 4, 2024, 4:35:00 AMNov 4
to Rohan Raja, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-...@chromium.org, kinuko+...@chromium.org
Attention needed from Rohan Raja

Pranav Modi added 1 comment

File third_party/blink/web_tests/fast/files/file-list-change-reference-updates.html
Line 10, Patchset 5 (Latest): var filelist = dt.files;
Pranav Modi . unresolved

+1 on utkarsh suggestion. Use of const is also suggested if the values might not need to be reassigned hereafter.

Open in Gerrit

Related details

Attention is currently required from:
  • Rohan Raja
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
Gerrit-Change-Number: 5973363
Gerrit-PatchSet: 5
Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
Gerrit-CC: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: Pranav Modi <prana...@microsoft.com>
Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
Gerrit-Comment-Date: Mon, 04 Nov 2024 09:34:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Rohan Raja (Gerrit)

unread,
Nov 4, 2024, 10:45:13 PMNov 4
to Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-...@chromium.org, kinuko+...@chromium.org
Attention needed from Pranav Modi, Rakesh Goulikar and Utkarsh Pathak

Rohan Raja added 3 comments

File third_party/blink/renderer/core/clipboard/data_transfer.cc
Line 321, Patchset 5: if (auto* file = DynamicTo<File>(blob)) {
Utkarsh Pathak . resolved

Do we need this dynamic conversion? Since `GetAsFile()` method gives a File* I think we should be able to use it directly, no need for conversion from parent class blob to child class File. Just use File* instead of blob and check if this File* is not nullptr in the if condition.

Rohan Raja

Makes sense, thanks for pointing out.

File third_party/blink/web_tests/fast/files/file-list-change-reference-updates.html
Line 9, Patchset 5: var dt = new DataTransfer();
Utkarsh Pathak . resolved

nit: consider using let for better scoping and reduced risks

Rohan Raja

use const

Line 10, Patchset 5: var filelist = dt.files;
Pranav Modi . resolved

+1 on utkarsh suggestion. Use of const is also suggested if the values might not need to be reassigned hereafter.

Rohan Raja

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Pranav Modi
  • Rakesh Goulikar
  • Utkarsh Pathak
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
Gerrit-Change-Number: 5973363
Gerrit-PatchSet: 6
Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
Gerrit-CC: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: Pranav Modi <prana...@microsoft.com>
Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
Gerrit-Attention: Rakesh Goulikar <rago...@microsoft.com>
Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
Gerrit-Comment-Date: Tue, 05 Nov 2024 03:45:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Utkarsh Pathak <utpa...@microsoft.com>
Comment-In-Reply-To: Pranav Modi <prana...@microsoft.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Christine Hollingsworth (Gerrit)

unread,
Nov 11, 2024, 9:59:02 AMNov 11
to Rohan Raja, Ayu Ishii, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-...@chromium.org, kinuko+...@chromium.org
Attention needed from Ayu Ishii, Pranav Modi, Rakesh Goulikar, Rohan Raja and Utkarsh Pathak

Christine Hollingsworth added 3 comments

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Christine Hollingsworth . resolved

Almost LGTM pending open question - thanks!

File third_party/blink/renderer/core/clipboard/data_transfer.cc
Line 320, Patchset 6 (Latest): File* file = data_object_->Item(i)->GetAsFile();
Christine Hollingsworth . unresolved

Just curious, is there a reason for updating this logic to remove the Blob --> File conversion piece?

Line 321, Patchset 6 (Latest): if (file != nullptr) {
Christine Hollingsworth . unresolved

Nit: can be simplified to `if (file) { ...`

Open in Gerrit

Related details

Attention is currently required from:
  • Ayu Ishii
  • Pranav Modi
  • Rakesh Goulikar
  • Rohan Raja
  • Utkarsh Pathak
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Gerrit-Change-Number: 5973363
    Gerrit-PatchSet: 6
    Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
    Gerrit-Reviewer: Ayu Ishii <ay...@chromium.org>
    Gerrit-Reviewer: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Pranav Modi <prana...@microsoft.com>
    Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Ayu Ishii <ay...@chromium.org>
    Gerrit-Attention: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Mon, 11 Nov 2024 14:58:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ayu Ishii (Gerrit)

    unread,
    Nov 11, 2024, 4:52:40 PMNov 11
    to Rohan Raja, Christine Hollingsworth, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-...@chromium.org, kinuko+...@chromium.org
    Attention needed from Pranav Modi, Rakesh Goulikar, Rohan Raja and Utkarsh Pathak

    Ayu Ishii added 2 comments

    File third_party/blink/renderer/core/clipboard/data_transfer.cc
    Line 317, Patchset 6 (Latest): if (CanReadData()) {
    Ayu Ishii . unresolved

    Can we return early for `!CanReadData`? Prefer less deeply nested code for readability.

    File third_party/blink/web_tests/fast/files/file-list-change-reference-updates.html
    Line 1, Patchset 6 (Latest):<!DOCTYPE html>
    Ayu Ishii . unresolved

    Should this be under `wpt` tests, especially since this should work the same way across browsers?

    README mentions "'Web platform tests' (WPT) are the preferred form of web tests and are located at web_tests/external/wpt. Tests that should work across browsers go there. Other directories are for Chrome-specific tests only."

    https://crsrc.org/c/docs/testing/web_tests.md

    Open in Gerrit

    Related details

    Attention is currently required from:
    Gerrit-Attention: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Mon, 11 Nov 2024 21:52:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Rohan Raja (Gerrit)

    unread,
    Nov 11, 2024, 11:06:16 PMNov 11
    to Christine Hollingsworth, Ayu Ishii, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-...@chromium.org, kinuko+...@chromium.org
    Attention needed from Ayu Ishii, Christine Hollingsworth, Pranav Modi, Rakesh Goulikar and Utkarsh Pathak

    Rohan Raja added 4 comments

    File third_party/blink/renderer/core/clipboard/data_transfer.cc
    Line 317, Patchset 6: if (CanReadData()) {
    Ayu Ishii . resolved

    Can we return early for `!CanReadData`? Prefer less deeply nested code for readability.

    Rohan Raja

    Done

    Line 320, Patchset 6: File* file = data_object_->Item(i)->GetAsFile();
    Christine Hollingsworth . resolved

    Just curious, is there a reason for updating this logic to remove the Blob --> File conversion piece?

    Rohan Raja

    This change was pointed out during the initial review of this CL and it seems to make sense to prevent redundant conversion to Blob and then back again to File type since GetAsFile already returns a File*.

    Line 321, Patchset 6: if (file != nullptr) {
    Christine Hollingsworth . resolved

    Nit: can be simplified to `if (file) { ...`

    Rohan Raja

    Done, thanks

    File third_party/blink/web_tests/fast/files/file-list-change-reference-updates.html
    Line 1, Patchset 6:<!DOCTYPE html>
    Ayu Ishii . resolved

    Should this be under `wpt` tests, especially since this should work the same way across browsers?

    README mentions "'Web platform tests' (WPT) are the preferred form of web tests and are located at web_tests/external/wpt. Tests that should work across browsers go there. Other directories are for Chrome-specific tests only."

    https://crsrc.org/c/docs/testing/web_tests.md

    Rohan Raja

    Done, thanks.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ayu Ishii
    • Christine Hollingsworth
    • Pranav Modi
    • Rakesh Goulikar
    • Utkarsh Pathak
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Gerrit-Change-Number: 5973363
    Gerrit-PatchSet: 7
    Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
    Gerrit-Reviewer: Ayu Ishii <ay...@chromium.org>
    Gerrit-Reviewer: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Pranav Modi <prana...@microsoft.com>
    Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Ayu Ishii <ay...@chromium.org>
    Gerrit-Attention: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Tue, 12 Nov 2024 04:06:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ayu Ishii <ay...@chromium.org>
    Comment-In-Reply-To: Christine Hollingsworth <chris...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Christine Hollingsworth (Gerrit)

    unread,
    Nov 12, 2024, 11:01:34 AMNov 12
    to Rohan Raja, Ayu Ishii, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, kinuko+...@chromium.org
    Attention needed from Ayu Ishii, Pranav Modi, Rakesh Goulikar, Rohan Raja and Utkarsh Pathak

    Christine Hollingsworth voted and added 1 comment

    Votes added by Christine Hollingsworth

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    Christine Hollingsworth . resolved

    LGTM

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ayu Ishii
    • Pranav Modi
    • Rakesh Goulikar
    • Rohan Raja
    • Utkarsh Pathak
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Tue, 12 Nov 2024 16:01:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ayu Ishii (Gerrit)

    unread,
    Nov 12, 2024, 2:28:46 PMNov 12
    to Rohan Raja, Christine Hollingsworth, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, kinuko+...@chromium.org
    Attention needed from Pranav Modi, Rakesh Goulikar, Rohan Raja and Utkarsh Pathak

    Ayu Ishii voted and added 1 comment

    Votes added by Ayu Ishii

    Code-Review+1

    1 comment

    Patchset-level comments
    Ayu Ishii . resolved

    LGTM, thanks for the updates

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Pranav Modi
    • Rakesh Goulikar
    • Rohan Raja
    • Utkarsh Pathak
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Gerrit-Change-Number: 5973363
    Gerrit-PatchSet: 7
    Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
    Gerrit-Reviewer: Ayu Ishii <ay...@chromium.org>
    Gerrit-Reviewer: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Pranav Modi <prana...@microsoft.com>
    Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Tue, 12 Nov 2024 19:28:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Blink W3C Test Autoroller (Gerrit)

    unread,
    Nov 12, 2024, 2:45:16 PMNov 12
    to Rohan Raja, Ayu Ishii, Christine Hollingsworth, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, kinuko+...@chromium.org
    Attention needed from Pranav Modi, Rakesh Goulikar, Rohan Raja and Utkarsh Pathak

    Message from Blink W3C Test Autoroller

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

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

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

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Pranav Modi
    • Rakesh Goulikar
    • Rohan Raja
    • Utkarsh Pathak
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Gerrit-Change-Number: 5973363
    Gerrit-PatchSet: 7
    Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
    Gerrit-Reviewer: Ayu Ishii <ay...@chromium.org>
    Gerrit-Reviewer: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Pranav Modi <prana...@microsoft.com>
    Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Tue, 12 Nov 2024 19:45:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy

    Rohan Raja (Gerrit)

    unread,
    Nov 12, 2024, 10:36:02 PMNov 12
    to Blink W3C Test Autoroller, Ayu Ishii, Christine Hollingsworth, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, Chromium LUCI CQ, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, kinuko+...@chromium.org
    Attention needed from Pranav Modi, Rakesh Goulikar and Utkarsh Pathak

    Rohan Raja voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Pranav Modi
    • Rakesh Goulikar
    • Utkarsh Pathak
    Gerrit-Attention: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Attention: Pranav Modi <prana...@microsoft.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 03:35:50 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Nov 12, 2024, 10:49:07 PMNov 12
    to Rohan Raja, Blink W3C Test Autoroller, Ayu Ishii, Christine Hollingsworth, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, kinuko+...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Update DataTransfer.Files upon change to it's items list

    Refactored "blink::DataTransfer" class to update "files_" member when
    it's DataObject's item list is changed, instead of doing the same in
    the files getter. This change ensures that files is updated
    immediately when the DataTransfer's item list changes.

    This fixes the issue where if a reference to DataTransfer.files is
    stored in a separate JS variable, then any file items added to that
    DataTransfer object are not reflected in the stored JS variable, until
    the DataTransfer object's files getter is invoked. The issue is not
    present in Safari and Firefox.
    Bug: 342067834
    Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Reviewed-by: Christine Hollingsworth <chris...@chromium.org>
    Commit-Queue: Rohan Raja <ror...@microsoft.com>
    Reviewed-by: Ayu Ishii <ay...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1382128}
    Files:
    • M third_party/blink/renderer/core/clipboard/data_transfer.cc
    • A third_party/blink/web_tests/external/wpt/clipboard-apis/data-transfer-file-list-change-reference-updates.html
    Change size: S
    Delta: 2 files changed, 33 insertions(+), 12 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Ayu Ishii, +1 by Christine Hollingsworth
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Gerrit-Change-Number: 5973363
    Gerrit-PatchSet: 8
    Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
    Gerrit-Reviewer: Ayu Ishii <ay...@chromium.org>
    Gerrit-Reviewer: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
    open
    diffy
    satisfied_requirement

    Blink W3C Test Autoroller (Gerrit)

    unread,
    Nov 12, 2024, 11:19:41 PMNov 12
    to Rohan Raja, Chromium LUCI CQ, Ayu Ishii, Christine Hollingsworth, Rakesh Goulikar, Pranav Modi, Utkarsh Pathak, chromium...@chromium.org, Daniel Cheng, AyeAye, blink-revie...@chromium.org, blink-...@chromium.org, kinuko+...@chromium.org

    Message from Blink W3C Test Autoroller

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

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id59ca73ae0e8b744b247f1eabba9f70565245433
    Gerrit-Change-Number: 5973363
    Gerrit-PatchSet: 8
    Gerrit-Owner: Rohan Raja <ror...@microsoft.com>
    Gerrit-Reviewer: Ayu Ishii <ay...@chromium.org>
    Gerrit-Reviewer: Christine Hollingsworth <chris...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Rakesh Goulikar <rago...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Pranav Modi <prana...@microsoft.com>
    Gerrit-CC: Utkarsh Pathak <utpa...@microsoft.com>
    Gerrit-Comment-Date: Wed, 13 Nov 2024 04:19:30 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages