Bug 179631

Summary: Web Inspector: refactor active WebSocket tracking to not use raw pointers
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: NEW ---    
Severity: Normal CC: achristensen, buildbot, hi, inspector-bugzilla-changes, timothy
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews117 for mac-elcapitan
none
Patch
none
Patch
none
Patch timothy: review-

Description Devin Rousso 2017-11-13 13:32:42 PST
As discussed at the WebKit Contributors meeting, we should avoid using raw-pointers.  Since I added this, I felt like I should change it :P
Comment 1 Devin Rousso 2017-11-13 13:35:32 PST
Created attachment 326792 [details]
Patch
Comment 2 Build Bot 2017-11-13 14:27:41 PST Comment hidden (obsolete)
Comment 3 Build Bot 2017-11-13 14:27:42 PST Comment hidden (obsolete)
Comment 4 Alex Christensen 2017-11-13 14:39:07 PST
Comment on attachment 326792 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=326792&action=review

> Source/WebCore/Modules/websockets/WebSocket.cpp:182
> +HashSet<Ref<WebSocket>>& WebSocket::allActiveWebSockets(const LockHolder&)

WebSockets are added in their constructor and removed in their destructor.  This will make it so they are added in their constructor and never deleted because their destructor will never be called because there will always be at least one ref.
Comment 5 Devin Rousso 2019-03-20 17:58:59 PDT
Created attachment 365452 [details]
Patch
Comment 6 Devin Rousso 2019-03-20 19:18:32 PDT
Created attachment 365462 [details]
Patch
Comment 7 Devin Rousso 2019-03-20 20:20:40 PDT
Created attachment 365468 [details]
Patch
Comment 8 Timothy Hatcher 2019-03-21 10:59:59 PDT
Comment on attachment 365468 [details]
Patch

Build fails.