firefox-ios
firefox-ios copied to clipboard
The order is incorrect after switching to a tab after several tabs were opened in background
Steps to reproduce
- Open more than two new tabs in the background by long-pressing links and select "Open in New Tab" in the context menu
- Close the current tab by clicking the cross button, or switch to a newly opened background tab by clicking on that tab
Expected behavior
The order of the tabs should not change.
Actual behavior
- When a link is opened in the background, the new tab is positioned right next to the current one. For example, if the tabs are opened in the order 1 2 3 4 5, they will line up in the tab bar as 0 5 4 3 2 1, with 0 being the current tab where links are opened from, i.e. newest tab first.
- After switching to any of the new tabs or just close the order of the tabs in the tab bar suddenly becomes (0) 1 2 3 4 5, i.e. oldest tab first. (screen recording attached)
Device & build information
- Device: iPad Pro 10.5"
- Build version: Firefox Daylight 98.0 (8233)
Notes
Attachments:
https://user-images.githubusercontent.com/2097707/157562728-10b90426-05d0-4cdc-84b9-ca19048cd979.mp4
┆Issue is synchronized with this Jira Task
Possibly related issues: #10190 #9146
Thanks for the feedback @struq. I am simplifying the STR:
- Open a new tab
- Long press on a top site shortcut (e.g Facebook)
- Tap Open in New Tab
- Long press on a top site shortcut (e.g Wikipedia)
- Tap Open in New Tab
- 7.Long press on a top site shortcut (e.g Twitter)
- Close the first tab, the empty tab
Actual results:
- The order of the tab is 1st tab (Facebook) 2nd tab (Wikipedia) 3rd tab (Twitter)
Expected results:
- The order of the tab should be 1st tab (Twitter) 2nd tab (Wikipedia) 3rd tab (Facebook)