Open Bug 616601 Opened 14 years ago Updated 8 years ago

Clicking the Home button creates duplicates of the already opened tabs

Categories

(SeaMonkey :: Tabbed Browser, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: arnie.goetchius, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.15) Gecko/20101027 NOT Firefox/3.5 SeaMonkey/2.0.10 NOT Firefox/3.6.3
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101129 Firefox/4.0b8pre SeaMonkey/2.1b2pre 

If, under Preferences,  I have the Home Page set to a group of two or more pages, clicking on the "Home" button will add another copy of the last page. For example, if the first URL on the Home page group is http://att.my.yahoo.com and the second URL is http://www.google.com, clicking the Home button will add another appearance of www.google.com. Cintinued clicking Home will just add more appearances of www.google.com

Reproducible: Always

Steps to Reproduce:
1.Click on Edit, Preferences, Browser
2.In the screen under "Clicking the Home button takes you..." enter two URL's
3.Open the browser and the two URL's will appear in tabs. Click the Home button.
Actual Results:  
After clicking the Home button, a third tab is established which is identical to the second tab. Clicking the Home button again will add a fourth tab which is identical to tab 2 and tab 3.

Expected Results:  
In SM 2.010 and before, clicking on the Home button would (1) delete all open tabs and (2) replace the open tabs with those URLs listed in the Home group

This same problem appears in Firefox as mentioned in Bug 369440, Bug 195212 and Bug 330239.

Philip Chee says the following about this problem:

I did that! Or rather it is a side effect of my making the navigation
buttons middle-clickable. For example middle-clicking the reload button
will duplicate the current tab in either a new tab or a new window
(complete with back/forward history).

Middle-clicking or control-clicking the Home button now respects the
tabbed browsing preferences and will open new tabs either in the current
window or in a new window (The old home button code looked at the
bookmark group opening preferences instead). The sticking point was that
if you just left-click the home button and override the current tabs.
The old code allowed you to press the back button and it would apply to
all the overwritten tabs, so there was no data-loss problems there. In
the current code pressing the back button only moved the current tab
back, all the other overwritten home tabs would have to be gone over and
back-button'ed manually. So all things considered I decided that if you
had a large number of home pages, appending tabs if you accidentally
pressed the home button would be slightly less annoying.
Component: General → Tabbed Browser
Not strictly a regression since this was a deliberate change to prevent data loss and to match Firefox behaviour. But we need to decide if we can make the user experience better here.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Depends on: 529240
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Version: unspecified → Trunk
I would be nice to have this work the same way as it did in SM 2.010 and before. Essentially clicking on the "Home" icon deletes all the open tabs and restores the tabs that are set under Preferences, Browser, Use Current Group. I know it doesn't work this way in Firefox but it does work that way in old SM and also in IE8. I would prefer that we match IE8 and old SM behaviour and not Firefox.
Still prevalent in SM 2.3!  I go from 4 homegroup tabs to 7, then 10, then 13, ad infinitum.  The selection to 'Replace tabs' versus 'Add tabs' is a straight-forward choice, and without variable interpretation.  How is it the code doesn't see it that way?
It appears that the code is stuck on 'Add Tabs' even if 'Replace Tabs' is selected in the Preference 'When opening a bookmark group'. It's too bad that this feature just does not work. I'll stay with 2.0.14
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120331 Firefox/14.0a1 SeaMonkey/2.11a1 ID:20120331003006

When clicking "Home" the 2nd or (*** forbid) later times, here is what I see:
- the current tab is replaced by the first homepage tab
- all other homepage tabs are opened (duplicated) after (what was previously) the last tab.

It's hard for me to believe that this behaviour is actually intentional (cf. comment #1), but if it is, please resolve this bug WONTFIX.
Still a problem in 2.10. "Replace Tabs" in Preferences still does not work. Is this not a simple problem to fix?
It is clear to me that you folks will never fix this. Since that is evidently the case, why not just remove the option for "When Opening a book mark Group" select either "Add Tabs" or "Replace Existing Tabs" ? As it stands now, no matter which option you select, it defaults to "Add Tabs". If it is always going to default to "Add Tabs", why do you leave that question in the screen? Unfortunately, the present UI makes you look really dumb, stupid and uncaring about people who think you are giving them a choice when in fact, there is no choice.
You need to log in before you can comment on or make changes to this bug.