-
Patrick Noland authored
When a site is suspended, SuspendedTab is shown in place of the actual contents of the page. Showing a SuspendedTab stops loading on the associated tab. Logic for showing a SuspendedTab flows through PageViewObserver, which already has the knowledge of which domains are being navigated to and shown. The SuspendedTab will eagerly remove itself on a new page load, which means every page load on a suspended site will create a new SuspendedTab. The alternative ended up being much more complex to code. We don't actively reload a page when a site is un-suspended, although this would be fairly easy to add in a follow-up. Bug: 902568 Change-Id: Ibc7099eafbab65f583d5989436c8831366a9b040 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1435623 Commit-Queue: Patrick Noland <pnoland@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#637935}
710de2f6