CRASH in WebCore::VideoFullscreenInterfaceMac::~VideoFullscreenInterfaceMac()
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jun 2018 20:06:40 +0000 (20:06 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jun 2018 20:06:40 +0000 (20:06 +0000)
commitb968703d998f5d60382e2a1e5167eefb565a8731
tree4899065d56fff3edb141c262c17a904d5cb10c70
parent044de8c05d0bfbf5a298ef6272f6b726aed991e4
CRASH in WebCore::VideoFullscreenInterfaceMac::~VideoFullscreenInterfaceMac()
https://bugs.webkit.org/show_bug.cgi?id=186892

Reviewed by Eric Carlson.

Protect against m_contentMap being mutated while its contents are being invalidated
by moving the map into a local variable and iterating over it instead.

* UIProcess/Cocoa/PlaybackSessionManagerProxy.mm:
(WebKit::PlaybackSessionManagerProxy::invalidate):
* UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:
(WebKit::VideoFullscreenManagerProxy::invalidate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Cocoa/PlaybackSessionManagerProxy.mm
Source/WebKit/UIProcess/Cocoa/VideoFullscreenManagerProxy.mm