Bug 155465

Summary: Fix crash when reloading a page using requestAnimationFrame on iOS
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

Description Simon Fraser (smfr) 2016-03-14 14:26:30 PDT
Fix crash when reloading a page using requestAnimationFrame on iOS
Comment 1 Simon Fraser (smfr) 2016-03-14 14:28:31 PDT
Created attachment 274028 [details]
Patch
Comment 2 Simon Fraser (smfr) 2016-03-14 14:32:44 PDT
https://trac.webkit.org/r198157
Comment 3 Alexey Proskuryakov 2016-03-16 20:49:06 PDT
Comment on attachment 274028 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=274028&action=review

> Source/WebCore/platform/graphics/DisplayRefreshMonitorManager.cpp:113
> +    if (monitorIndex != notFound)
> +        m_monitors.remove(monitorIndex);

An even better fix would be to use removeFirst().