Changeset <https://trac.webkit.org/changeset/223149/> (bug #178102) inadvertently changed the copying semantics in WebProcessProxy such that we no longer ref WebPageProxy objects before calling their functionality. In bug #181771 we fixed this inadvertent change made in WebProcessProxy::didClose(). There are more places that r223149 touched that we need to fix up. It is not safe to loop over WebPageProxy objects calling functionality that may call a delegate because the delegate can do anything including deallocating itself and other WebPageProxy objects.
<rdar://problem/36662452>
Created attachment 331748 [details] Patch
Comment on attachment 331748 [details] Patch r=me
Comment on attachment 331748 [details] Patch Clearing flags on attachment: 331748 Committed r227218: <https://trac.webkit.org/changeset/227218>
All reviewed patches have been landed. Closing bug.