Dragging and dropping a link to a webpage with a colon in the title onto a folder creates an undeletable file
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: czm32613, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
- Open a webpage that contains a colon in the title
- Drag and drop the link from the address bar to a system folder (mostly tested it with Desktop)
NOTE: I think this could also be a problem with other characters that cannot be a part of a file name as well as webpages with titles longer than file name character limit but I did not test that far.
Actual results:
A non-working file is created, with some pages the file cannot be moved or deleted by standard measures, system shows "Could not find this item" error.
Tip for whoever might be trying this: I was able to remove the undeletable files by archiving them with 7-zip and selecting the "Delete files after compression" checkbox.
EXAMPLES:
Deletable broken file:
All wiktionary pages with colon in the title:
https://en.wiktionary.org/wiki/Wiktionary:Categories
Undeletable broken file:
Any reddit post opened in a new tab contains a colon in the page title:
https://www.reddit.com/r/pics/comments/haucpf/ive_found_a_few_funny_memories_during_lockdown/
Expected results:
Firefox should create a standard system shortcut as is the case with most webpages.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Copy & Paste and Drag & Drop' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
![]() |
||
Updated•3 years ago
|
Please reopen, this was reported for Firefox, it has nothing to do with Thunderbird.
![]() |
||
Comment 4•3 years ago
|
||
Oops the bug# is wrong, sorry Bug 1774683 is correct.
Comment 5•3 years ago
|
||
If a file (contains trailing space / dot+space) cannot be deleted normally in explorer/cmd - you can do so by deleting using Long UNC path in terminal:
DEL /A "\\?\FULL_PATH\filename"
#Fail:
dir "C:\stuff\Canadian Forces Intelligence Command Statement "
File Not Found
#Success:
dir \\?\"C:\stuff\Canadian Forces Intelligence Command Statement "
2022-07-03 14:07 0 Canadian Forces Intelligence Command Statement`
- Open folder in explorer, then hold SHIFT and right-click on file - choose
Copy as Path
- Open terminal/cmd and type:
DEL /a \\?\
and paste FULL_PATH from clipboard.
Description
•