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

Container name length not restricted in Manage Containers

Open kellim opened this issue 6 years ago • 11 comments

Actual behavior

If you long-click on the new tab button to create a new tab, then select Manage Containers and click the Add New Container button, it lets you enter a container name with an unlimited amount of characters.

entering-long-container-name

Expected behavior

The amount of characters entered is restricted to be the same amount as when you create a new container by clicking the containers icon and then clicking the Create new container (+) button which restricts the container name to be 25 characters.

Steps to reproduce

  1. Long-click on the new tab (+) button until a dropdown menu appears
  2. Select Manage Containers from the dropdown menu
  3. Click the Add New Container button
  4. In the Name input, enter a container name with more than 25 characters
  5. Click the Done button and observe that the container has been created with a long name.

Notes

Red boxes have been added to screenshots in this issue to surround the area of concern.

This is an effect of having a container name that's too long:

If you try to use a container with a very long name, you won't be able to type anything into the address bar because the container name will be taking up all the space.

long-container-name-address-bar

kellim avatar Oct 03 '19 22:10 kellim

@maxxcrawford Can you please advise if the container name should be restricted to 25 characters when creating a container from Manage Containers?

If so, I would like to work on this issue for my Outreachy application.

kellim avatar Oct 03 '19 22:10 kellim

Go ahead and take this issue. If we need to revise the character limit to be higher, I imagine it's an easy revision. Assigning this to you! 👍

maxxcrawford avatar Oct 04 '19 09:10 maxxcrawford

@groovecoder Do you think 25 characters are a enough? Or should it be higher? (Thinking i18n)

maxxcrawford avatar Oct 04 '19 09:10 maxxcrawford

25 seems good to me.

groovecoder avatar Oct 04 '19 12:10 groovecoder

Hi, @maxxcrawford and @groovecoder - it looks like the code for containers preferences, including the "Add New Container" window that has the problem mentioned in this issue is in the mozilla-central repository which I didn't know when I asked to do this as my first issue as an outreachy applicant. I only figured it out after I couldn't find the code.

I built mozilla-central on my PC and I installed the Containers add-on through the browser window that runs after building mozilla-central. But, I wonder if that's the correct process for installing add-ons when you're working with mozilla-central code?

Also, I have some more questions, but first I should ask is it OK to continue with this issue in the mozilla-central code, or should I pick something that has code in this multi-account-containers repository?

kellim avatar Oct 15 '19 03:10 kellim

@kellim @groovecoder Yes – Working on dual-related issues between Github and Bugzilla is fine. Just be sure to cross-reference each other. If you open a bug on Bugzilla, be sure to CC us both on that bug. Thanks!

maxxcrawford avatar Oct 15 '19 19:10 maxxcrawford

Thanks! @maxxcrawford @groovecoder When you build mozilla-central, what is the correct way to add multi-account-containers to the build for testing? (I'm not sure if what I did is correct where I just installed it as an add on from the browser that comes up after running ./mach run)

kellim avatar Oct 16 '19 01:10 kellim

@maxxcrawford @groovecoder I created Bugzilla Bug 1589311 and CC'd you both. It is the first Bugzilla bug I've ever created and I'd be happy to hear feedback if anything could be improved.

Also want to make sure you saw the above question, that's currently where I'm stuck right now--you have to have the Multi Account Containers Add-on installed to get to Containers preferences, so on the Firefox build (mozilla-central), do you go ahead and install it as an add-on in the browser? I don't know if that will mess up the build/code.

kellim avatar Oct 17 '19 08:10 kellim

@kellim

@groovecoder Do you think 25 characters are a enough? Or should it be higher? (Thinking i18n)

It should be longer. Or, to put it more humbly, please leave it up to each user. Why I'd like it longer: I use each container for various sites: For example, ContainerA will be RedditAliasA,GoogleAliasA, FacebookAliasA, twitterAliasA ContainerB will be RedditB, GoogleB, FacebookC, twitterB

Limiting to 25 characters may make sense for people with one or more of the following:

  1. small screens
  2. low resolution
  3. a busy toolbar (e.g., lots of extension buttons)
  4. wide density in Firefox ("touch" or "normal", as opposed to "compact" density)
  5. large text size

But others of us who have:

  1. large screen
  2. high resolution
  3. sparse toolbar
  4. compact density in Firefox
  5. small text size may appreciate a larger container-name length.

Please, developers, give us the option of increasing name length.

hub2git avatar Nov 12 '19 21:11 hub2git

Please, developers, give us the option of increasing name length.

I 100% agree with this. 25 character limit kills a lot of functionality in how I'd like to use this extension.

For example, I use this for managing multiple AWS accounts where the account aliases are generated based on account type, environment, location, purpose, etc. which almost always ends up being > 25 characters. Being able to name the container the name of the account would be great.

mcmurm avatar Sep 08 '20 13:09 mcmurm

@groovecoder Do you think 25 characters are a enough? Or should it be higher? (Thinking i18n)

No, its not enough at all!

hkfsc avatar Jul 10 '22 15:07 hkfsc