Closed
Bug 300369
Opened 19 years ago
Closed 19 years ago
Slow script warning when viewing very long events
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jminta, Assigned: mostafah)
Details
Attachments
(1 file)
|
1.58 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•19 years ago
|
||
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)
Updated•19 years ago
|
Attachment #189200 -
Flags: first-review?(mvl) → first-review+
Comment 2•19 years ago
|
||
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.
Description
•