Closed Keith94 closed 4 years ago
The select owner on close behavior works in most cases, such as searching text with Google or clicking TCR's settings button and closing that tab; however, the behavior is broken when closing a new tab.
browser.tabs.selectOwnerOnClose
true
Second tab gets focus
Owner tab (first tab) gets focus
I found that using Ctrl+T and Ctrl+W selects the owner tab correctly, but the new tab button still has the issue.
I would bet that we need to pass openerTabId to browser.tabs.create
openerTabId
browser.tabs.create
https://framagit.org/ariasuni/tabcenter-reborn/commit/a78ebfd64439dafd175ffea3249cac892f062771
The select owner on close behavior works in most cases, such as searching text with Google or clicking TCR's settings button and closing that tab; however, the behavior is broken when closing a new tab.
Steps to reproduce
browser.tabs.selectOwnerOnClose
=true
Actual results
Second tab gets focus
Expected results
Owner tab (first tab) gets focus