Closed Bug 155426 Opened 23 years ago Closed 22 years ago

OS X trunk: download manager never displays downloads

Categories

(SeaMonkey :: Download & File Handling, defect, P1)

PowerPC
macOS
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.3beta

People

(Reporter: bugzilla, Assigned: sfraser_bugs)

References

Details

(Keywords: helpwanted, platform-parity, regression, Whiteboard: [adt2])

Attachments

(1 file, 1 obsolete file)

found using 2002.07.01.03 comm trunk. whenever i download a file or open it with a helper app, its entry is never listed in the download manager window. tested: a. saving via "save target link as" b. saving via helper app dlg ("save to disk") c. opening helper app js console output for (a): Error: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsILocalFile.persistentDescriptor]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: file:///Perla/Test%20OS%20X%20Builds/2002070103/Netscape/Netscape.app/Contents/MacOS/Components/nsDownloadProgressListener.js :: anonymous :: line 98" data: no] Source File: file:///Perla/Test%20OS%20X%20Builds/2002070103/Netscape/Netscape.app/Contents/MacOS/Components/nsDownloadProgressListener.js Line: 98 Error: this.doc.getElementById(aDownloadID) has no properties Source File: file:///Perla/Test%20OS%20X%20Builds/2002070103/Netscape/Netscape.app/Contents/MacOS/Components/nsDownloadProgressListener.js Line: 99 Error: this.doc.getElementById(aDownloadID) has no properties Source File: file:///Perla/Test%20OS%20X%20Builds/2002070103/Netscape/Netscape.app/Contents/MacOS/Components/nsDownloadProgressListener.js Line: 63 js console output for (b) just spews the line 98 error above until download finishes, followed by the line 99 and 63 errors above. js console output for (c) consists of the line 99 and 63 errors.
btw, is this another component registry issue, or something else?
Keywords: regression
sairuh, you might be able to answer your own question by removing the component registry file and trying again. Because of the stability problems it caused, we stopped including a pre-generated component registry with OSX BRANCH builds, but we continue to do so with TRUNK builds since we didn't encounter the same issues there. If this works fine with today's branch build and removing the Compreg from the trunk build also resolves the issue, then I'll turn off the "autoreg" step in the TRUNK build automation as well.
this was not a problem using 2002.07.02.05 branch comm bits. for the 2002.07.01.03 trunk build, i removed the Component Registry, but the download manager still fails to display entries. i'll dblcheck with today's trunk build, if it's available...
even after trashing the Component Registry for the 2002.07.02.11 trunk comm build, i still this.
not a problem with trunk builds on linux rh7.2, win2k, or oddly enough mac 9.1. tested with 2002.07.03.0x comm builds.
Keywords: pp
Summary: trunk: dl mgr never displays downloads → OS X trunk: dl mgr never displays downloads
hey steve, have you encountered this problem before? and/or, any ideas as to why it might be happening?
Nope, haven't seen this one before (not that I ever use the DL manager tho)
Reconfirmed using FizzillaCFM/2002071808.
*** Bug 156955 has been marked as a duplicate of this bug. ***
See bug 155426 for the reasons why this is broken.
Keywords: nsbeta1
Er, the reasons are in bug 156955. See also bug 132027, which is related.
Summary: OS X trunk: dl mgr never displays downloads → OS X trunk: download manager never displays downloads
Depends on: 132027
*** Bug 165079 has been marked as a duplicate of this bug. ***
*** Bug 169284 has been marked as a duplicate of this bug. ***
*** Bug 169291 has been marked as a duplicate of this bug. ***
*** Bug 171357 has been marked as a duplicate of this bug. ***
*** Bug 172087 has been marked as a duplicate of this bug. ***
*** Bug 172561 has been marked as a duplicate of this bug. ***
Nav triage team: nsbeta1+/adt2
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt2]
*** Bug 173312 has been marked as a duplicate of this bug. ***
QA Contact: sairuh → petersen
*** Bug 148027 has been marked as a duplicate of this bug. ***
*** Bug 166401 has been marked as a duplicate of this bug. ***
I've noticed this on Mac OS X, both 10.1.5 and 10.2.1, versions 1.2a through today's build (2002101612).
Bug 156955 describes why this is broken.
*** Bug 175028 has been marked as a duplicate of this bug. ***
*** Bug 175476 has been marked as a duplicate of this bug. ***
*** Bug 179178 has been marked as a duplicate of this bug. ***
also busted on mach-o [moz trunk, 2002.12.16.07].
Keywords: helpwanted
This problem pretty much makes the dl manager useless to the user. Any chance we can get this resolved soon ? This has been broken for months on the trunk and really should be a useable feature for OS X Mozilla users.
Priority: -- → P1
Sure, I'll take a look.
Assignee: blaker → ccarlen
Target Milestone: --- → mozilla1.3beta
Conrad: there are 2 issues (when I looked at this a while back). i) xul overlays included for Mac (to get a menu bar in the d/l window) cause errors that mean that initting the window fails. ii) blake mixed full paths and persistent descriptors (in C++ and JS). See http://bugzilla.mozilla.org/show_bug.cgi?id=156955#c8 http://bugzilla.mozilla.org/show_bug.cgi?id=156955#c9
Blocks: 149510
Taking
Assignee: ccarlen → sfraser
This patch fixes a bunch of issues (some XP) with mismatches between paths and persistent descriptors (PDs). The DL manager uses paths/PDs to index into the list of downloads (both active, and done). PDs have issues here, because the code needs to reference the PD for a file before it has been created, which is not possible with a PD. So I converted the code to use full paths, which (now that we don't care about OS 9) is mostly OK. However, the code used file.path in JS, but native paths in C++ (which it used with RDF). That was also broken, because native paths use the system encoding, so won't match unicode paths. This was fixed by using unicode paths in the C++, converted to UTF-8 for RDF. Issues remain. It's possible to start the same download twice, but because the destination path isn't unique, it will only appear once in the list, with progress that flickers up and down. Also, past downloads won't be tracked if you move the file, or reboot and end up with different volume names. Also, none of this works unless you remove the contents.rdf that causes hiddenwindow.xul to be overlayed in the download manager window, something that is done just for Mac (to get menus), but causes a slew of JS errors.
> That was also broken, because native paths use the system encoding, so won't match unicode paths. This should be true for anything but builds using nsLocalFileOSX.cpp, because its native *is* UTF-8. So, that fix is right, but I'm curious where you observed that breakage. If it was on Mach-O, something very contrary to the OS doc is happening.
I saw it in a CFM build, with a truncated filename (that contained an ellipsis character).
Status: NEW → ASSIGNED
Attachment #109709 - Attachment is obsolete: true
Attachment #110021 - Flags: superreview?(sspitzer)
Attachment #110021 - Flags: review?(ccarlen)
Comment on attachment 110021 [details] [diff] [review] Patch adds fix for XUL menus on Mac Nice, cleans up a few things.
Attachment #110021 - Flags: review?(ccarlen) → review+
Attachment #110021 - Flags: superreview?(sspitzer) → superreview?(jaggernaut)
*** Bug 132027 has been marked as a duplicate of this bug. ***
*** Bug 183420 has been marked as a duplicate of this bug. ***
Comment on attachment 110021 [details] [diff] [review] Patch adds fix for XUL menus on Mac >Index: resources/downloadmanager.js >=================================================================== >+function haveSelectedItem() >+{ >+ return (gDownloadView.currentIndex != -1); >+} Are you using this function anywhere? >Index: resources/mac/dlmanagermenuoverlay.xul >=================================================================== >+ <script type="application/x-javascript" src="chrome://global/content/strres.js"/> Is this overlay needed? I thought we got rid of most uses of the function in there. sr=jag
Attachment #110021 - Flags: superreview?(jaggernaut) → superreview+
Fix checked in, with jag's comments addressed. Thanks guys!
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Using the 2003-01-03-08 OS X CFM trunk, this problem has been fixed. Download transfers now appear in the DL window. During the transfer process, information like file name, progress indicator, and transferred data are displayed.
Status: RESOLVED → VERIFIED
*** Bug 186662 has been marked as a duplicate of this bug. ***
*** Bug 188012 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: