Chromium Code Reviews
DescriptionLast_n: Do not save a snapshot of a closing tab.
Listening to the tab being hidden as a signal to save last_n offline
snapshots of pages also caused them to be saved for Android tabs that
are being closed. For this platform, when a tab is closed it is
initially hidden for a few seconds as a grace period for the user to
undo the closure.
This change monitors tab-will-close signals in Java and dispatches them
to the last_n native code so that we can register what's going on and
properly ignore the tab hidden event. A test was also added to test this
functionality.
BUG=685791
Review-Url: https://codereview.chromium.org/2705323006
Cr-Commit-Position: refs/heads/master@{#453712}
Committed: https://chromium.googlesource.com/chromium/src/+/f1d756b8310d09fcd4a3e7ab751c4e184c84d5b5
Patch Set 1 #Patch Set 2 : Minor comment changes. #
Total comments: 2
Patch Set 3 : Adjusted variable name to coding style. #Patch Set 4 : Rebase. #Patch Set 5 : Rebase after base change landed. #
Dependent Patchsets: Messages
Total messages: 16 (11 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||