Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 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 eoger commented Jun 26, 2017

Web Extensions have no way of reading Firefox preferences.

@Smile4ever
Copy link
Contributor

@Smile4ever Smile4ever commented Jun 27, 2017

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

@Smile4ever
Copy link
Contributor

@Smile4ever Smile4ever commented Aug 8, 2017

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

@Smile4ever Smile4ever commented Aug 8, 2017

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

@Smile4ever Smile4ever commented Aug 22, 2017

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

@Inari-Whitebear Inari-Whitebear commented Jul 22, 2018

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 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

@ariasuni ariasuni commented Aug 27, 2018

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 Keith94 commented Aug 28, 2018

It definitely should be in the wiki.

done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants