Bug 155465 - Fix crash when reloading a page using requestAnimationFrame on iOS
Summary: Fix crash when reloading a page using requestAnimationFrame on iOS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 14:26 PDT by Simon Fraser (smfr)
Modified: 2016-03-16 20:49 PDT (History)
1 user (show)

See Also:


Attachments
Patch (1.97 KB, patch)
2016-03-14 14:28 PDT, Simon Fraser (smfr)
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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().