Bug 106206

Summary: CachedResource::switchClientsToRevalidatedResource() fails to properly remove clients
Product: WebKit Reporter: Philip Rogers <pdr>
Component: SVGAssignee: Philip Rogers <pdr>
Severity: Normal CC: abarth, ap, beidson, japhet, koivisto, webkit.review.bot, zimmermann
Priority: P2    
Version: 420+   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
First pass none

Description Philip Rogers 2013-01-06 20:12:19 PST
CachedResource::switchClientsToRevalidatedResource() contains the following:
710 // Equivalent of calling removeClient() for all clients
711 m_clients.clear();


This comment is a lie; m_clients.clear() fails to call didRemoveClient(...) for each client which can lead to clients leaving state around (e.g., CachedImage does cleanup in didRemoveClient(...)).
Comment 1 Philip Rogers 2013-01-06 20:46:51 PST
Created attachment 181470 [details]
First pass
Comment 2 Nate Chapin 2013-01-07 10:12:41 PST
Comment on attachment 181470 [details]
First pass

To be fair, the comment was true when this code was written :)
Comment 3 Philip Rogers 2013-01-07 10:15:55 PST
Comment on attachment 181470 [details]
First pass

Thanks for the review!
Comment 4 WebKit Review Bot 2013-01-07 10:33:37 PST
Comment on attachment 181470 [details]
First pass

Clearing flags on attachment: 181470

Committed r138958: <http://trac.webkit.org/changeset/138958>
Comment 5 WebKit Review Bot 2013-01-07 10:33:42 PST
All reviewed patches have been landed.  Closing bug.