Web Inspector: CRASH at InspectorConsoleAgent::enable when iterating mutable list...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2017 20:21:27 +0000 (20:21 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2017 20:21:27 +0000 (20:21 +0000)
commita697ec01c0a3633fb317de81bf8159abaae74204
tree68dbea2db028669f0346ca3458f081dea98e9b48
parent106ea98ada6508e5c0918a151ab1b830b7bbf3b9
Web Inspector: CRASH at InspectorConsoleAgent::enable when iterating mutable list of buffered console messages
https://bugs.webkit.org/show_bug.cgi?id=180590
<rdar://problem/35882767>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-12-08
Reviewed by Mark Lam.

* inspector/agents/InspectorConsoleAgent.cpp:
(Inspector::InspectorConsoleAgent::enable):
Swap the messages to a Vector that won't change during iteration.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/agents/InspectorConsoleAgent.cpp