[bfcache] Do not cache if we might show the app banner
Do not cache if we might decide to show the app banner as we would lose state (e.g. the mojo binding for the render to send the prompt event). If we cache the page and go back we will not restart the pipeline (no DidFinishLoad will trigger) that should be fine as we will only put in cache if no banner needed to be shown. The page will only be cached for a limited time so we can assume that nothing has happened (e.g. page suddenly got a manifest) that would change the outcome of the pipeline. Some background on why we sometimes need to disable bfcache: https://docs.google.com/document/d/1NjZeusdS1kyEkZyfLggndU1A6qVt0Y1sa-LRUxnMoK8 Bug: 1001087 Change-Id: Id127a52f2883b771f4dbf7311c48683695261449 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824108Reviewed-by:Dominick Ng <dominickn@chromium.org> Reviewed-by:
Alexander Timin <altimin@chromium.org> Commit-Queue: Carlos Caballero <carlscab@google.com> Cr-Commit-Position: refs/heads/master@{#700651}
Showing
Please register or sign in to comment