Closed Bug 300369 Opened 19 years ago Closed 19 years ago

Slow script warning when viewing very long events

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: mostafah)

Details

Attachments

(1 file)

When you try to view a display range that includes a very long event, the 'A
script on this page is causing Mozilla to run slowly' error comes up.

Steps to reproduce:
1.) Create an event starting in 1970 and ending today.
2.) Switch views so that today is visible.

Results:
Sunbird locks up and the warning is displayed.

In calendarWindow.js, the while loop should have conditions based on the display
range as well.  That way the function doesn't have to loop through every day
between 1970 and today.
Moves the startdate to the current display starting date, if the display start
is later.  Ends the while loop in createEventBox if it passes the display end
date.
Attachment #189200 - Flags: first-review?(mvl)
Attachment #189200 - Flags: first-review?(mvl) → first-review+
patch checked in
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: