Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(964)

Issue 2776083003: Use correct snapshot for the tab transition animation on iPad (Closed)

Created:
3 years, 8 months ago by PL
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use correct snapshot for the tab transition animation on iPad. The TabSwitcherTransitionContextContent stores the index of the tab from which the user animated in. However the tabs can be manipulated in the switcher (added removed) and so the tab at index i will not necessarily be the same as the tab that was originally at index i when first entering the switcher. This can lead to an incorrect snapshot being used. To reproduce: 1. Have a clean setup, just a single tab. 2. Navigate to a website which looks different to Google.com e.g. cnn.com 3. Enter the tab switcher (there should only be one tab) 4. Close the tab in the switcher 5. Hit the plus (+) button to create a new tab 6. The new tab will animate to full screen with the old (cnn.com) snapshot This change removes the use of an index to track the validity of the tab snapshots. Instead using the tabID of the Tab object itself to see if it's different. BUG=706891 TEST=Have a clean setup, just a single tab. Navigate to (e.g.) cnn.com. Enter the tab switcher. Close the tab in the switcher. Hit the plus (+) button to create a new tab. The new tab will animate to full screen with a correct snapshot. Review-Url: https://codereview.chromium.org/2776083003 Cr-Commit-Position: refs/heads/master@{#460905} Committed: https://chromium.googlesource.com/chromium/src/+/b6d1b157721d10aebaca323f514ba7d5a09bdcef

Patch Set 1 #

Patch Set 2 : Change to use tabID rather than the Tab object for comparison #

Patch Set 3 : Formatting change to keep to max number of columns #

Total comments: 9

Patch Set 4 : Formatting and other feedback #

Total comments: 3

Patch Set 5 : Formatting changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -12 lines) Patch
M ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm View 1 2 3 4 2 chunks +16 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/tab_switcher/tab_switcher_transition_context.mm View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
PL
Hi Jean-François, This is my first CL! I am very open to feedback, especially on ...
3 years, 8 months ago (2017-03-27 22:28:14 UTC) #6
jif
On 2017/03/27 22:28:14, PL wrote: > Hi Jean-François, > > This is my first CL! ...
3 years, 8 months ago (2017-03-28 21:19:36 UTC) #9
PL
On 2017/03/28 21:19:36, jif wrote: > On 2017/03/27 22:28:14, PL wrote: > > Hi Jean-François, ...
3 years, 8 months ago (2017-03-28 22:21:55 UTC) #10
PL
On 2017/03/28 22:21:55, PL wrote: > On 2017/03/28 21:19:36, jif wrote: > > On 2017/03/27 ...
3 years, 8 months ago (2017-03-29 00:18:03 UTC) #11
sdefresne
On 2017/03/28 22:21:55, PL wrote: > On 2017/03/28 21:19:36, jif wrote: > > On 2017/03/27 ...
3 years, 8 months ago (2017-03-29 09:50:54 UTC) #12
jif
On 2017/03/29 09:50:54, sdefresne wrote: > On 2017/03/28 22:21:55, PL wrote: > > On 2017/03/28 ...
3 years, 8 months ago (2017-03-29 16:20:09 UTC) #13
PL
On 2017/03/29 16:20:09, jif wrote: > On 2017/03/29 09:50:54, sdefresne wrote: > > On 2017/03/28 ...
3 years, 8 months ago (2017-03-29 20:20:45 UTC) #14
marq (ping after 24h)
Hi Peter! I'm throwing a bunch of style comments at you here. Most of them ...
3 years, 8 months ago (2017-03-30 06:17:45 UTC) #16
marq (ping after 24h)
https://codereview.chromium.org/2776083003/diff/40001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm File ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm (right): https://codereview.chromium.org/2776083003/diff/40001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm#newcode730 ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm:730: return differ; On 2017/03/30 06:17:45, marq wrote: > Instead ...
3 years, 8 months ago (2017-03-30 09:20:06 UTC) #17
PL
On 2017/03/30 09:20:06, marq wrote: > https://codereview.chromium.org/2776083003/diff/40001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm > File ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm (right): > > https://codereview.chromium.org/2776083003/diff/40001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm#newcode730 > ...
3 years, 8 months ago (2017-03-30 17:39:21 UTC) #18
jif
lgtm with small nits https://codereview.chromium.org/2776083003/diff/60001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm File ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm (right): https://codereview.chromium.org/2776083003/diff/60001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm#newcode571 ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm:571: if (![self initialTabModelAndTabIDMatchesTabModel:tabModel Can you ...
3 years, 8 months ago (2017-03-30 19:50:58 UTC) #20
PL
On 2017/03/30 19:50:58, jif wrote: > lgtm with small nits > > https://codereview.chromium.org/2776083003/diff/60001/ios/chrome/browser/ui/tab_switcher/tab_switcher_controller.mm > File ...
3 years, 8 months ago (2017-03-30 21:05:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2776083003/80001
3 years, 8 months ago (2017-03-30 21:07:10 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 22:19:30 UTC) #27
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b6d1b157721d10aebaca323f514b...

Powered by Google App Engine
This is Rietveld 408576698