Is there a way to confirm closing TABS (not single window)?
-
Hello. Is there a way in the settings to have the browser confirm if you want to close a window tab, to prevent accidental closure?
I only see a confirmation dialogue option for the single window (or the whole application), which makes no sense to me. Accidentally closures usually happens when you have multiple tabs on and trying to switch tabs, since the X takes up a lot of the real estate of the individual tabs.
Thanks.
-
@mortaiyan Is your issue that you want to remain on a page?
-
@mortaiyan The close button can be hidden and middle-click used to close tabs.
-
@mortaiyan You could remove the close button.
-
@mortaiyan some websites already include code to display such a confirmation (for instance when you're navigating away from a form page without submitting the form). Your suggestion might cause a double confirmation in those cases.
Also, closing a tab is such a frequent action that if such a feature was indeed available and active, i imagine people would simple default to clicking confirm without even thinking it. Muscular memory would lead them to confirm the action even on those cases where you don't want to do it, rendering the function useless.
Finally, it's fairly easy to recover an accidently closed tab (ctrl+shift+T or from the garbage bin).
All of the above put me in the group of those that would not enable such an option...
-
@pauloaguia There are certain tabs you might wanna keep open at all costs, such as ones with ongoing media playback. Things that can mess it up are navigating in history, closing the browser, closing the window, closing the tab and clicking a link. I wrote a page action script for this some time ago, which throws a warning when you try to leave the page. It is pretty annoying should you want to navigate, but you only enable it on pages worth protecting.
-
@luetage the initial post was only about accidental closure, so i responded to that alone
Speaking of which, if it's only for certain pages that don't want to be accidentally closed, there's always be the option to pin the tab to prevent that...
-
@pauloaguia Not a solution, a pinned tab can still go through history, change website through any kind of navigation, opening links, bookmarks, etc. Pinning a tab only prevents you from closing the tab, should you have closing pinned tabs disabled in settings, it doesn’t prevent you from leaving the webpage you have open in the pinned tab.
To make this clear: What good is protecting a tab by pinning it, if it doesn’t contain the webpage you wanted to keep open anymore?
-
@luetage a solution to what? The original post only mentioned an option to prevent accidental closure. That was the only problem needing solution. You're the one making up all the other requirements.
I'm not saying that your solution doesn't address all those requirements and it's probably a good one at that, even if i didn't test it. At the very least the requirements seem fairly complete, so you clearly thought that through.
All i said was that my initial response was only to the original post, that's all. If you decided to take it at an attack on you or your solution that's your problem, one for which i have no solution :-p
-
He's right. You're giving roundabout ways of imagined scenarios as you would like to use it, but it doesn't do what I'm asking for. These are for tabs I use for work that displays data in real time, and I need all of them open. The what-if scenarios don't really add value as solutions, except in dismissing it.
-
@pesala It's a shame I have to workaround this issue by disabling the close button, instead of it so easily being part of the Close and Exit option in settings, but I guess even basic things can be easily overlooked when developing a program.
-
@mortaiyan You’d rather someone replied “No” to your initial question and the topic died down? It’s a positive when people try to figure out your problem and come up with different workarounds and solutions; you shouldn’t understand it as attack. It’s probably possible to modify the browser in a way that it does exactly what you want, but since you would likely dismiss it and demand a native solution I won’t make the effort. Please create a feature request instead.
-
@mortaiyan said in Is there a way to confirm closing TABS (not single window)?:
but I guess even basic things can be easily overlooked when developing a program
They were not necessarily overlooked. In my first reply I presented a few reasons why it might not be a good setting in the first place...
-
@luetage Thank you. I've also had this problem -especially when multiple tabs are open I often click the tab to reopen it and accidently click the X to close it.
Changing the settings to hide the X and using middle click works perfectly!
-
Another solution would be add option to require click & hold on close button to close tab after 300ms. This is a much more reliable method & easier to use than the double confirm close tab dialog.
-
I want this for closing a window for mac but they still won't add it.