Closed Bug 491226 Opened 16 years ago Closed 16 years ago

reference to undefined property unifinderObserver.prototype, calendar-unifinder.js Line: 102

Categories

(Calendar :: Calendar Frontend, defect)

defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gekacheka, Assigned: gekacheka)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b5pre) Gecko/20090502 Shiretoko/3.5b5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b5pre) Gecko/20090502 Calendar/1.0pre with pref javascript.options.strict set to true, get Warning: reference to undefined property unifinderObserver.prototype Source File: chrome://calendar/content/calendar-unifinder.js Line: 102 Reproducible: Always Steps to Reproduce: 1. start sunbird in a fresh profile 2. open error console showing warnings Actual Results: Warnings include 7 instances of Warning: reference to undefined property unifinderObserver.prototype Source File: chrome://calendar/content/calendar-unifinder.js Line: 102 Expected Results: No such warning
Severity: normal → trivial
(patch -l -p 1 -i file.patch) unifinderObserver is a singleton and does not have a prototype. http://mxr.mozilla.org/comm-central/source/calendar/base/content/calendar-unifinder.js#97 doQueryInterface checks for null prototype. http://mxr.mozilla.org/comm-central/source/calendar/base/src/calUtils.js#782 Therefore safe to pass null instead.
Assignee: nobody → gekacheka
Attachment #375549 - Flags: review?(philipp)
Blocks: 483643
Status: NEW → ASSIGNED
OS: Windows 2000 → All
Hardware: x86 → All
Comment on attachment 375549 [details] [diff] [review] patch: pass null because unifinderObserver is a singleton with no prototype r=philipp
Attachment #375549 - Flags: review?(philipp) → review+
Pushed to comm-central <http://hg.mozilla.org/comm-central/rev/6f88ff1ad0ad> -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.0
Target Milestone: 1.0 → 1.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: