Closed
Bug 241209
Opened 21 years ago
Closed 21 years ago
"Show File Location" and "Launch File" buttons (on download progress dialog) don't work
Categories
(SeaMonkey :: Download & File Handling, defect)
SeaMonkey
Download & File Handling
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8alpha1
People
(Reporter: masayuki, Assigned: Biesinger)
References
Details
(Keywords: verified1.7)
Attachments
(1 file)
(deleted),
patch
|
neil
:
review+
darin.moz
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040420
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a) Gecko/20040420
On download progress dialog, in the case of download completed,
"Open File Location" and "Launch File" buttons don't work.
Reproducible: Always
Steps to Reproduce:
1. Do "Save Link Target As" on any link.
2. Check the checkbox on download prgress dialog.
3. Click "Open File Location" or "Launch File" button.
Actual Results:
Those buttons don't work.
Expected Results:
Those buttons must work fine.
Comment 1•21 years ago
|
||
Does the file you've selected still exist in that location? These buttons are
disabled if you have selected a file that no longer exists. Appears to work for
files that still exist.
If this is just that the files you selected don't exist then this bug is
invalid. If you don't have permissions to resolve the bug let me know (via a
comment on the bug) and I'll resolve it for you.
Comment 2•21 years ago
|
||
Forgot to change the component to D/L manager. Apologies for the spam.
Component: Browser-General → Download Manager
Comment 3•21 years ago
|
||
Confirming with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a)
Gecko/20040419, can't see any JS error in JS console.
Component: Download Manager → Browser-General
Comment 4•21 years ago
|
||
Errors that appear with Venkman when clicking the launch button:
Warning ``reference to undefined property this.targetFile.launch'' [xs] in file
``file:///D:/mozilla/tree6/mozilla/obj-i686-pc-cygwin/dist/bin/components/nsProgressDialog.js'',
line 566, character 0.
Error ``this.targetFile.launch is not a function'' [xs] in file
``file:///D:/mozilla/tree6/mozilla/obj-i686-pc-cygwin/dist/bin/components/nsProgressDialog.js'',
line 566, character 0.
Updated•21 years ago
|
Assignee: general → download-manager
Component: Browser-General → Download Manager
Assignee | ||
Comment 5•21 years ago
|
||
this is the progress dialog, not download manager. hence comment 1 does not apply.
Assignee | ||
Comment 6•21 years ago
|
||
*** Bug 241911 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
Same problem occurs in Mac OS X as of build 2004042808.
Console states: nsProgressDialog::onLaunch failed: TypeError:
this.targetFile.launch is not a function
Assignee | ||
Comment 8•21 years ago
|
||
this may be a regression caused by the ftp upload patch...
I'll try to investigate this over the next days...
Assignee | ||
Comment 9•21 years ago
|
||
And indeed it is. this.targetFile is never QId to nsILocalFile. Consequently,
xpconnect doesn't know the methods launch() and reveal() are available on this
object.
Assignee: download-manager → cbiesinger
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.8a?
Summary: "Open File Location" and "Launch File" buttons (on download progress dialog) don't work → "Show File Location" and "Launch File" buttons (on download progress dialog) don't work
Assignee | ||
Comment 10•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #147465 -
Flags: superreview?(darin)
Attachment #147465 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 11•21 years ago
|
||
when bug 24867 lands on the 1.7 branch, this will have to land there too
Comment 12•21 years ago
|
||
Comment on attachment 147465 [details] [diff] [review]
patch
sr=darin
Attachment #147465 -
Flags: superreview?(darin) → superreview+
Comment 13•21 years ago
|
||
Comment on attachment 147465 [details] [diff] [review]
patch
>+ if (newval instanceof nsIFileURL && newval.file instanceof nsILocalFile) {
>+ this.mTargetFile = newval.file.QueryInterface(nsILocalFile);
Note that every time you access .file it clones a new one.
Just how many file URLs files aren't local files anyway? :-P
Attachment #147465 -
Flags: review?(neil.parkwaycc.co.uk) → review+
Assignee | ||
Comment 14•21 years ago
|
||
(In reply to comment #13)
> Note that every time you access .file it clones a new one.
> Just how many file URLs files aren't local files anyway? :-P
oh well, this is not performance-critical (called once per showing a progressdialog)
Checking in nsProgressDialog.js;
/cvsroot/mozilla/embedding/components/ui/progressDlg/nsProgressDialog.js,v <--
nsProgressDialog.js
new revision: 1.37; previous revision: 1.36
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Flags: blocking1.8a?
Resolution: --- → FIXED
Comment 15•21 years ago
|
||
shouldn't this be landed on 1.7 since bug 24867 has landed on 1.7 per comment #11?
Assignee | ||
Comment 16•21 years ago
|
||
(In reply to comment #15)
>bug 24867 has landed on 1.7
it has? doesn't look to me like it did....
Comment 17•21 years ago
|
||
okay, sorry, maybe I misunderstood bug 24867 comment #c210 then.
Assignee | ||
Comment 18•21 years ago
|
||
(In reply to comment #17)
> okay, sorry, maybe I misunderstood bug 24867 comment #c210 then.
that means that bug has permission to get checked in on the 1.7 branch, not that
it was already checked in
Comment 19•21 years ago
|
||
Did this affect Linux too? Mac and Windows I've branch verified, but Linux, the
problem didn't happen 0504 for me (looks like checkin was 0505).
Comment 20•21 years ago
|
||
I don't think that those buttons are enabled for Linux.
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•