We currently mark layers as volatile when the WebProcess is about to be suspended. Most of the time the WebProcess gets suspended when a page goes into the background. However, it is not always the case (see radar), in which case the layers won't be marked as volatile and waste memory even though they are not visible. We need to mark layers as volatile as soon as the page goes into the background, instead of relying on the WebProcess suspension mechanism. Radar: <rdar://problem/20663184>
Created attachment 254050 [details] Patch
Comment on attachment 254050 [details] Patch Clearing flags on attachment: 254050 Committed r185123: <http://trac.webkit.org/changeset/185123>
All reviewed patches have been landed. Closing bug.