Drag and drop can create shortcuts to local files
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: pvnick, Assigned: Gijs)
References
()
Details
(Keywords: sec-moderate, Whiteboard: [sg:moderate][adv-main115+] high with cooperation from the victim)
Attachments
(3 files, 3 obsolete files)
Comment 2•20 years ago
|
||
Comment 3•20 years ago
|
||
Updated•20 years ago
|
Comment 5•20 years ago
|
||
Comment 6•20 years ago
|
||
Updated•20 years ago
|
Updated•20 years ago
|
Comment 7•20 years ago
|
||
Updated•18 years ago
|
Comment 8•18 years ago
|
||
Updated•16 years ago
|
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Comment 13•13 years ago
|
||
Comment 14•13 years ago
|
||
Comment 15•13 years ago
|
||
Comment 16•13 years ago
|
||
Comment 17•13 years ago
|
||
Updated•13 years ago
|
Comment 18•13 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•8 years ago
|
Updated•2 years ago
|
Comment 19•2 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 21•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 22•1 year ago
|
||
Filed bug 1832266 for tests.
Comment 23•1 year ago
|
||
r=emilio
https://hg.mozilla.org/integration/autoland/rev/c8f66e4894442df742c8b2b29be26a2937c193be
https://hg.mozilla.org/mozilla-central/rev/c8f66e489444
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 24•1 year ago
|
||
This fix works for file: but appears to be incomplete for c:/ links.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 25•1 year ago
|
||
Hm, so the reason I didn't catch this originally is that it seems that we are more strict than Windows in how we parse Windows paths into URLs. Specifically, a link that points to: C:\Users gets transformed to file:///C:/Users (and blocked, on current nightly already) but a link to C:/Users does not. This causes problems when we then pass this information to Windows and it does then interpret the target as a file path.
The simplest fix is to change the URI fixup parser to also recognize this syntax as a file URI, here. It's worth noting that just setting attemptFixup to true in that case is insufficient: our Windows path parsing code will fail to initialize the file when the path is made up of forward slashes instead of backslashes.
I have a patch for this. It passes urlbar and docshell urifixup unit tests without changes... in principle it shouldn't end up impacting any web content because we'd primarily use nsIURI for security checks and navigation, rather than fixup. I think fixing up C:/Users/ in the URL bar to file:///C:/Users/ (instead of a search query with the default search provider) is probably a net win, but if we think that may be in doubt we could put it behind a fixup flag and/or pref.
| Assignee | ||
Comment 26•1 year ago
|
||
Comment 27•1 year ago
|
||
r=mak
https://hg.mozilla.org/integration/autoland/rev/d5620d8eb2090ec5a6024d64684b005429066c5c
https://hg.mozilla.org/mozilla-central/rev/d5620d8eb209
Updated•1 year ago
|
Comment 28•1 year ago
|
||
Comment 29•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•