Bug 145547 - [iOS][WK2] Always mark layers as volatile for background pages
Summary: [iOS][WK2] Always mark layers as volatile for background pages
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-06-01 21:28 PDT by Chris Dumez
Modified: 2015-06-02 14:30 PDT (History)
6 users (show)

See Also:


Attachments
Patch (10.86 KB, patch)
2015-06-01 21:55 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-06-01 21:28:36 PDT
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>
Comment 1 Chris Dumez 2015-06-01 21:55:02 PDT
Created attachment 254050 [details]
Patch
Comment 2 WebKit Commit Bot 2015-06-02 14:30:51 PDT
Comment on attachment 254050 [details]
Patch

Clearing flags on attachment: 254050

Committed r185123: <http://trac.webkit.org/changeset/185123>
Comment 3 WebKit Commit Bot 2015-06-02 14:30:59 PDT
All reviewed patches have been landed.  Closing bug.