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

RESOLVED FIXED

Status

Calendar
Sunbird Only
RESOLVED FIXED
13 years ago
13 years ago

People

(Reporter: gekacheka, Assigned: Mostafa Hosseini)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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
(Reporter)

Comment 1

13 years ago
Created attachment 185007 [details] [diff] [review]
check if view exists before accessing it during pref initialization

(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
Last Resolved: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.