[Bug] Switch to tab-The option is not available for the last opened tab
Steps to reproduce
- Open app and make a search after a website.
- Tap on the tabs tray and open a new tab.
- Insert the site from step 1.
Expected behavior
The "Switch to tab" option is displayed. ❓
Actual behavior
The "Switch to tab" option is missing for the last searched site.
Device information
- Android device: Google Pixel 3 XL (Android 9), Samsung Galaxy S9(Android 8) and Sony Xperia Z5 (Android 7)
- Fenix version: Firefox Preview Nightly 200327 (Build #20870607) GV: 76.0a1-20200325093457
Google Pixel 3 XL (Android 9) GIF:

┆Issue is synchronized with this Jira Task
Seems like this is the intended behavior right now. We actually want to exclude the selected session. In SessionSuggestionProvider constructor we pass excludeSelectedSession = true as you can see here. Also you can check this AC method.
Curious about @boek's/@ekager's opinions on this. Is this a bug? Should we change excludeSelectedSession = false?
It was intentional at some point 😆 UX - is this something we want to change?
@topotropic for feedback
I think that's for @brampitoyo – looks like it's about the search results
@Diana-Rus @ValentinTimisica @ekager We definitely want to show (and visually label) currently open tabs in address bar search results (if it matches query), and allow people to easily switch to it.
I believe this is also part of #12622, where, along with open tabs, we will also visually label bookmarks and synced tabs.
Looks like this is working now – I'll close this issue. I also opened up 2 follow-up issues to review the priority of search suggestions (https://github.com/mozilla-mobile/fenix/issues/16391) and to fix a small bug (https://github.com/mozilla-mobile/fenix/issues/16390)