Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Force Mozilla to open external pages in the same tab Web Browsers
I love Mozilla's (and it's kin) ability for tabbed browsing. What I really miss is the ability to load externally requested pages in a new tab rather than opening a new window. Chimera offers this ability, and I love Chimera but because of some proxy irregularities, it's more cumbersome to use than Mozilla (which isn't much better for changing proxy configs).

However, browsing the Chimera prefs.js file I noticed a particular user_pref line:
  user_pref("browser.always_reuse_window", true);
I added that line to my Mozilla:user.js file (in the same directory as the prefs.js file, ~/Library -> Mozilla -> Profiles -> Username -> [random].slt), restarted Mozilla and woila! External requests now load in the active tab. Mozilla doesn't create a new tab but hey, at least it doesn't create a new window!

Now if I could only figure out what the setting for opening a new tab with an external request is instead, I'd be in hog heaven!
    •    
  • Currently 2.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[4,792 views]  

Force Mozilla to open external pages in the same tab | 5 comments | Create New Account
Click here to return to the 'Force Mozilla to open external pages in the same tab' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Thanks soob - just what I needed.
Authored by: frankt on Nov 19, '02 10:44:04AM

I use URL Manager Pro (for several years now) for all my bookmarks. Double clicking on a mark in the URLM window always opened a new window in Mozilla. Now, after adding your tip to my prefs file, the bookmark opens in the existing Mozilla window just like they used to in the old Netscape versions.

Great tip !!!



[ Reply to This | # ]
New nightlies have this preference
Authored by: theNonsuch on Nov 19, '02 11:36:53AM

The latest nightly (today's, actually) has a new preference for dealing with windows. There's "open in new tab", "reuse existing window", and "open new window".

Check it out: ftp://ftp.mozilla.org/pub/chimera/nightly/latest-trunk/



[ Reply to This | # ]
New nightlies have this preference
Authored by: soob on Nov 19, '02 12:12:15PM

woo hoo! excellent... thanks for the info, this was just what I was waiting for.

It'll be nicer than my tip, too, since we'd be able to open them in a new tab!



[ Reply to This | # ]
New nightlies have this preference
Authored by: TigerKR on Nov 20, '02 01:53:59AM

So if you open up your prefs.js file, what's the new line that sets new objects to open up in a new tab (as opposed to a new window or the same tab)?



[ Reply to This | # ]
New nightlies have this preference
Authored by: soob on Nov 21, '02 12:10:59PM
(sorry if my previous comment was misleading, I had thought the poster was talking about the latest Mozilla nightly builds) hmm, I can't seem to get Chimera to open external requests in a new window now. Using Build ID: 2002112004, I changed my tab preferences to "opens a new window" when responding to other application requests then quit. Then removed the two "browser.always_reuse_window" and "browser.reuse_window" lines from my prefs.js file and made sure they weren't in my user.js file also. Running Chimera again just loads external requests in the same window. I decided to do a little testing to see what setting affects what and how they work in Mozilla. I started with what I think is a clean prefs.js file for Chimera... no browser.always, browser.reuse, or browser.tabs lines. Changing preferences to different settings, here's what I see: # supposed to open in new window - just reuses window (same as 2)
user_pref("browser.reuse_window", 0);
# open in new tab
user_pref("browser.reuse_window", 1);
# reuse window/tab
user_pref("browser.reuse_window", 2);
For Mozilla, it looks like only the following pref has an effect:
user_pref("browser.always_reuse_window", true);
None of the "browser.reuse_window" settings made any change for Mozilla.

[ Reply to This | # ]