Closed
Bug 163884
Opened 22 years ago
Closed 22 years ago
downloadmanager.js: minValue not defined - and other errors
Categories
(SeaMonkey :: Download & File Handling, defect)
SeaMonkey
Download & File Handling
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bugzilla, Assigned: bugzilla)
References
Details
(Keywords: regression, Whiteboard: patch-in-hand)
Attachments
(1 file, 3 obsolete files)
2.52 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1b) Gecko/20020821
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1b) Gecko/20020821
JavaScript Console Says:
Error: minValue is not defined
Source File: chrome://communicator/content/downloadmanager/downloadmanager.js
Line: 255
Reproducible: Always
Steps to Reproduce:
1. Open JavaScript Console
2. Open Download Manager
3. Click "Remove from list"
Actual Results:
JS error message on Java Console
Expected Results:
No error
Taking
Assignee: blaker → wesha
Status: UNCONFIRMED → NEW
Ever confirmed: true
1) fixed "minValue not defined" bug
and also a number of tiny bugs encountered while testing:
2) fixed "gDownloadView.view has no properties"
3) fixed "gDownloadView.treeBoxObject.selection has no properties"
4) now clearing status bar after deleting all downloads
5) now propely placing selection after deletion
6) now ensuring that this new selection is visible
Summary: downloadmanajer.js: minValue not defined → downloadmanager.js: minValue not defined
Comment 4•22 years ago
|
||
Adding BlakeR as default owner of the dlmanager.
Blake: Could you review the patch in this bug ?
Wesha: You probably should add the default owner to CC if you take a bug yourself.
OS: Windows XP → All
Hardware: PC → All
Summary: downloadmanager.js: minValue not defined → downloadmanager.js: minValue not defined - and other errors
Updated•22 years ago
|
QA Contact: sairuh → petersen
Comment 5•22 years ago
|
||
Comment on attachment 96234 [details] [diff] [review]
proposed patch
sr=bzbarsky if you fix the funky indentation of your closing braces.
Have you actually mailed someone asking for review?
Attachment #96234 -
Flags: superreview+
Indentation of my closing braces is no longer funky. =^.^=
Attachment #96234 -
Attachment is obsolete: true
Comment 7•22 years ago
|
||
Attachment #103660 -
Flags: superreview+
Updated•22 years ago
|
Attachment #103660 -
Flags: superreview+
Attachment #103660 -
Flags: review+
Comment 8•22 years ago
|
||
Comment on attachment 103660 [details] [diff] [review]
Modified patch as per comment 5
>Index: xpfe/components/download-manager/resources/downloadmanager.js
>@@ -252,9 +256,18 @@
> var remote = window.arguments[0].QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
> remote.Flush();
> gDownloadView.builder.rebuild();
>- if (minValue >= gDownloadView.treeBoxObject.view.rowCount)
>- --minValue;
>- gDownloadView.treeBoxObject.selection.select(minValue);
>+ // If there's nothing on the panel now, skip setting the selection
>+ if(gDownloadView.treeBoxObject.view && gDownloadView.treeBoxObject.view.rowCount > 0) {
Space between if and (
r=jag with that nit addressed.
Nit addressed as per comment 8.
Attachment #103660 -
Attachment is obsolete: true
Comment 10•22 years ago
|
||
There go the closing braces again... ;)
Assignee | ||
Comment 11•22 years ago
|
||
Merp, I need to sit down and figure out what the hell is going on with my
PatchMaker sometime. :/
Fixed braces, too.
(Maybe it would make sense to add some macro expansion stuff to do such a
things automatically when ULing a patch? Like "if(" -> "if (", etc.?)
Attachment #103717 -
Attachment is obsolete: true
Comment 12•22 years ago
|
||
Comment on attachment 103732 [details] [diff] [review]
Modified patch as per comments 5 AND 8
marking the r=jag, sr=bzbarsky
Attachment #103732 -
Flags: superreview+
Attachment #103732 -
Flags: review+
Comment 13•22 years ago
|
||
Comment on attachment 103732 [details] [diff] [review]
Modified patch as per comments 5 AND 8
a=asa for checkin to 1.2 (on behalf of drivers)
Attachment #103732 -
Flags: approval+
Comment 14•22 years ago
|
||
fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 15•22 years ago
|
||
verified 2002111108/NT4, 2002111108/win98
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•