'Chrome doesn't go back to the last used tab after closing a created tab from an extension
I am making a Chrome extension that opens a dictionary page to search the selected word.
It's mainly used for reference consultation, so after the page is created
await chrome.tabs.create({ url })
I just read the reference and close it right after and continue my last tab reading.
But I have this unwanted behavior where Chrome won't go back to the last page that initiated the tab creation trigger.
Instead it will go to the last tab in the window (the page I am reading is not always at the end), that's annoying I then have to press a shortcut to quickly go back to the last used page.
Is it a known issue or do I have to add a special line in my extension to tell Chrome that when the created tab is closed I want to go back to the source page ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
