Ticket #1407 (closed defect: fixed)
IE8 window resize causes infinite loop
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.96 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | major | Keywords: | race condition, infinite loop, hang |
| Cc: |
Description
First discussed here: http://www.xinha.org/punbb/viewtopic.php?pid=6617
I have a web page with a Xinha editor and also some other DHTML controls on the same page. When one of the other controls "opens" and displays a form field and attempst to focus() on that field, Xinha spins off into an infinite loop processing events. Specifically, the sizeEditor() function is called forever.
Each time sizeEditor() is called, its this._risizing member is false so the sizeEditor() continues processing. _risizing is set to true, processing is performed, and finally _risizing is set to false before returning. However, I suspect that the processing within sizeEditor() is causing IE8 to queue up some new size events that are not processed until *after* sizeEditor() returns, and thus, the whole process starts again--forever.
