Closed Bug 1839555 Opened 2 years ago Closed 2 years ago

Get rid of `nsIFormController::AllowDrop`

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file, 1 obsolete file)

It's introduced in bug 206859, however, in bug 345195, we have replaced <input type="text"> in <input type="file"> with <label>. Therefore, the only user in EditorBase of nsIFormControl::AllowDrop() can stop using it and we can get rid of the API.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Severity: -- → N/A

It was introduced in bug 206859, but the <input type="text"> in
<input type="file"> was replaced in bug 345195. Additionally, it's
used only by EditorBase to check <input type="text"> is in
<input type="file">. Therefore, we don't need it anymore.

Bug 206859 didn't add a test. And now, we don't have <input type="text">
in the native anonymous subtree of <input type="file">. Therefore, this
patch adds API to retrieve the elements in the native anonymous subtree
and make the test check whether the dropped text is handled by the file
control.

Depends on D181599

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/bd3f2100f374 Get rid of `nsIFormControl::AllowDrop` r=dom-core,peterv
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Attachment #9340288 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: