-
Notifications
You must be signed in to change notification settings - Fork 280
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
Warn on close multiple does not work when tabs are closed using the keyboard #2249
Comments
Looks like there's a bit of confusion here: treestyletab/webextensions/background/background.js Lines 443 to 467 in df9f430
I would suggest renaming
|
Thanks, this also should be fixed with recent commits. |
Thanks for the quick response. Unfortunately this one does not seem to be completely fixed yet: the confirmation prompt now appears correctly, but the tabs are still removed from TST even if cancelled. The parent tab is completely removed (maybe okay, though a bit counterintuitive) and the children remain in the Firefox tab bar. GIF recording: |
Hold on - it's working now, after I tried debugging it. Interesting. I'll see if I can find a consistent way to reproduce. |
Looks like it's fine when testing with real websites. The scenario in the above recording only appears with blank ( There is another quirk in that if a blank parent tab is closed, the reopened tab can be a previous one from the history. I'm not sure what can be done about this, unless Thanks for the fix! |
Thank you for researching. As you know Firefox doesn't allow to us to restore closed blank tabs. On the other hand TST expected that closed tabs are always restorable.
So I've introduced one more change: TST now doesn't show any confirmation if all closed tabs are unrestorable. This is an unavoidable edge-case restriction of WebExtensions-based addon. |
Thanks, that looks like a good fix for the case of all-blank tabs. I just tried the dev build and it works well :) |
Short description
When the keyboard (Ctrl+W) is used to close a parent tab of a collapsed group, the warning for multiple tabs being closed does not appear. All the tabs in the group are immediately closed.
Steps to reproduce
Observe that the entire tree is closed without warning.
GIF screen recording:
Expected result
There should be a warning before closing multiple tabs, as per the default setting.
Actual result
There is no warning. All tabs in the tree are closed.
Environment
The text was updated successfully, but these errors were encountered: