Description[Offline pages] Stop observing web contents and reset to null after use. Only create a new web contents when we need it.
Before this change, we will create a new webcontents in preparation for a request that might not come in for hours or days. During the waiting period, a number of things can happen which may result in things related to the webcontents to become stale and therefore crash when we actually do use it. One hypothesis is that a render process host might be created without any render processes attached to it, causing the host to be removed under certain memory pressures or when certain clean-up processes are triggered.
For better memory and freshness, we should probably only create a web contents when we actually need it anyway, and clean up everything after we use it.
BUG=714272, 709443
Review-Url: https://codereview.chromium.org/2866643005
Cr-Commit-Position: refs/heads/master@{#469906}
Committed: https://chromium.googlesource.com/chromium/src/+/e427c75396a3388f0b64915128a371bb1c5793f0
Patch Set 1 #
Total comments: 4
Messages
Total messages: 17 (9 generated)
|