Avoid iterator invalidation bug in WebCore::defaultPortForProtocol
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Jun 2017 03:53:24 +0000 (03:53 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Jun 2017 03:53:24 +0000 (03:53 +0000)
commit9a47e54ca371e03c2c5bf923ea410c8c182f4557
tree38586047612f2808d95149670feb18dfeaffdded
parent416363f69f384d5a7b5853fe941cd521f63be633
Avoid iterator invalidation bug in WebCore::defaultPortForProtocol
https://bugs.webkit.org/show_bug.cgi?id=172786
<rdar://problem/32499586>

Reviewed by Chris Dumez.

Create the SecurityOrigin objects on the main thread (rather than the worker queues)
since defaultPortForProtocol is not threadsafe.

* loader/ResourceLoadObserver.cpp:
(WebCore::ResourceLoadObserver::logFrameNavigation):
(WebCore::ResourceLoadObserver::logSubresourceLoading):
(WebCore::ResourceLoadObserver::logWebSocketLoading):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/loader/ResourceLoadObserver.cpp