The other thing from that chromium code is that the closing order should be different. In the case you describe of having opened B, C and D background tabs. Closing D should not focus A (which created it) but instead focus C.
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu. https://bugs.launchpad.net/bugs/1664990 Title: Restore focus on parent tab when closing child tab Status in webbrowser-app package in Ubuntu: In Progress Bug description: (follow-up to https://code.launchpad.net/~fboucault/webbrowser- app/background_open_tabs_adjacent/+merge/316226) In chromium on desktop, when opening a link in a new tab (for instance when Ctrl+clicking on a hyperlink), the new tab is open next to the parent tab. When closing that child tab, the parent tab is the one that becomes current. In webbrowser-app, when closing the child tab, the next one in the list becomes current. It would be nice if webbrowser-app implemented the same behaviour as chromium. Steps to reproduce: 1) Start webbrowser-app, and open two tabs, e.g. http://example.org and http://start.ubuntu.com 2) Focus the first tab (example.org) and right click on the "More information…" link (this opens a new tab in second position and focuses it 3) Press Ctrl+W to close the current tab Expected result: the first tab (example.org) is the one that gets focused. Actual result: the second tab (start.ubuntu.com) is the one that gets focused. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1664990/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp