fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Switch to tab-The option is not available for the last opened tab

Open Diana-Rus opened this issue 6 years ago • 6 comments

Steps to reproduce

  1. Open app and make a search after a website.
  2. Tap on the tabs tray and open a new tab.
  3. 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: 20200327-154015

┆Issue is synchronized with this Jira Task

Diana-Rus avatar Mar 27 '20 13:03 Diana-Rus

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?

ValentinTimisica avatar Mar 27 '20 14:03 ValentinTimisica

It was intentional at some point 😆 UX - is this something we want to change?

ekager avatar Aug 02 '20 22:08 ekager

@topotropic for feedback

AmyYLee avatar Aug 04 '20 15:08 AmyYLee

I think that's for @brampitoyo – looks like it's about the search results

topotropic avatar Aug 06 '20 21:08 topotropic

@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.

brampitoyo avatar Aug 11 '20 06:08 brampitoyo

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)

topotropic avatar Nov 05 '20 12:11 topotropic