Closed
Bug 163682
Opened 23 years ago
Closed 23 years ago
FTP download: non-ascii filename is not shown correctly via "Save Link Target As"
Categories
(Core :: Internationalization, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla1.0.2
People
(Reporter: ji, Assigned: nhottanscp)
References
Details
(Keywords: intl, topembed+, Whiteboard: [adt2] [ETA 09/10])
Attachments
(2 files, 1 obsolete file)
|
1.38 KB,
patch
|
jbetak
:
review+
bzbarsky
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
|
1.82 KB,
patch
|
jesup
:
review+
jesup
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
This is seperated from bug 162377.
Steps to reproduce:
1. go to ftp://10.169.114.243
2. Go to Edit | Preference | Language, select Simplified Chinese (GB2312) as
Character Encoding, so the Chinese filenames can be viewed correctly on
thelisting page.
3. Shift click on the html/text file with Chinese filename or right click on the
file and select Save Link Target As menu, the Chinese filename is always shown
as "File" on Save as dialog.
4. To compare with the result of an English filename, on the same page, click on
"English" folder, Shift click on an English html/text file, you can see the
English filename is shown correctly on Sava as dialog
Comment 1•23 years ago
|
||
Is this a Mozilla browser issue only, or will embeddor see the same "Save as
dialog?" IF embeddors will see this problem, pls nominate as topembed. thanks!
Embeddor also has a context menu of "Save Link Target As". Nominating.
Restore bug status which are changed wrong.
Comment 4•23 years ago
|
||
Bug status was not changed. The field changes were Priority, Severity, Target
Milestone and the keyword nsbeta1+.
Pls Note: nsbeta1+ indicated to development that this is a good bug to work on,
Mozilla1.0.2 is the milestone in which PjM along with development believes the
bug will be resolved [as Mozilla1.0.1 will be final tomorrow], Severity was not
changed from its default and is probably not "normal" as this would be needed by
a major embeddor (but, it is a QA field, so i will leave @ "normal" and ask that
ji upgrade it to "major"), and last P1, because it is the #1 thing nhotta should
be working on this week.
JPG/BMP files have the same problem, modified the summary accordingly.
Severity: normal → major
Summary: Non-ascii html/text filename is not shown correctly when saving from a ftp listing → FTP download: non-ascii filename is not shown correctly via "Save Link Target As"
Did more testing, actually download via Save Link Target As menu has problems
with all different file types: .exe/.doc/.html/.txt/.jpg/.bmp/.gif
| Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 7•23 years ago
|
||
There are functions in contentAreaUtils.js which seems to handle file names.
642 function getDefaultFileName(aDefaultFileName, aNameFromHeaders,
aDocumentURI, aDocument)
http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/contentAreaUtils.js#642
689 function validateFileName(aFileName)
http://lxr.mozilla.org/seamonkey/source/xpfe/communicator/resources/content/contentAreaUtils.js#689
cc to bzbarsky, I need to talk to him to get some info.
| Assignee | ||
Comment 9•23 years ago
|
||
Comment 10•23 years ago
|
||
Comment on attachment 97705 [details] [diff] [review]
Add a code to unescape with a charset for a non ASCII file name.
Nice! I forgot all about window._content...
sr=bzbarsky
Attachment #97705 -
Flags: superreview+
Comment 11•23 years ago
|
||
Comment on attachment 97705 [details] [diff] [review]
Add a code to unescape with a charset for a non ASCII file name.
r=jbetak
Naoki, I believe the fallback will return the charset of the top frame (top
content window).
+ charset = window._content.document.characterSet
Since aDocument should contain the currently focused frame as you have pointed
out, this scenario is unlikely to occur.
The top frame might be a good enough fall-back for FTP sites, since they are
not known for using multiple charsets on one page.
I didn't want to complicate things, just document my understanding of what this
code really does in case we would ever need to revisit it.
Attachment #97705 -
Flags: review+
Comment 12•23 years ago
|
||
> Since aDocument should contain the currently focused frame
aDocument is only set when doing "save page as" or "save frame as". "save link
target as", shift-click, etc (what this bug is concerned with) will always have
a null aDocument.
| Assignee | ||
Comment 13•23 years ago
|
||
Do we want "document.commandDispatcher.focusedWindow" instead of
"window._content" then?
Comment 14•23 years ago
|
||
Hmm... that would be a good idea, I think.
Comment 15•23 years ago
|
||
This is needed by a major embeddor. Marking as Topembed+ per Valeski.
Whiteboard: [adt2 RTM] [ETA Needed] → [adt2] [ETA 09/09]
| Assignee | ||
Comment 16•23 years ago
|
||
Attachment #97705 -
Attachment is obsolete: true
Comment 17•23 years ago
|
||
Comment on attachment 97964 [details] [diff] [review]
Changed to prefer focusedWindow over window._content.
r=jbetak
bz, we've seen cases where document.commandDispatcher.focusedWindow == null,
see bug 60406 (relates to some sidebar trickery)
Attachment #97964 -
Flags: review+
Comment 18•23 years ago
|
||
Comment on attachment 97964 [details] [diff] [review]
Changed to prefer focusedWindow over window._content.
sr=bzbarsky
Attachment #97964 -
Flags: superreview+
Updated•23 years ago
|
Comment 19•23 years ago
|
||
Comment on attachment 97964 [details] [diff] [review]
Changed to prefer focusedWindow over window._content.
a=rjesup@wgate.com
Attachment #97964 -
Flags: approval+
| Assignee | ||
Comment 20•23 years ago
|
||
checked in to the trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 21•23 years ago
|
||
ji: can you pls verify this as fixed in the next trunk build? thanks!
Whiteboard: [adt2] [ETA 09/09] → [adt2] [ETA 09/10]
| Reporter | ||
Comment 22•23 years ago
|
||
Verified as fixed on 2002-09-09-04-trunk build.
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 23•23 years ago
|
||
Comment 24•23 years ago
|
||
Comment on attachment 98454 [details] [diff] [review]
Resolved conflicts for 1.0 branch.
Carrying over r/sr from trunk patch.
a=rjesup@wgate.com for 1.0 branch checkin. Please change mozilla1.0.2+ to
fixed1.0.2 when checked in.
Attachment #98454 -
Flags: superreview+
Attachment #98454 -
Flags: review+
Attachment #98454 -
Flags: approval+
Updated•23 years ago
|
Updated•23 years ago
|
| Reporter | ||
Comment 27•23 years ago
|
||
Verified as fixed on 09/12 1.0.2 branch build.
Keywords: fixed1.0.2 → verified1.0.2
Comment 28•23 years ago
|
||
*** Bug 161242 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•