RESOLVED FIXED 115185
Thread safety issues in WKCustomProtocol
https://bugs.webkit.org/show_bug.cgi?id=115185
Summary Thread safety issues in WKCustomProtocol
Brady Eidson
Reported 2013-04-25 10:15:50 PDT
Thread safety issues in WKCustomProtocol WebKit2's custom protocol management needs to coordinate access to the m_customProtocolMap In radar as <rdar://problem/13247304>
Attachments
Patch v1 (5.84 KB, patch)
2013-04-25 10:22 PDT, Brady Eidson
ap: review+
Brady Eidson
Comment 1 2013-04-25 10:22:23 PDT
Created attachment 199681 [details] Patch v1
Alexey Proskuryakov
Comment 2 2013-04-25 10:45:25 PDT
Comment on attachment 199681 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=199681&action=review r=me assuming WKCustomProtocol is ThreadSafeRefCounted. > Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.h:101 > + RetainPtr<WKCustomProtocol> protocolForID(uint64_t customProtocolID); I'd add a comment explaining the RetainPtr. Looking at it, I already foolishly want to remove it :)
Brady Eidson
Comment 3 2013-04-25 10:52:51 PDT
(In reply to comment #2) > (From update of attachment 199681 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=199681&action=review > > r=me assuming WKCustomProtocol is ThreadSafeRefCounted. It is - of course - an Obj-C class and therefore its Retain counting is thread safe. > > > Source/WebKit2/Shared/Network/CustomProtocols/CustomProtocolManager.h:101 > > + RetainPtr<WKCustomProtocol> protocolForID(uint64_t customProtocolID); > > I'd add a comment explaining the RetainPtr. Looking at it, I already foolishly want to remove it :) Indeed! Thanks!
Brady Eidson
Comment 4 2013-04-25 10:58:12 PDT
Note You need to log in before you can comment on or make changes to this bug.