stoically / temporary-containers

Firefox Add-on that lets you open automatically managed disposable containers
https://addons.mozilla.org/firefox/addon/temporary-containers/
MIT License
852 stars 60 forks source link

Automatic Mode opens tabs in the wrong order when using it to open all tabs from a bookmark folder (inconsistent - order keeps changing) #524

Open FSDT opened 3 years ago

FSDT commented 3 years ago

Actual behavior

Opening a bookmark folder from the sidebar or using the bookmark manager using automatic mode will open the tabs in a seemingly random order which is different every time. It seems to struggle with the amount of containers being generated and then loading the sites. Sites that load slower seem to end up more towards the end?

Expected behavior

Open tabs in a bookmark folder in the correct order.

Steps to reproduce

  1. Right-click bookmark folder in sidebar -or- bookmarks manager
  2. Make sure that the folder contains a certain amount of tabs, let's say 25+
  3. Select "open all bookmarks"
  4. Automatic mode seems to struggle with creating the containers in bulk and then puts the tabs/sites in the wrong order, the more tabs there are in a folder, the more it struggles

Notes

Workarounds: Does not occur if you choose to open the bookmark folder in one container (right click bookmark folder> select open bookmark in container tab > select a container of your choice. This is through the context menu of the Firefox Multi-Account Container extension.

I've also tried with a clean install without the Multi-Account Container extension; it produces the same behavior.

Manually opening/dragging opened tabs in the correct order works, but is a pain.

Tried to add a debug.log to the issue, hopefully it comes through: Firefox.log

stoically commented 3 years ago

Interesting use case. This would require some sort of queuing mechanism as currently it's really just a random asynchronous race if multiple requests come in, so expected behavior.

Gitoffthelawn commented 2 years ago

I can confirm that I've noticed this behaviour as well.