Open Bug 1610220 Opened 1 year ago Updated 1 year ago

Dropping non-image file is handled as inserting `<img>` element with data URI

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

Tracking Status
firefox74 --- affected

People

(Reporter: masayuki, Unassigned)

References

Details

See also bug 1610219.

HTMLEditor inserts <img> element even when a non-image file is dropped.
Like, <img src="data:text/plain;base64,...">.

Same as bug 1610219, Chrome loads the file (i.e., their editor does not handle nor consume the file drop). Safari does nothing (just dispatching beforeinput and oddly dispatching input event even though without DOM change).

Perhaps, HTMLEditor should just fire beforeinput event if it's in web apps.

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.