Closed
Bug 296193
Opened 20 years ago
Closed 20 years ago
fresh profile startup: currentView/multiweekView has no properties (rootCalendarPrefs) [trunk]
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gekacheka, Assigned: mostafah)
Details
Attachments
(1 file)
|
3.45 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
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.
Updated•20 years ago
|
Attachment #185007 -
Flags: first-review+
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•