cryptpad / cryptpad

Collaborative office suite, end-to-end encrypted and open-source.
https://cryptpad.org
GNU Affero General Public License v3.0
5.6k stars 648 forks source link

Setting to disable opening of new windows/tabs #485

Open alxndr42 opened 4 years ago

alxndr42 commented 4 years ago

I would like to see a setting that lets me disable the CryptPad behaviour of opening a new window/tab when I open a pad or the teams list. Or put in another way, let me stay in one tab, no matter what I do.

Everything else in CryptPad is pretty awesome, thanks!

fsantiago07044 commented 4 years ago

I second this. That’s quite annoying, but I can stomach it if there’s a valid technical or security based reason.

ansuz commented 4 years ago

If you're browsing with a browser that support SharedWorkers then you should notice that your second tab opens much more quickly than your first. This is because your account is already connected to the server in the background thanks to your first tab having launched a worker process to which all new tabs can connect.

This also means that all your CryptPad traffic for that browser runs over one websocket connection instead of as sockets as there are tabs. This incurs significantly less load on our server.

Shared workers shut down as soon as the last tab that required them closes. Opening a new tab is an easy way to ensure that the worker doesn't shut down and restart as you leave your first page and open your second in the same tab.

alxndr42 commented 4 years ago

Thanks for the explanation! I'm often navigating from CryptDrive to Teams (and back), which also opens a new tab every time. Is this due to worker performance as well, or could it be done in the same tab?

AInteriorB commented 3 years ago

Just found this thread via Google. I can confirm, after navigating through three documents I have six open tabs. Please provide a config option, where we can disable this behavior. That would be great.

roaldarbol commented 2 years ago

This would be great. I use CryptPad in Brave, and as a Chromium browser it is possible to create a "shortcut", a dockable web app (e.g. that's how I use the ProtonMail web-interface as a desktop application). Currently, this is possible with CryptPad (CryptDrive) too, but every time you open a new document it opens a new pane in a(nother) web browser.

If it was possible to disable the pop-up behaviour, then CryptPad could be a fully functional desktop app with no added effort.

Screenshot 2022-05-15 at 17 47 31
zen2 commented 2 years ago

+10

We are testing CryptPad among others solutions and it fit globally our need but the "new tab" behaviour make it not usable practically. You quickly finish with dozens of open tab and all testers have describe this behaviour as too much annoying for production usage.

roaldarbol commented 1 year ago

Just a friendly reminder that this feature would be an absolute game-changer, as one could use CryptDrive as a standalone web app - pleeease consider it, it would make for a really nice UX. 😊

Timoses commented 12 months ago

I second this. This behavior holds back willingness to adopt CryptPad, unfortunately.

If you're browsing with a browser that support SharedWorkers then you should notice that your second tab opens much more quickly than your first. This is because your account is already connected to the server in the background thanks to your first tab having launched a worker process to which all new tabs can connect.

This also means that all your CryptPad traffic for that browser runs over one websocket connection instead of as sockets as there are tabs. This incurs significantly less load on our server.

Shared workers shut down as soon as the last tab that required them closes. Opening a new tab is an easy way to ensure that the worker doesn't shut down and restart as you leave your first page and open your second in the same tab.

Is this the actual reason that this behavior exists? Surely, within a reactive framework a websocket can be kept alive during the loading of various contents on a page within a user's browser...