multi-account-containers icon indicating copy to clipboard operation
multi-account-containers copied to clipboard

Containers cannot be moved directly to last position

Open vcarciu opened this issue 1 year ago • 6 comments

Before submitting a bug report

  • [X] I updated to the latest version of Multi-Account Container and tested if I can reproduce the issue
  • [X] I searched for existing reports to see if it hasn't already been reported

Step to reproduce

  1. Open dashboard and go to Manage Containers
  2. Try to move any container directly to last position by drag and drop

Actual behavior

Container cannot be moved to last position

Expected behavior

Users should be able to move any container directly to last position

Additional informations

Video of issue:

https://github.com/user-attachments/assets/f8f36d99-7708-483f-969e-5e62bda67ca0

Provide a copy of Troubleshooting Information page (optional)

No response

vcarciu avatar Sep 11 '24 16:09 vcarciu

Good catch. Thanks for the report!

dannycolin avatar Sep 11 '24 17:09 dannycolin

i cant move or reorder at all with firefox running on arch linux with KDE

absolutegravitas avatar Nov 22 '24 03:11 absolutegravitas

i cant move or reorder at all with firefox running on arch linux with KDE

Same, it appears drag and drop is not working at all on Linux. Also on Arch, KDE.

Edit: Since this is sufficiently different from this issue, I created a new bug here https://github.com/mozilla/multi-account-containers/issues/2705

hirak99 avatar Dec 20 '24 07:12 hirak99

As this has not yet been solved, here is my workaround. This involves editing the container-order variable (which should have been created if this worked) manually.

  • about:debugging -> Firefox -> this extension -> Inspect
  • Storage -> Extension Storage -> moz-extension...
  • Look for container-order as a key. If it does not exist, create it.
    • It should look something like {"firefox-container-1":0,"firefox-container-2":1,"firefox-container-3":2,"firefox-container-4":3,"firefox-container-6":4,"firefox-container-7":5}. You can find the keys as storage key suffixes with the prefix "identitiesState@@_firefox-container-7".
    • Or you can automatically create it with the following -
      • First disable ... -> Popup Auto Hide (so you can inspect the containers box).
      • Open "Manage Containers", and inspect it.
      • Run on console, await Logic.saveContainerOrder(document.querySelector("#picker-identities-list"))
      • Re-enable ... -> Popup Auto Hide
  • The 'container-order' is basically {containerId: index, ...}. Alter the indices to suit your needs. Changes should be reflected immediately as you open the popup, and there should be no need to restart Firefox.

hirak99 avatar Mar 10 '25 08:03 hirak99

By the way, the drag and drop code appears to be located here, https://github.com/mozilla/multi-account-containers/blob/main/src/js/popup.js#L1229

Very likely something is wrong with that code.

hirak99 avatar Mar 10 '25 08:03 hirak99

I can confirm that this is an issue on wayland. I can't rearrange containers either under "Manage containers". If I want to rearrange them, I just have to delete them and recreate them in the order I want them. Basically, start from scratch. I'm using Kubuntu 25.04 kde6 wayland. It's every firefox or firefox fork that does this. I'm using Zen right now and it does it here as well. I didn't have this issue when I was using Kubuntu 24.04 kde5 X

AnonBlankzy avatar Aug 08 '25 12:08 AnonBlankzy