Incorrect snapshot in tabs tray after clearing search tabs
Build: 17.0 (15191) Device: iPad Air 2 iOS: 11.4
Steps to reproduce:
- Open an empty tab
- Open a New Tab
- Go to twitter.com
- Open tabs tray
- Tap on the "Search Tabs" field
- Type 'Home' and delete the typed word
Actual results:
- Two twitter.com tabs appear in tabs tray.
Note:
- After tapping the 'x' in the 'Search Tabs' field the empty tab appears to be displayed correct.
I am able to reproduce it with step 6 modified a bit, when deleting the typed word I have to do it quite quickly letter by letter.
The problem is when we reload the collectionView of tabs, it's not fully reloaded . The only fix that I managed to find is setting flag evenIfHidden to true when calling metod refreshStore.
It doesn't work perfectly because we have an effect of blinking as described in comment in this method. I'm attaching the video how it works now. I've also checked that it doesn't make tabs screenshot blink in situation when this bug doesn't occur which is also in the video.
I'm opening the pull request with this fix.
Verifying as fix on 21.0 (16901)