Don't expose "application/x-moz-file" on drag and drop
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, enhancement)
Tracking
()
People
(Reporter: jrmuizel, Assigned: jrmuizel, NeedInfo)
References
(Blocks 1 open bug)
Details
(Keywords: webcompat:platform-bug)
User Story
user-impact-score:300
Attachments
(1 file)
This type is non-standard and is breaking drag and drop of files into fiverr.com.
If we still want to keep this around it would be valuable to disable it per-origin.
| Assignee | ||
Comment 2•4 months ago
|
||
Nika, can we stop exposing "application/x-moz-file" to web content?
Updated•4 months ago
|
Updated•4 months ago
|
Comment 3•4 months ago
|
||
It looks like at least at some point in the past I thought we needed to keep "application/x-moz-file" around for backwards compatibility (https://searchfox.org/firefox-main/rev/1c6a8b56e6f5f5393ea5ea745ab63ecb67613c93/dom/events/DataTransfer.cpp#480-482, https://searchfox.org/firefox-main/rev/1c6a8b56e6f5f5393ea5ea745ab63ecb67613c93/dom/events/DataTransferItemList.cpp#453-455, https://bug1342057.bmoattachments.org/attachment.cgi?id=8841081).
Looking at that bug (bug 1342057), it appears like it was a web-compat issue and was being uplifted, so I may have been doing this out of caution at the time, and perhaps we could safely hide kFileMime now, hiding GetInternalType more consistently.
Unfortunately, D&D is very poorly tested, so we'd need to do a good chunk of manual testing to make sure that things still work, especially internal consumers of the D&D APIs.
Comment 4•4 months ago
|
||
Just came across bug 1290688 comment 13, which appears to explicitly note that we have internal code which depends on "application/x-moz-file" being there.
| Assignee | ||
Comment 5•4 months ago
|
||
Yeah, unfortunately it doesn't mention which code :)
| Assignee | ||
Comment 6•4 months ago
|
||
The existance of kFileMime ("application/x-moz-file") in types
is breaking drag and drop on fiverr.com. We don't seem to need it.
Updated•3 months ago
|
Comment 9•3 months ago
|
||
Backed out for causing bc failures @ browser_clipboard_paste_file_content_analysis.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/349861fa92a04f29e474de117fdfdb1783776256
Comment 10•3 months ago
|
||
Comment 11•3 months ago
|
||
| bugherder | ||
Comment 12•3 months ago
|
||
Comment 13•3 months ago
|
||
Reverted this because it was causing mochitests failures in test_paste_image.html.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | dom/events/test/clipboard/test_paste_image.html | undefined assertion name - Structures begin differing at:
Comment 14•3 months ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/13ba9793db2e
Comment 15•2 months ago
|
||
Comment 16•2 months ago
|
||
| bugherder | ||
Comment 17•2 months ago
|
||
Backed out as requested.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/3808d2de01e89751e731fd701b32f92e1e45d79a
Description
•