Closed Bug 93651 Opened 24 years ago Closed 15 years ago

Sidebar broken, if certain prefs not set

Categories

(SeaMonkey :: Sidebar, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: BenB, Unassigned)

Details

(Keywords: l12y)

Attachments

(1 file, 2 obsolete files)

If neither intl.content.langcode nor general.useragent.locale are sat, the sidebar won't have any panels, and you can't get any. That's mostly due to a bad exception handling in sidebarOverlay.js. We have something like var locale try { locale = prefs.CopyCharPref("intl.content.langcode"); } catch(ex) { debug ("error"); } locale = locale.toLowerCase(); The last line will fail, because locale is not sat. |locale| must be set in the catch block. In this particular case, there are 2 nested try blocks, so I chose a longer solution. Will attach patch.
Attached patch Fix, version 1 (obsolete) — Splinter Review
That was most dry-coding - I didn't test all cases I try to catch. It did fix the problem for me, though. Please review.
Keywords: patch, review
-> me for tracking.
Assignee: pchen → ben.bucksch
Component: XP Apps → Sidebar
QA Contact: sairuh → sujay
matt, can you review?
Great bug. I this might be a bug that people in the international teams have been seeing that i have never been able to reproduce.
Keywords: l12y
Summary: Sidebar broken, if certain prefs not sat. → Sidebar broken, if certain prefs not sat
matt, was that a r=?
Is this bug still valid in Netscape 6.2?
Attachment #44683 - Flags: review+
Comment on attachment 44683 [details] [diff] [review] Fix, version 1 r=sgehani
Attachment #44683 - Attachment is obsolete: true
if we are sure this is desired behavior, the patch looks good. could anyone review it ?
need to ask reviewers@mozilla.org for a review, thanks. pretty standard proceedure, if we got a patch needing review.
Ben, what's the current status of this patch? is it still needed, does it still apply?
Attached patch Fix, version 3.Splinter Review
Contains fix for bug 121381 again (should I mark it a dup?). This is the version shipped with Beonex Communicator 0.8/0.9. That's all I can say about the patch.
Attachment #66102 - Attachment is obsolete: true
HONK !
Attachment #97394 - Flags: review?
Attachment #97394 - Flags: review? → review?(sgehani)
Comment on attachment 97394 [details] [diff] [review] Fix, version 3. This contains the fix for bug 121381 which has not been thoroughly tested for web and *chrome* tabs. Please attach a patch for just this bug. In the future please request reviews for sidebar from Shuehan (shliang@netscape.com) since she now works on sidebar. Thanks.
Attachment #97394 - Flags: review?(sgehani) → review-
Product: Browser → Seamonkey
Ben, are you still working on this? Does the bug still occur?
QA Contact: sujay → sidebar
-> default owner
Assignee: ben.bucksch → nobody
Summary: Sidebar broken, if certain prefs not sat → Sidebar broken, if certain prefs not set
To bug opener, do you still see problem you state by bug summary?
Please test yourself and stop asking that in all my bugs.
Offending code no longer exists. WORKSFORME
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: