Display Page Lifecycle State in chrome://discards
In the Lifecycle State column, we were showing internal TabLifecycleUnitStates rather than Page Lifecycle states. As a result, we were showing "active" for the active, hidden, and passive page lifecycle states. As chrome://discards will be used by external developers, we should show Page Lifecycles States from the spec (https://github.com/WICG/page-lifecycle). This CL plumbs focus to the discards UI and uses the 3-tuple of (internal_tab_state, visibility, focus) to compute the page lifecycle state. Internal states are still shown in parentheses to aid in TabManager debugging, e.g. "hidden (pending frozen)". Bug: 856321 Cq-Include-Trybots: luci.chromium.try:closure_compilation Change-Id: Ieb6f0a098cc165c0b7544b3f27a7317f8c78caa1 Reviewed-on: https://chromium-review.googlesource.com/1114282 Commit-Queue: Scott Haseley <shaseley@google.com> Reviewed-by:Will Harris <wfh@chromium.org> Reviewed-by:
Alexander Timin <altimin@chromium.org> Reviewed-by:
Shubhie Panicker <panicker@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#585560}
Showing
Please register or sign in to comment