Wrongly inherited `openerTabId` from the origina tab
- Temporary Containers Version: 1.9.2
- Firefox Version: Nightly 104.0a1build ID: 20220717090304
Actual behavior
The opened tab with temporary container has its opener's opener tab's id as the openerTabId.
Expected behavior
The opened tab with temporary container has its opener tab's id as the openerTabId.
Steps to reproduce
-
Start Firefox with clean profile.
-
Install Tree Style Tab (and leave with default settings).
-
Install Firefox Multi-Account Containers
-
Click the toolbar icon of the Firefox Multi-Account Containers and create a new container named as
Hacker News. -
Install Containerise
-
Add "news.ycombinator.com" to the rules for the Hacker News container. Click the toolbar icon of the Containerise, choose
Hacker News, click the "+" button, inputnews.ycombinator.comto the text field, and click the save button (floppy disk icon). -
Install Temporary Containers
-
Go to Temporary Containers' options: "Isolation" => "Mouse Click" => "Left Mouse" => choose "Different from Tab Domain & Subdomains".
-
Open new tab with the URL
https://news.ycombinator.com/. You should get a tree like:- tab A:
https://news.ycombinator.com/(container=Hacker News) (active)
- tab A:
-
Ctrl/Cmd-click (or middle-click) on the "new" in the top orange bar as a child tab. You should get a tree like:
- tab A:
https://news.ycombinator.com/(container=Hacker News) (active)- tab B:
https://news.ycombinator.com/newest(container=Hacker News)
- tab B:
- tab A:
-
Click the tab tab B opened at the step 10 to activate it. You should get a tree like:
- tab A:
https://news.ycombinator.com/(container=Hacker News)- tab B:
https://news.ycombinator.com/newest(container=Hacker News) (active)
- tab B:
- tab A:
-
Left-click the link next to
▲of any item (it is a link to foreign website.) It should open in new temporary container. The expected result:- tab A:
https://news.ycombinator.com/(container=Hacker News)- tab B:
https://news.ycombinator.com/newest(container=Hacker News)- tab C: a tab with commented URL (container=temporary) (active) (
- tab B:
but actually you'll see:
- tab A:
https://news.ycombinator.com/(container=Hacker News)- tab B:
https://news.ycombinator.com/newest(container=Hacker News) - tab C: a tab with commented URL (container=temporary) (active)
- tab B:
The tab C should have the ID of the tab B as its
openerTabId, but actually tab C is opened withopenerTabId=(tab A's ID) by Temporary Containers. - tab A:
Notes
The original report is https://github.com/piroor/treestyletab/issues/2998 , an issue of Tree Style Tab. I'm the author of the Tree Style Tab addon and investigated that the wrong openerTabId is given by Temporary Containers.