Closed Bug 296193 Opened 19 years ago Closed 19 years ago

fresh profile startup: currentView/multiweekView has no properties (rootCalendarPrefs) [trunk]

Categories

(Calendar :: Sunbird Only, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: mostafah)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050526 Mozilla Sunbird/0.2+

Starting up sunbird on a fresh profile produces errors in JS console (and no
initial calendar).

Reproducible: Always

Steps to Reproduce:
0. rename or delete sunbird profile 
1. start sunbird
2. tools -> javascript console
Actual Results:  
Error: this.CalendarPreferences.calendarWindow.currentView has no properties
Source File: chrome://calendar/content/pref/rootCalendarPref.js
Line: 85

Error: this.CalendarPreferences.calendarWindow.currentView has no properties
Source File: chrome://calendar/content/pref/rootCalendarPref.js
Line: 80

Error: this.CalendarPreferences.calendarWindow.multiweekView has no properties
Source File: chrome://calendar/content/pref/rootCalendarPref.js
Line: 76
(patch -l -p 2 -i file.patch)

Some pref observers check if the view exists before accessing it, but some
don't.	Patch adds check to other initializations.

Result:  The javascript errors no longer appear.  Prefs still work on restart.
Attachment #185007 - Flags: first-review+
patch checked in
QA Contact: gurganbl → sunbird
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: