Consider inner WebContents when choosing whether to snapshot for offline pages
RecentTabHelper::WebContentsWasHidden has several conditions for saving a snapshot. One of which is to not snapshot for custom tabs. We try to determine if a WebContents is a custom tab, but for inner WebContents, such as portals, we DCHECK as they are not directly associated with a tab. We now use the outermost WebContents to determine whether we are in a custom tab. Bug: 958825 Change-Id: Ia7e2ebe93e3a73741c5d0df467f20bc8bc9c38ba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1635969Reviewed-by:Yaron Friedman <yfriedman@chromium.org> Reviewed-by:
Dmitry Titov <dimich@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/master@{#664746}
Showing
Please register or sign in to comment