Closed
Bug 572454
Opened 15 years ago
Closed 15 years ago
Clean up SeaMonkey versions of getFileDisplayName
Categories
(SeaMonkey :: Preferences, defect)
SeaMonkey
Preferences
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.1a3
People
(Reporter: kairo, Assigned: kairo)
References
Details
Attachments
(1 file)
6.32 KB,
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
Bug 569542 has browser/ parts that should be ported to SeaMonkey. Should be easy to do!
Comment 1•15 years ago
|
||
The only changes from that bug that applies to SeaMonkey are just cleanup - your suite/feeds/src/FeedWriter.js and suite/common/pref/pref-applications.js contain copies of those methods, so making them consistent with all the others (including the name) makes sense, but they're not buggy.
(Ideally we'd fix this by avoiding the duplication entirely, but there's no real good common place to put this small amount of code...)
Updated•15 years ago
|
Summary: Port |Bug 569542 - App picker never uses bundle display name| to SeaMonkey → Clean up SeaMonkey versions of getFileDisplayName
Assignee | ||
Comment 2•15 years ago
|
||
This patch matches the Firefox version, I guess that's all that needs to be done here.
Assignee | ||
Updated•15 years ago
|
OS: Linux → All
Hardware: x86 → All
Whiteboard: [good first bug]
Comment on attachment 456694 [details] [diff] [review]
match the Firefox patch
>-function getDisplayNameForFile(aFile) {
>+function getFileDisplayName(file) {
I'd prefer we kept aFile as the argument, unless there is a particular reason to make that change.
r=me with that addressed.
Attachment #456694 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Comment 4•15 years ago
|
||
Pushed as http://hg.mozilla.org/comm-central/rev/d4d7f0a8fe16 with the param reverted to aFile.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1a3
Comment 5•14 years ago
|
||
Comment on attachment 456694 [details] [diff] [review]
match the Firefox patch
>diff --git a/suite/common/pref/pref-applications.js b/suite/common/pref/pref-applications.js
>+ return file.leafName;
...
>diff --git a/suite/feeds/src/FeedWriter.js b/suite/feeds/src/FeedWriter.js
>+ return file.fileName;
Oops; This should have been leafName too.
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #5)
> >diff --git a/suite/feeds/src/FeedWriter.js b/suite/feeds/src/FeedWriter.js
> >+ return file.fileName;
> Oops; This should have been leafName too.
Gah, that's a mis-port, apparently, Firefox has is correct. Bad boy me for messing this one up. :(
Will land fixup shortly with rs=Neil over IRC.
Assignee | ||
Comment 7•14 years ago
|
||
Landed this followup as http://hg.mozilla.org/comm-central/rev/d817de56d8a1
You need to log in
before you can comment on or make changes to this bug.
Description
•