Closed
Bug 1143644
Opened 10 years ago
Closed 8 years ago
Downloading a file which name has U+3000, it will replace U+3000 to %U3000.
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
mozilla53
People
(Reporter: hidenosuke, Assigned: emk)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(5 files)
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
message/rfc822
|
Details | |
(deleted),
text/x-review-board-request
|
m_kato
:
review+
gchang
:
approval-mozilla-aurora+
gchang
:
approval-mozilla-beta+
|
Details |
Steps to reproduce:
1. Create a file named "a .exe".
2. Drag the file and drop to Firefox.
Actual Result:
Firefox will save the file to a%u3000.exe.
Expected Result:
Firefox will save the file to "a .exe".(U+3000 is reserved.)
I can reproduce Recent Nighlty build with Linux and Windows 8.1.
This bug is reported to bugzilla-jp as http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=6914.
Comment 1•10 years ago
|
||
Regressed since Firefox36.
Pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=992784f79f96&tochange=f884c46fa07d
Triggered by Bug 415491
Blocks: 415491
status-firefox36:
--- → affected
status-firefox37:
--- → affected
status-firefox38:
--- → affected
status-firefox39:
--- → affected
status-firefox-esr31:
--- → unaffected
OS: Linux → All
Version: unspecified → 36 Branch
Reproduce with SeaMonkey-nightly/win32 .
User agent: Mozilla/5.0 (Windows NT 5.1; rv:37.0) Gecko/20100101 Firefox/37.0 SeaMonkey/2.34a1
Build identifier: 20141208003001
Updated•10 years ago
|
status-firefox40:
--- → affected
Reproduce with Thunderbird38.0.1
Steps to reproduce:
Click on the attached file name, and choosing a "save the file".
Press "save"icon or bottom attached file name are no problem.
Correction:
Press "save"icon or click bottom attached file name and select "save" are no problem.
Click bottom attached file name and select "open" are reproducible.
Windows7, Windows8.1, Mac OS X 10.10 are reproducible.
Reproduce when the "Opening [filename]"window is opened.
Does not reproduce if you save without opening "Opening [filename]"window.
Both Attachment 8624164 [details] and 8624170's blue frames(reproduce), "Opening [filename]"window opens when you want to save.
Please see below Mozillazine.jp's thread.
http://forums.mozillazine.jp/viewtopic.php?f=3&t=15474
This seems to be related: when displaying <a href="#%CC%B7"> the status bar displays "#%u0337". The character is displayed correctly in the address bar when the link is clicked, but window.location.hash contains the "#%u0337" too.
Updated•9 years ago
|
Component: General → Downloads Panel
Comment 7•8 years ago
|
||
Still reproduced on Tb 52.0a1.
Comment 8•8 years ago
|
||
This also reproduces on Fx 52.0a1.
How to reproduce:
1. Put file with name of "sample sample.docx" at local machine
2. Open URL for the file location (ie. file:///C:/Users/foo/Desktop/)
3. Put mouse cursor on the file name
Actual Result:
URL shown at the bottom is "file:///C:/Users/foo/Desktop/sample%u3000sample.docx"
Expected Result:
URL shown at the bottom is "file:///C:/Users/foo/Desktop/sample sample.docx"
I think this is lower level bug than Fx/Tb.
Comment 9•8 years ago
|
||
This issue reproduce both Fx and Tb at least.
Which product and component is better to reassign?
Flags: needinfo?(hidenosuke)
Reporter | ||
Comment 10•8 years ago
|
||
(In reply to Takanori MATSUURA from comment #9)
> This issue reproduce both Fx and Tb at least.
> Which product and component is better to reassign?
I don't know.
It may be core product is better.
Does anyone know which product is suitable?
Flags: needinfo?(hidenosuke)
Updated•8 years ago
|
Updated•8 years ago
|
status-firefox50:
--- → affected
status-firefox51:
--- → affected
status-firefox52:
--- → affected
status-firefox53:
--- → affected
status-firefox-esr45:
--- → affected
Comment hidden (mozreview-request) |
Assignee | ||
Comment 12•8 years ago
|
||
We already allow U+0020 SPACE, so this patch will have no additional risk.
I also stopped using Preferences::GetComplex(). Preferences::GetString() will handle non-ASCII prefs correctly.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment 14•8 years ago
|
||
mozreview-review |
Comment on attachment 8812423 [details]
Bug 1143644 - Allow IDEOGRAPHIC SPACE in UnEscapeURIForUI
https://reviewboard.mozilla.org/r/94186/#review94376
::: intl/uconv/nsTextToSubURI.cpp:241
(Diff revision 2)
>
> // If there are any characters that are unsafe for URIs, reescape those.
> if (mUnsafeChars.IsEmpty()) {
> - nsCOMPtr<nsISupportsString> blacklist;
> - nsresult rv = mozilla::Preferences::GetComplex("network.IDN.blacklist_chars",
> - NS_GET_IID(nsISupportsString),
> + nsAdoptingString blacklist;
> + nsresult rv = mozilla::Preferences::GetString("network.IDN.blacklist_chars",
> + &blacklist);
We should use Prefernces::GetString in nsIDNService::prefsChanged too. But we should handle it by another bug.
Attachment #8812423 -
Flags: review?(m_kato) → review+
Comment 15•8 years ago
|
||
Pushed by VYV03354@nifty.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/bc97fbe7ef27
Allow IDEOGRAPHIC SPACE in UnEscapeURIForUI r=m_kato
Assignee | ||
Comment 16•8 years ago
|
||
mozreview-review |
Comment on attachment 8812423 [details]
Bug 1143644 - Allow IDEOGRAPHIC SPACE in UnEscapeURIForUI
https://reviewboard.mozilla.org/r/94186/#review94378
::: intl/uconv/nsTextToSubURI.cpp:241
(Diff revision 2)
>
> // If there are any characters that are unsafe for URIs, reescape those.
> if (mUnsafeChars.IsEmpty()) {
> - nsCOMPtr<nsISupportsString> blacklist;
> - nsresult rv = mozilla::Preferences::GetComplex("network.IDN.blacklist_chars",
> - NS_GET_IID(nsISupportsString),
> + nsAdoptingString blacklist;
> + nsresult rv = mozilla::Preferences::GetString("network.IDN.blacklist_chars",
> + &blacklist);
Oh, we do not even use the Preferences API. Filed bug 1318924.
Comment 17•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Can someone from QE verify the fix tomorrow once it's in nightly? Then let's uplift this to at least aurora, maybe beta too.
Flags: needinfo?(andrei.vaida)
Comment 19•8 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #18)
> Can someone from QE verify the fix tomorrow once it's in nightly? Then let's
> uplift this to at least aurora, maybe beta too.
Brindusa, can your team look into this?
Flags: needinfo?(andrei.vaida) → needinfo?(brindusa.tot)
Comment 20•8 years ago
|
||
Verified as fixed on latest Nightly 53.0a1, Build ID 20161122030216 on Windows 7 and Mac OS X 10.10
Flags: needinfo?(brindusa.tot)
Assignee | ||
Comment 21•8 years ago
|
||
Comment on attachment 8812423 [details]
Bug 1143644 - Allow IDEOGRAPHIC SPACE in UnEscapeURIForUI
Approval Request Comment
[Feature/regressing bug #]: 415491
[User impact if declined]: Users (mainly in Japan) will sometimes see garbage in the downloaded file names or some other URL UI.
[Describe test coverage new/current, TreeHerder]: Tested manually
[Risks and why]: Low. We already allow ASCII spaces in the URL UI, so this change will not add any new spoofing vector.
[String/UUID change made/needed]: none
Attachment #8812423 -
Flags: approval-mozilla-beta?
Attachment #8812423 -
Flags: approval-mozilla-aurora?
Comment 22•8 years ago
|
||
Comment on attachment 8812423 [details]
Bug 1143644 - Allow IDEOGRAPHIC SPACE in UnEscapeURIForUI
Fix a regression related to download file name. Beta51+ and Aurora52+. Should be in 51 beta 3.
Attachment #8812423 -
Flags: approval-mozilla-beta?
Attachment #8812423 -
Flags: approval-mozilla-beta+
Attachment #8812423 -
Flags: approval-mozilla-aurora?
Attachment #8812423 -
Flags: approval-mozilla-aurora+
Comment 23•8 years ago
|
||
bugherder uplift |
Comment 24•8 years ago
|
||
bugherder uplift |
Updated•3 years ago
|
Updated•3 years ago
|
Has Regression Range: --- → yes
You need to log in
before you can comment on or make changes to this bug.
Description
•