Closed
Bug 247859
Opened 21 years ago
Closed 21 years ago
"Desktop" selection in download prefs should really download to desktop
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mozilla, Assigned: mkaply)
Details
Attachments
(1 file)
1.55 KB,
patch
|
jhpedemonte
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8a2) Gecko/20040618
Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7) Gecko/20040616 Firefox/0.9
In FF 0.9 the downloads all go to the installation dir (or MOZILLA_HOME if
defined). Instead, when selecting "Desktop" in the Download section of the
Preferences dialog, they should go there on OS/2, too.
I already tried changing this with this small patch (similar to what other
platforms do in the code after the FF 0.9 release):
--- content\mozapps\downloads\pref-downloads.js.orig 2004-06-21
00:57:48.000000000 +0100
+++ content\mozapps\downloads\pref-downloads.js.PmW 2004-06-21
01:08:54.000000000 +0100
@@ -256,6 +256,9 @@
function getSpecialFolderKey(aFolderType)
{
+#ifdef XP_OS2
+ return aFolderType == "Desktop" ? "Desk" : "Home";
+#endif
return "Home";
}
But this only gives "Error: doEnabling is not defined" on the JS console and the
selection box does not even appear. Hmm...
Reproducible: Always
Steps to Reproduce:
Assignee | ||
Comment 1•21 years ago
|
||
Need to change nsHelperAppDlg.js as well.
I'll attach a patch for this and check it in .
Assignee: bugs → mkaply
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 2•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #151358 -
Flags: review?(pedemont)
Updated•21 years ago
|
Attachment #151358 -
Flags: review?(pedemont) → review+
Assignee | ||
Comment 3•21 years ago
|
||
Fix checked into the aviary branch and trunk
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 4•21 years ago
|
||
Yes, this fixes the prefs part of the problem. But now that this works, one can
see that the "Desktop" button in the Download Manager still opens the Firefox dir.
I tried to understand the problem, but I just don't find my way through the
snarl of JS code at this level. The problematic function seems to be
onDownloadShowFolder() in toolkit/mozapps/downloads/content/downloads.js, but I
didn't find out where the "Home" dir comes into play again here.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 5•21 years ago
|
||
The open button can't ever open the desktop because the desktop is already open.
There is no clever way on OS/2 to do a second open of the desktop.
But you are correct. This is yet another file that needs the #ifdef XP_OS2 that
I did for these files.
Assignee | ||
Comment 6•21 years ago
|
||
I checked in the downloads.js fix.
It was only needed on aviary and the trunk, since the change Ben made wasn't in 0.9.
Hopefully this is fixed now.
Please try again. Thanks!
Reporter | ||
Comment 7•21 years ago
|
||
Yes, to me this looks fixed now.
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•