• Bo Liu's avatar
    weblayer: Mark tab as hidden for detached view · f6389814
    Bo Liu authored
    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: default avatarClark DuVall <cduvall@chromium.org>
    Commit-Queue: Bo <boliu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#787750}
    f6389814
tab_impl.h 14.8 KB