Use WeakPtr instead of storing raw pointers in WebSocket code
Created attachment 365404 [details] Patch
Comment on attachment 365404 [details] Patch r=me
Comment on attachment 365404 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365404&action=review > Source/WebCore/Modules/websockets/WebSocketHandshake.cpp:126 > + , m_document(document ? makeWeakPtr(*document) : nullptr) eh.. we have a makeWeakPtr() which takes in a raw pointer and does this for you.
Fixed! https://trac.webkit.org/changeset/243252/webkit
<rdar://problem/49084881>