Bug 55014

Summary: Per-page minimum DOMTimer interval broken for repeating timers
Product: WebKit Reporter: Kenneth Russell <kbr>
Component: WebCore Misc.Assignee: Kenneth Russell <kbr>
Status: RESOLVED FIXED    
Severity: Normal CC: fishd, jamesr, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 54312    
Bug Blocks:    
Attachments:
Description Flags
Patch fishd: review+, kbr: commit-queue-

Description Kenneth Russell 2011-02-22 19:20:59 PST
The logic added in https://bugs.webkit.org/show_bug.cgi?id=54312 is broken for the case of repeating timers, i.e., those set via setInterval() rather than setTimeout(). The error occurs when the minimum interval is decreased and the timer's repeat interval has already been clamped to the larger value. The current code fails to decrease the repeat interval, leaving the timer running at the slower rate.
Comment 1 Kenneth Russell 2011-02-22 19:42:55 PST
Created attachment 83433 [details]
Patch
Comment 2 Kenneth Russell 2011-02-23 10:00:29 PST
Committed r79455: <http://trac.webkit.org/changeset/79455>