Closed Bug 160927 Opened 23 years ago Closed 23 years ago

"Customize Tab" breaks with JavaScript error

Categories

(SeaMonkey :: Sidebar, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla-mozilla-20000923, Assigned: samir_bugzilla)

References

Details

(Keywords: useless-UI)

Attachments

(1 file, 2 obsolete files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020803 BuildID: 2002080308 Trying to customize a sidebar tab (clicking "Customize Tab" after selecting a customizable tab) simply results in a JavaScript error. Reproducible: Always Steps to Reproduce: 1. Open JavaScript Console (from "Tools" menu, under "Web Developement"). 2. Make sure "Show JavaScript errors and warnings in Mozilla chrome" is turned on in "Debug" in Preference. 3. Open "Customize Sidebar" window (from "Tabs" drop-down above sidebar). 4. Select a tab in the "Tabs in Sidebar" list that allows customization. 5. Click "Customize Tab". Actual Results: A JavaScript error is printed to the JS console. Expected Results: The Customize Tab window should open. The JavaScript error generated is: Error: tree.selectedItems has no properties Source File: chrome://communicator/content/sidebar/customize.js Line: 437
Keywords: useless-UI
Keywords: mozilla1.2
Increasing priority - this is a serious bug - and it's still in 1.2 alpha.
Severity: major → critical
how is this "useless-UI"? Do you see this with a clean profile?
To quote the page describing Bugzilla keywords: useless-UI: "Use this keyword when the UI exposes a feature that is either unusably broken or not implemented." This feature is entirely broken, so I think it needs the keyword to indicate this. And yes, it happens on a new profile, on a clean install of Moz 1.2 alpha too.
If you need a tab to test this with, use the following: javascript:window.sidebar.addPanel('CompSoc', 'http://www.warwickcompsoc.co.uk/tools/sidebar', 'http://www.warwickcompsoc.co.uk/tools/sidebar?content=customise');
*** Bug 162907 has been marked as a duplicate of this bug. ***
Bug #162907 is a dup of this one, however, http://bugzilla.mozilla.org/show_bug.cgi?id=162907#c1 is a rather interesting comment from that bug. Confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
If it is just the case of not upgrading the JavaScirpt when the new tree API came about, can we not fix this really easily? (assuming someone has time, I guess...)
Keywords: patch
Attached patch cvs diff -u version (obsolete) — Splinter Review
Attachment #101962 - Attachment is obsolete: true
Adding nscatfood since this is (or at least should be) important to the Netscape people, and does have a patch ready for review.
Keywords: nsCatFood
Attachment #102028 - Flags: review?(varga)
how about: var numSelected = tree.treeBoxObject.selection ? tree.treeBoxObject.selection.count : 0 other than that r=varga
Hmm, shouldn't |tree.treeBoxObject.selection.count| be zero if there's no selection?
Just following the style in that file. tree.treeBoxObject.selection can be null, btw
Attachment #102028 - Attachment is obsolete: true
Comment on attachment 106789 [details] [diff] [review] Updates based on Jan's comments. r=varga
Attachment #106789 - Flags: superreview?(jaggernaut)
Attachment #106789 - Flags: review?(varga)
Attachment #102028 - Flags: review?(varga)
Attachment #106789 - Flags: review?(varga) → review+
Attachment #106789 - Flags: superreview?(jaggernaut) → superreview+
Attachment #106789 - Flags: checkin?
Comment on attachment 106789 [details] [diff] [review] Updates based on Jan's comments. checked in
Attachment #106789 - Flags: checkin?
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
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: