| Summary: | Use WeakPtr instead of storing raw pointers in WebSocket code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||
| Component: | New Bugs | Assignee: | Alex Christensen <achristensen> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | cdumez, ggaren, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Alex Christensen
2019-03-20 14:43:47 PDT
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. |