[DevTools][AI Assistant] Enable Drag-and-Drop Image Upload To Prompt Box. [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Emir D (Gerrit)

unread,
Jan 13, 2026, 3:26:42 PM (7 days ago) Jan 13
to Ergün Erdoğmuş, AyeAye, devtools-rev...@chromium.org
Attention needed from Ergün Erdoğmuş

Emir D voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Ergün Erdoğmuş
Submit Requirements:
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
Gerrit-Change-Number: 7456258
Gerrit-PatchSet: 2
Gerrit-Owner: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Attention: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Comment-Date: Tue, 13 Jan 2026 20:26:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
open
diffy

Ergün Erdoğmuş (Gerrit)

unread,
Jan 14, 2026, 7:40:38 AM (6 days ago) Jan 14
to Emir D, Jack Franklin, AyeAye, devtools-rev...@chromium.org
Attention needed from Emir D and Jack Franklin

Ergün Erdoğmuş added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Ergün Erdoğmuş . resolved

Hey Jack, can you PTAL?

Open in Gerrit

Related details

Attention is currently required from:
  • Emir D
  • Jack Franklin
Submit Requirements:
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
Gerrit-Change-Number: 7456258
Gerrit-PatchSet: 2
Gerrit-Owner: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-Attention: Emir D <emr...@gmail.com>
Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
Gerrit-Comment-Date: Wed, 14 Jan 2026 12:40:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Emir D (Gerrit)

unread,
Jan 18, 2026, 6:16:08 AM (2 days ago) Jan 18
to Jack Franklin, Ergün Erdoğmuş, AyeAye, devtools-rev...@chromium.org
Attention needed from Jack Franklin

Emir D added 1 comment

Patchset-level comments
Emir D . resolved

Hi, is there any update?

Open in Gerrit

Related details

Attention is currently required from:
  • Jack Franklin
Submit Requirements:
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
Gerrit-Change-Number: 7456258
Gerrit-PatchSet: 2
Gerrit-Owner: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
Gerrit-Comment-Date: Sun, 18 Jan 2026 11:16:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Jack Franklin (Gerrit)

unread,
Jan 19, 2026, 9:39:56 AM (21 hours ago) Jan 19
to Emir D, Samiya Caur, Ergün Erdoğmuş, AyeAye, devtools-rev...@chromium.org
Attention needed from Emir D and Samiya Caur

Jack Franklin voted and added 1 comment

Votes added by Jack Franklin

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
Jack Franklin . resolved

lgtm thank you! Adding Samiya as external contributions need 2 reviews

Open in Gerrit

Related details

Attention is currently required from:
  • Emir D
  • Samiya Caur
Submit Requirements:
  • requirement 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
Gerrit-Change-Number: 7456258
Gerrit-PatchSet: 2
Gerrit-Owner: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Emir D <emr...@gmail.com>
Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Samiya Caur <sam...@chromium.org>
Gerrit-Attention: Emir D <emr...@gmail.com>
Gerrit-Attention: Samiya Caur <sam...@chromium.org>
Gerrit-Comment-Date: Mon, 19 Jan 2026 14:39:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Samiya Caur (Gerrit)

unread,
Jan 19, 2026, 10:18:19 AM (20 hours ago) Jan 19
to Emir D, Devtools-frontend LUCI CQ, Jack Franklin, Ergün Erdoğmuş, AyeAye, devtools-rev...@chromium.org
Attention needed from Emir D and Jack Franklin

Samiya Caur added 2 comments

Patchset-level comments
Samiya Caur . resolved

Thank you for sending this CL! Left 1 small comment.

File front_end/panels/ai_assistance/components/ChatInput.ts
Line 591, Patchset 2 (Latest): event.preventDefault();

const files = event.dataTransfer?.files;
if (!files || files.length === 0) {
return;
}

const imageFile = Array.from(files).find(file => file.type.startsWith('image/'));
if (!imageFile) {
return;
}

void this.#handleLoadImage(imageFile);
Samiya Caur . unresolved

Since this block of code is similar to code in `#handleImagePaste`, maybe we can refactor this into a function like `#handleImageDataTransferEvent(dataTransfer: DataTransfer | null, event: Event)`?

Also, nit: add `;` at the end of `#handleImageDragOver` and `#handleImageDrop`.

Open in Gerrit

Related details

Attention is currently required from:
  • Emir D
  • Jack Franklin
Submit Requirements:
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
    Gerrit-Change-Number: 7456258
    Gerrit-PatchSet: 2
    Gerrit-Owner: Emir D <emr...@gmail.com>
    Gerrit-Reviewer: Emir D <emr...@gmail.com>
    Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
    Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Samiya Caur <sam...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Attention: Emir D <emr...@gmail.com>
    Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Comment-Date: Mon, 19 Jan 2026 15:18:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Emir D (Gerrit)

    unread,
    Jan 19, 2026, 2:12:02 PM (16 hours ago) Jan 19
    to Devtools-frontend LUCI CQ, Samiya Caur, Jack Franklin, Ergün Erdoğmuş, AyeAye, devtools-rev...@chromium.org
    Attention needed from Jack Franklin and Samiya Caur

    Emir D voted and added 1 comment

    Votes added by Emir D

    Auto-Submit+1

    1 comment

    File front_end/panels/ai_assistance/components/ChatInput.ts
    Line 591, Patchset 2: event.preventDefault();


    const files = event.dataTransfer?.files;
    if (!files || files.length === 0) {
    return;
    }

    const imageFile = Array.from(files).find(file => file.type.startsWith('image/'));
    if (!imageFile) {
    return;
    }

    void this.#handleLoadImage(imageFile);
    Samiya Caur . resolved

    Since this block of code is similar to code in `#handleImagePaste`, maybe we can refactor this into a function like `#handleImageDataTransferEvent(dataTransfer: DataTransfer | null, event: Event)`?

    Also, nit: add `;` at the end of `#handleImageDragOver` and `#handleImageDrop`.

    Emir D

    The patchset 3 has been uploaded. Now, we are using handleImageDataTransferEvent to handle handleImageDragOver, handleImageDrop and handleImagePaste.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Jack Franklin
    • Samiya Caur
    Submit Requirements:
      • requirement 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: devtools/devtools-frontend
      Gerrit-Branch: main
      Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
      Gerrit-Change-Number: 7456258
      Gerrit-PatchSet: 3
      Gerrit-Owner: Emir D <emr...@gmail.com>
      Gerrit-Reviewer: Emir D <emr...@gmail.com>
      Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
      Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
      Gerrit-Reviewer: Samiya Caur <sam...@chromium.org>
      Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Attention: Samiya Caur <sam...@chromium.org>
      Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
      Gerrit-Comment-Date: Mon, 19 Jan 2026 19:11:59 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Samiya Caur <sam...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Samiya Caur (Gerrit)

      unread,
      2:20 AM (4 hours ago) 2:20 AM
      to Emir D, Devtools-frontend LUCI CQ, Jack Franklin, Ergün Erdoğmuş, AyeAye, devtools-rev...@chromium.org
      Attention needed from Emir D and Jack Franklin

      Samiya Caur voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Emir D
      • Jack Franklin
      Submit Requirements:
      • requirement 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: devtools/devtools-frontend
      Gerrit-Branch: main
      Gerrit-Change-Id: Ib4a12d79b981adf74137b324a11857d95d44c79b
      Gerrit-Change-Number: 7456258
      Gerrit-PatchSet: 3
      Gerrit-Owner: Emir D <emr...@gmail.com>
      Gerrit-Reviewer: Emir D <emr...@gmail.com>
      Gerrit-Reviewer: Ergün Erdoğmuş <erg...@chromium.org>
      Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
      Gerrit-Reviewer: Samiya Caur <sam...@chromium.org>
      Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Attention: Emir D <emr...@gmail.com>
      Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
      Gerrit-Comment-Date: Tue, 20 Jan 2026 07:20:55 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages