Opening bookmark folder closes open tabs

Bug #64055 reported by Diego Ongaro
12
Affects Status Importance Assigned to Milestone
Mozilla Firefox
New
Undecided
Unassigned
firefox (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

On up-to-date edgy as of October 4, 2006.

Steps to reproduce:
1. Open one or multiple tabs.
2. Middle-click on a bookmark folder (either in the menu or on a toolbar). This causes the bookmarks in that folder to open in new tabs.
3. Notice that your old tabs have disappeared, and that they are also not in your recently closed tabs list.

I think the expected behavior would be for your old tabs to remain open. This would be consistent with middle-clicking on a single bookmark. Additionally, closing the tabs but not having them in the recently closed tabs list is inconsistent with the rest of the application.

I wouldn't say this issue is critical, but it is important since it could easily result in lost data and/or lost URLs and/or frustration.

Revision history for this message
In , Smokey Ardisson (alqahira) wrote :

Oops, wrong smorgan :(

Revision history for this message
In , Stuart-morgan+bugzilla (stuart-morgan+bugzilla) wrote :

The dataloss situation is unfortunate, but I don't think that's the way to fix it. As you say, it's been discussed before, and fundamentally loading a tab group is a context switch. If someone is loading a tab group, they shouldn't have to know their current tab count and their tab group tab count to predict what's going to happen. And I'm having a hard time imagining anyone really wanting to keep, say, the last of their 10 current tabs when opening some completely different 9-tab group.

Undo is the real solution here, but perhaps in the short term there should be a warning like the closing-multiple-tab warning when stomping multiple tabs by loading a new tab group.

Revision history for this message
In , Ballio (ballio) wrote :

Yes, I got this problem too. When I click on the Mac News Tabs, it just overrides all my other tabs and opens those the mac news tabs. It eliminated all my other tabs, but the history of the first 3 tabs are retained.

Revision history for this message
In , Cl-bugs-new2 (cl-bugs-new2) wrote :

(In reply to comment #3)
> Yes, I got this problem too. When I click on the Mac News Tabs, it just
> overrides all my other tabs and opens those the mac news tabs. It eliminated
> all my other tabs, but the history of the first 3 tabs are retained.

Yes, that's exactly what the bug is about, and that's the whole point of a tab group -- to open a specific set of tabs.

See comment 2 for how this will be handled.

cl

Revision history for this message
In , Smokey Ardisson (alqahira) wrote :

> Undo is the real solution here, but perhaps in the short term there should be a
> warning like the closing-multiple-tab warning when stomping multiple tabs by
> loading a new tab group.

Bug 316458.

I'm tempted to just WONTFIX this one right now; I can't decide if the warning would be worse than the deletion.

Would it make sense to have the warning only triggered when you're actually going to lose tabs? I.e., # of tabs in group < # of tabs open ?

Revision history for this message
In , Mikepinkerton (mikepinkerton) wrote :

what about just appending them to the end? It seems more likely this causes data loss and a lot of swearing than the usefulness of replacing the tabs. It's especially more likely since we added the cmd-keys, as the reporter points out.

Am I offbase here? I seem to be in the minority.

Revision history for this message
In , Smokey Ardisson (alqahira) wrote :

I hit this again last night (cmd-1 instead of cmd-`) trying to toggle windows and lost a bunch of tabs full of instructions that I couldn't easily restore.

If we change tab group behavior to append, we'd be going against Gecko-standards and we'd be inconsistent with our own behavior with single bookmarks, but I think a lot of people would be happy.

The inconsistencies nag me, though. Does cmd-click on a tab group in the bar then replace (where cmd-click on a bookmark opens in new), breaking the "cmd = open in new" paradigm?

It's thorny all the way around :/

Revision history for this message
In , Stuart-morgan+bugzilla (stuart-morgan+bugzilla) wrote :

(In reply to comment #7)
> If we change tab group behavior to append, we'd be going against
> Gecko-standards and we'd be inconsistent with our own behavior with single
> bookmarks, but I think a lot of people would be happy.

I'm not convinced of that; ignoring the data loss, having tab groups append makes exactly as much sense as making single bookmarks open in a new tab. I use tab groups constantly, and I can count on my fingers the number of times I've wanted to append.

I think an optional warning in the short-term--until we have undo--is the way to go, like all the other potential dataloss situations tabs seems to attract.

Revision history for this message
In , Smokey Ardisson (alqahira) wrote :

I didn't mean to imply that a change would make no one unhappy ;) only that lots of people had complained about tab groups clobbering current tabs.

Revision history for this message
In , Stuart-morgan+bugzilla (stuart-morgan+bugzilla) wrote :

The important question is, are a lot people complaining about that behavior in general, in which case it's worth considering changing the standard behavior, or just about it happening *accidentally*, in which case that's the problem to address?

Revision history for this message
Diego Ongaro (ongardie) wrote :

On up-to-date edgy as of October 4, 2006.

Steps to reproduce:
1. Open one or multiple tabs.
2. Middle-click on a bookmark folder (either in the menu or on a toolbar). This causes the bookmarks in that folder to open in new tabs.
3. Notice that your old tabs have disappeared, and that they are also not in your recently closed tabs list.

I think the expected behavior would be for your old tabs to remain open. This would be consistent with middle-clicking on a single bookmark. Additionally, closing the tabs but not having them in the recently closed tabs list is inconsistent with the rest of the application.

I wouldn't say this issue is critical, but it is important since it could easily result in lost data and/or lost URLs and/or frustration.

Revision history for this message
Wolf Halton (saphil) wrote :

I also enjoy this feature of firefox 2.0.0.1.. This also happens when you left-click on an "open all tabs" link in the bookmarks menu.

Ditto, annoying and definitely results in loss of information about the opened tabs that automagically close.

Revision history for this message
Michael Broadbent (mikebro) wrote :

I could not reproduce this bug by following the steps in the description.

My result was that if you had an equal amount of tabs open compared to the amount of tabs you were going to open with "Open new tabs" it would take the existing tabs and load the pages in there. I didn't lose anything, if I wanted to go to what used to be in the tabs, I could with the back button.

If there were more tabs open than the amount being opened with "Open new tabs" then tabs would be closed but they History > Recently Closed Tabs

If there were less tabs open than the amount being opened with "Open new tabs" then new tabs would be created, but you could go back to the pages you were at in the existing tabs.

As such, I marked this as Wishlist and linked this to an already existing discussion upstream.

Thank you for your bug report.

Changed in firefox:
importance: Undecided → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Simon Law (sfllaw) wrote :

Apparently, this was already discussed by Mozilla. Please see
  http://kb.mozillazine.org/Browser.tabs.loadFolderAndReplace
for their decision and an appropriate setting to twiddle.

Changed in firefox:
status: Confirmed → Rejected
Changed in firefox:
status: Unknown → Confirmed
Revision history for this message
In , Froodian (froodian) wrote :

*** Bug 372155 has been marked as a duplicate of this bug. ***

Changed in firefox:
importance: Unknown → High
Revision history for this message
In , Cl-bugs-new2 (cl-bugs-new2) wrote :

The only times I've hit this in the last year have been accidents (where I meant to Cmd-click on a tab group and failed to do so), for whatever that's worth.

I like the idea of throwing a warning sheet for this.

Revision history for this message
Smokey Ardisson (alqahira) wrote :

You guys need to find a different Mozilla bug to watch; 345023 is a Camino bug and is not at all relevant to Firefox.

Revision history for this message
In , Cl-bugs-new2 (cl-bugs-new2) wrote :

Created attachment 476567
implements the warning idea

I can take this for now. If we decide to WONTFIX it, that's OK too, I guess, but it's been four years and we still don't have tab-undo, so taking *something* is probably better than leaving this as-is.

Smokey had some concerns that users who use tab groups as a way of "wiping out" a window and starting over will be annoyed by this. I don't doubt they would ;) but that doesn't seem like a common use-case for tab groups, either. Anyone else have comments on how they use tab groups?

Revision history for this message
In , Smokey Ardisson (alqahira) wrote :

Comment on attachment 476567
implements the warning idea

>+"OpenTabGroupWithMultipleTabsOpenExpl" = "You have %u tabs open. Opening this tab group will destroy all but the left-most %u of them.";

s/open/in this window/ (or /open in this window/ perhaps)
s/destroy/close/
s/left-most %u of them/first %u tabs/

>+"DontOpenTabGroupButtonText" = "Don't Open";

Use a curly quote.

As noted on irc, this doesn't cover tab groups in menus of any sort, or Cmd-1 and friends.

These days my tab group usage is about 50% replace and 50% append (and my accidental triggering is almost exclusively mis-hitting a numeral with Cmd pressed). Tying the alert to "will this be destructive or not" certainly should make it less annoying for some of those replace cases.

However, for this fix to not annoy me when I do want to replace tabs, "Open" is also going to need a keyboard shortcut. Return and Esc both (rightly) trigger "Don’t Open" (and focus is also on the non-destructive button for FKA users), but something to keep me from having to mouse-and-click is necessary.

And please stop hand-editing patches ;) (For the benefit of others, in the strings hunk, @@ -42,16 +42,23 @@ should be @@ -42,16 +42,22 @@ for the patch to apply.)

Changed in firefox:
status: Confirmed → In Progress
Revision history for this message
Samuel Sidler (samuel-sidler) wrote :

I'm (hopefully) removing the remote watch on this bug. The Mozilla bug you've linked to this bug is a Camino but *not* a Firefox bug.

Changed in firefox:
importance: High → Undecided
status: In Progress → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.