Closed
Bug 57548
Opened 25 years ago
Closed 25 years ago
[regression] filenames dragged into moz are unescaped (dnd spaces)
Categories
(SeaMonkey :: UI Design, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: alecf)
Details
(Keywords: regression, Whiteboard: [rtm need info])
Attachments
(1 file)
|
1.19 KB,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce:
1. Drag "a b.txt" from your desktop into an open mozilla window
result: nothing happens
2. Drag "a%20b.txt" from your desktop into an open mozilla window
result: "a b.txt" loaded.
This may have regressed due to the patch for bug 52519, cc alecf.
Thanks to walk84 and zach in #mozillazine for helping me figure out what was
happening.
| Reporter | ||
Updated•25 years ago
|
Keywords: regression
Comment 1•25 years ago
|
||
Console messages on the drop:
****** DisplayErrCode 0x1
S_OK
S_OK
->>>>>>>>>>>>>> Write Clipboard to memory
->>>>>>>>>>>>>> Read Clipboard from memory
JavaScript strict warning:
chrome://navigator/content/navigatorDD.js line 379: reference to undefined
property aData.length
-> alecf, XPApps and nom. rtm -- dragging into the browser is broken.
Comment 2•25 years ago
|
||
cc pinkerton
| Assignee | ||
Comment 3•25 years ago
|
||
ugh, this is totally my fault. I didn't even think to test dragging filenames
with spaces. Duh!
I may just back out my change to bug 52519 since it just stopped working for
some reason.
Status: NEW → ASSIGNED
| Reporter | ||
Comment 4•25 years ago
|
||
It would be nice if both bugs could be fixed correctly for rtm. Before the fix
for 52519, it was very hard to add bookmarklets such as the ones on
www.google.com to the personal toolbar.
| Assignee | ||
Comment 6•25 years ago
|
||
ok, I figured out what's going on - this is so horribly broken, I can't wait to
fix this correctly on the trunk
it so happens that filenames dragged from the desktop ALREADY have their URLs
escaped... I was unescaping data that I thought was only created from within
mozilla. I have a fix, doing more testing now.
| Assignee | ||
Comment 7•25 years ago
|
||
ok, I'm reverting my change to retrieveURLfromData()... I thought it was
necessary to fix the other bug, but I was wrong. pink, do you mind reviewing?
this basically just puts retrieveURLfromData back the way it was, and it's only
being used on the homebutton observer and the contentAreaDNDObserver.
This will revert us back to the previous broken behavior that dragging a link
into the content area, where the link itself contains spaces, won't work. I
think it's more important that you can drag them into the bookmarks window.
Only the second half of the patch is relevant to THIS bug. The first half
re-fixes bug 52519. I'll only check in that part for this bug.
| Assignee | ||
Comment 8•25 years ago
|
||
| Assignee | ||
Comment 9•25 years ago
|
||
adding ben and law for sr=/r=
| Assignee | ||
Comment 10•25 years ago
|
||
ben sez "a=ben"
Comment 11•25 years ago
|
||
Bill, what's the good word?
Comment 12•25 years ago
|
||
I don't understand how we can remove that unescape() call. It was part of a
much bigger fix for bug 52519 and I'm reluctant to just roll back just part of
that fix, without at least understanding the whole picture.
Don't we also have to undo some more of the original fix for 52519 (escaping or
put back the call to unescape elsewhere)?
| Reporter | ||
Updated•25 years ago
|
Summary: [regression] filenames dragged into moz are unescaped → [regression] filenames dragged into moz are unescaped (dnd spaces)
Comment 13•25 years ago
|
||
Alec: just wondering about what the plan is for this bug. Not being able to
drag "The Letter.html" into the browser from the desktop (win32/linux) is
not good (and I would punt the bookmarklet fix in favour of getting normal
files to work again, if it comes down to a choice).
| Assignee | ||
Comment 14•25 years ago
|
||
ok, I backed out my other fix, fixing this one. I'll fix the other one in a
different way.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•