Closed Bug 147842 Opened 22 years ago Closed 22 years ago

Error: gDownloadView.treeBoxObject.selection has no properties

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 132019

People

(Reporter: brant, Assigned: janv)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0+) Gecko/20020528 BuildID: 2002052809 There is a an Error: gDownloadView.treeBoxObject.selection has no properties error in the JavaScript Console when I open the Download Manager. Reproducible: Always Steps to Reproduce: 1. Open the Download Manager. Actual Results: An error appears in the JavaScript console: Error: gDownloadView.treeBoxObject.selection has no properties Source File: chrome://communicator/content/downloadmanager/downloadmanager.js Line: 126 Expected Results: There should be no error. There are some other errors also: Error: minValue is not defined Source File: chrome://communicator/content/downloadmanager/downloadmanager.js Line: 224 Error: gDownloadView.view has no properties Source File: chrome://communicator/content/downloadmanager/downloadmanager.js Line: 93
Do you see this on trunk too?
As far as I remember the code at this line where "your" error occured tries to see whether there are some / is one selected item to enable/disable the "Buttons" (Properties, Start, Stop). I guess you don't have any items in downloadmanager and so there is no selection(-object), because it's only created when something is in the tree (the list of the DM is actually a tree-object). Maybe this error occurs also when you just didn't select something. Basically there should be a check if the selection-object exists before accessing it. However I think this bug isn't too bad because the exception is handled invisible for normal users. I'd like to improve the DM but I have some exams in Biophysics 'till mid of July. After this I'll start (again) and hopefully produce some patches. (Starting programming Moz is quite hard because of the outdated and missing docs)
It is definitely occuring when buttons are pressed with nothing in the list. That can be used to reproduce the problem.
OS->All, because I see this on Linux too. If I open the download manger I instantly get about 15 of the gDownloadView.treeBoxObject.selection warnings. This is making the JavaScript console less useful since this clutters it up.
OS: Windows XP → All
Every time I move focus to something else and then back to the DM this error is printed like 10-15 times. I guess it's relevant that this happens when the DM is empty.
taking
Assignee: blaker → varga
Is this bug going to cover the "gDownloadView.treeBoxObject.selection" only, or will it also address the "minValue is not defined" as reported by Brant?
Nominating for buffy. Let's fix this JS errors.
Keywords: nsbeta1
Nav triage team: how does affect the end-user? Does this cause perceived loss of functionality?
When I remove last downloaded item from list in download manager, "Remove from List" and "Show in browser" buttons stay enabled. But I don't think this causes a loss of functionality.
Nav triage team: nsbeta1-
Keywords: nsbeta1nsbeta1-
To answer my own question in Comment #7, the current patch for Bug #132019 will fix the minValue problem. In fact, from a closer look at that patch, I beleive it will fix this bug completely. As such, I'm marking this as a dup of Bug #132019. You know what to do if I'm horribly wrong.... *** This bug has been marked as a duplicate of 132019 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
marking verified as a duplicate. if you decide to reopen this bug, please clarify why. search string for bugspam removal: SalviaGuaranitica
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.