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)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

(Keywords: regression, Whiteboard: patch-in-hand)

Attachments

(1 file, 3 obsolete files)

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
Status: NEW → ASSIGNED
Regression from fix for bug 132013
Keywords: regression
Attached patch proposed patch (obsolete) (deleted) — Splinter Review
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
Keywords: review
Whiteboard: patch-in-hand, need-review
Severity: trivial → minor
Summary: downloadmanajer.js: minValue not defined → downloadmanager.js: minValue not defined
Blocks: 161030
Keywords: patch
Blocks: 123569
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
QA Contact: sairuh → petersen
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+
Attached patch Modified patch as per comment 5 (obsolete) (deleted) — Splinter Review
Indentation of my closing braces is no longer funky. =^.^=
Attachment #96234 - Attachment is obsolete: true
Comment on attachment 103660 [details] [diff] [review] Modified patch as per comment 5 sr=bzbarsky
Attachment #103660 - Flags: superreview+
Attachment #103660 - Flags: superreview+
Attachment #103660 - Flags: review+
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.
Attached patch Modified patch (obsolete) (deleted) — Splinter Review
Nit addressed as per comment 8.
Attachment #103660 - Attachment is obsolete: true
There go the closing braces again... ;)
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 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+
Keywords: reviewapproval
Whiteboard: patch-in-hand, need-review → patch-in-hand
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+
fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Blocks: 156489
No longer blocks: 156489
No longer blocks: 161030
verified 2002111108/NT4, 2002111108/win98
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: