Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Closing multiple tabs doesn't display close warning #93

Closed
Keith94 opened this issue Jun 24, 2017 · 9 comments
Closed

Closing multiple tabs doesn't display close warning #93

Keith94 opened this issue Jun 24, 2017 · 9 comments

Comments

@Keith94
Copy link

Keith94 commented Jun 24, 2017

STR:

  1. Make sure 'Warn you when closing multiple tabs' is enabled in Fx options
  2. Open two or more tabs in the background
  3. Right-click the current tab and select 'close tabs underneath'

ER:
Close confirmation popup should appear

AR:
No close confirmation

@eoger
Copy link
Owner

eoger commented Jun 26, 2017

Web Extensions have no way of reading Firefox preferences.

@Smile4ever
Copy link
Contributor

Allow WebExtensions to read preference browser.tabs.warnOnCloseOtherTabs
https://bugzilla.mozilla.org/show_bug.cgi?id=1376394

@Smile4ever
Copy link
Contributor

The bug is about this dialog not showing when using close tabs underneath from within Tab Center Redux. @eoger says in order to implement this correctly, we need to be able to read "warnOnCloseOtherTabs" to display a warning / don't display a warning, depending on the user preferences.

dialog

This has been added to the weekly WebExtensions triage meeting of August 8, at 17:30 UTC.

Info: https://wiki.mozilla.org/Add-ons/Contribute/Triage
Join: https://v.mozilla.com/flex.html?roomdirect.html&key=63EeximucvH3QIFBKbpuBCVBAQU
Agenda: https://docs.google.com/document/d/1I-i1FQ38nwFHNl4hnzTctdsYHXOjJpeAgm1Bm3VoUUA/edit#

@eoger Would you be able to join us?

@Smile4ever
Copy link
Contributor

The meeting is over, comments can be seen in the "Agenda" document.

I've submitted an additional bug ticket with an alternative approach:
Extend tabs API to close tabs to the right / left of the current tab
https://bugzilla.mozilla.org/show_bug.cgi?id=1388462

@Smile4ever
Copy link
Contributor

I was at the triage meeting. The second approach was approved. Hopefully the prompt option will get implemented. For details, see https://bugzilla.mozilla.org/show_bug.cgi?id=1388462

@Inari-Whitebear
Copy link

Is this going anywhere? It's hilariously annoying when I close some 900 tabs due to a miss-click on a function I never use in the first place.

As a user, I don't even really care if it reads the FireFox setting for it, just have whether it asks or not as a setting in the plugin until FireFox allows it to read the normal setting?

@haarp
Copy link

haarp commented Aug 14, 2018

As #338 seems to be a mere duplicate, I'll repeat this here. It's possible to remove such dangerous menu entries with CSS.

/* Remove "Reload All Tabs", "Close Tabs Underneath" and "Close Other Tabs" */
.contextmenu li:nth-child(8), .contextmenu li:nth-child(9), .contextmenu li:nth-child(10) {
    display: none;
}

Not the same as a warning, but since I never needed these anyway, it works for me.

@ariasuni
Copy link
Contributor

I didn’t realize I could hide it since there were no id, thank you so so much. I lost all my tabs the other day and it wasn’t enjoyable. It definitely should be in the wiki.

@Keith94
Copy link
Author

Keith94 commented Aug 28, 2018

It definitely should be in the wiki.

done :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants