The forEachResource() helper I added should be nice and protect CachedResource objects at least as long as we're in the custom callback.
Created attachment 272551 [details] Patch
Comment on attachment 272551 [details] Patch Clearing flags on attachment: 272551 Committed r197399: <http://trac.webkit.org/changeset/197399>
All reviewed patches have been landed. Closing bug.