weblayer: Mark tab as hidden for detached view
If the view of the fragment of a tab is detached from the window (or not created yet), then mark the WebContents of the tab as hidden. This is to provide a somewhat reasonable way for the embedder to manipulate the web hidden state. Also change newly created TabImpl to be hidden on creation to avoid unnecessary state flips. This is purely for efficiency, not for correctness. Left restored tabs alone. Bug: 1096063 Change-Id: Ie8b5da3bef040536b976435c0507462f7f796c9d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2291691Reviewed-by:Clark DuVall <cduvall@chromium.org> Commit-Queue: Bo <boliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#787750}
Showing
Please register or sign in to comment