New issue
Advanced search Search tips

Issue 854215 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Bug
q4



Sign in to add a comment

Hide tabgrid panels when they are not actively visible

Project Member Reported by rohitrao@chromium.org, Jun 19 2018

Issue description

I'd like to hide tabgrid panels when they are not visible.  As an example, the Recent Tabs panel appears to be alive and active throughout the lifetime of the app.  As discovered in  Issue 854049 , it's listening for model updates and triggering cell layout any time a tab is opened or closed, even if the tab grid or panel is never made visible.

How hard would it be to create panels lazily when the user starts to scroll, then destroy them in scrollDidEnd?  This would add work to the start of a scroll, but it would also reduce resource consumption in the steady state.
 

Comment 1 by marq@chromium.org, Jun 27 2018

Labels: Q2

Comment 2 by marq@chromium.org, Jun 27 2018

Labels: -Pri-1 S-TabGrid-Polish MS-Tab-Grid Pri-2
Labels: -Q2 -M-69
A portion of this has been completed. 
The recent tabs panel is no longer processing updates (recently closed items, and sync state updates) while in the background (tab grid). 
https://chromium-review.googlesource.com/c/chromium/src/+/1130462

The rest of this is deprioritized. 
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c7eba43e274055f453d861f42425008353103222

commit c7eba43e274055f453d861f42425008353103222
Author: edchin <edchin@chromium.org>
Date: Tue Jul 10 15:34:37 2018

[ios] Do not update recent tabs table view when not visible

Since recent tabs is in the tab grid, it is always receiving updates
and updating it's table view. This CL stops processing sync state
updates and recently closed tabs updates by bookkeeping
|-viewWillAppear:| and |-viewWillDisappear:|.

This approach also fixes a crash while collapsing/uncollapsing a
section while using the stand-alone recent tabs. This was due to the
background recent tabs also being updated, but having an inconsistent
state. The inconsistent state is because the collapse state is held
in an NSUserDefault.

Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I247b8cbeb634a86a7b3b7d165a747c5eaa966e57
Bug: 856520, 854215
Reviewed-on: https://chromium-review.googlesource.com/1130462
Commit-Queue: edchin <edchin@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Reviewed-by: edchin <edchin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573743}
[modify] https://crrev.com/c7eba43e274055f453d861f42425008353103222/ios/chrome/browser/ui/recent_tabs/recent_tabs_table_view_controller.mm

Labels: q4

Sign in to add a comment