Closed Bug 574530 Opened 15 years ago Closed 15 years ago

Don't load PopupNotifications in onLocationChange if it's not initialized yet

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 4.0b1

People

(Reporter: kairo, Assigned: Gavin)

References

Details

(Whiteboard: [doorhanger])

Attachments

(1 file, 1 obsolete file)

See bug 570004 comment #10 - we currently load PopupNotifications in onLocationChange even if it hadn't been in use yet, which we probably should avoid (I guess we probably load it at startup now as soon as the location changes the first time, but we really should only load it once we actually need a popup notification).
Attached patch patch (obsolete) — Splinter Review
Adding another global is kind of annoying, but I don't think there is a better option...
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #454120 - Flags: review?(dao)
Comment on attachment 454120 [details] [diff] [review] patch if (!__lookupGetter__("PopupNotifications")) would probably work...
Attachment #454120 - Flags: review?(dao) → review+
Attached patch patchSplinter Review
Indeed, it does.
Attachment #454120 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a6
Whiteboard: [doorhanger]
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: