Bug 106206 - CachedResource::switchClientsToRevalidatedResource() fails to properly remove clients
Summary: CachedResource::switchClientsToRevalidatedResource() fails to properly remove...
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 420+
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philip Rogers
Depends on:
Reported: 2013-01-06 20:12 PST by Philip Rogers
Modified: 2013-01-07 10:33 PST (History)
7 users (show)

See Also:

First pass (1.92 KB, patch)
2013-01-06 20:46 PST, Philip Rogers
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.