Opening links in new tabs instead of a new window
Moderator: Camino Developers
- jcraig
- Posts: 1958
- Joined: December 6th, 2002, 6:38 pm
- Location: Plainfield, IL USA
- Contact:
- cflawson
- Posts: 4721
- Joined: December 26th, 2004, 2:54 pm
- Location: Flying over your house in a red, white, and blue jet
- Contact:
-
- Posts: 2777
- Joined: November 7th, 2002, 1:00 am
- Location: Japan
- Contact:
One possible problem I just noticed on my desktop Mac with the 1.8.1 nightly:
with the pref set as
(the default, when you the check the checkbox in Preferences > tabs).
'new window links' are opened in a new tab, as expected. But the tab opens in the foreground, not the background (my pref is set as such).
I hadn't noticed it yet previously, on my Powerbook I had the pref already set:
which opens the link in the _same_ tab.
me ? or a bug/weakness ?
with the pref set as
Code: Select all
user_pref("browser.link.open_newwindow", 3);
(the default, when you the check the checkbox in Preferences > tabs).
'new window links' are opened in a new tab, as expected. But the tab opens in the foreground, not the background (my pref is set as such).
I hadn't noticed it yet previously, on my Powerbook I had the pref already set:
Code: Select all
user_pref("browser.link.open_newwindow", 1);
which opens the link in the _same_ tab.
me ? or a bug/weakness ?
- Uncle Asad
- Camino Developer
- Posts: 3957
- Joined: July 24th, 2004, 1:38 pm
- Location: بين العالمين
- Contact:
phiw13 wrote:One possible problem I just noticed on my desktop Mac with the 1.8.1 nightly:
'new window links' are opened in a new tab, as expected. But the tab opens in the foreground, not the background (my pref is set as such).
That may be the default behavior of that setting...does Firefox respect the background pref? If so, file a bug
Mac OS X 10.3.9 • PowerBook G4 17" 1.33 GHz | Mac OS X 10.5.x • MacBook Pro 15" 2.2 GHz
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
-
- Posts: 2777
- Joined: November 7th, 2002, 1:00 am
- Location: Japan
- Contact:
Uncle Asad wrote:That may be the default behavior of that setting...does Firefox respect the background pref? If so, file a bug
Hmm right, probably the default behavior for that feature; Firefox (Minefield) does the same indeed. Feature Weakness then.
For ages, I've had that setting going to the same tab on my side.
Something else, and the discussion in the bug is not clear as to the intentions
Code: Select all
user_pref("browser.link.open_newwindow.restriction", 2);
should allow javascript windows with size assigned (window.open) to open as a new window. And that works correctly in Firefox. Camino doesn't respect it.
Personally it doesn't bother me too much; it can create problems though. Many CMS or message boards use that to popup little 'help' windows (including here on the forum, look at the 'options' on the left in a 'Post a Reply' page, or the 'add Smilies' link here).
- Uncle Asad
- Camino Developer
- Posts: 3957
- Joined: July 24th, 2004, 1:38 pm
- Location: بين العالمين
- Contact:
phiw13 wrote:Something else, and the discussion in the bug is not clear as to the intentionsCode: Select all
user_pref("browser.link.open_newwindow.restriction", 2);
should allow javascript windows with size assigned (window.open) to open as a new window. And that works correctly in Firefox. Camino doesn't respect it.
Personally it doesn't bother me too much; it can create problems though. Many CMS or message boards use that to popup little 'help' windows
Hrm, I thought I tested that and it worked, but it certainly doesn't work now. I consider that a bug, for precisely the reason you mention above.
Mac OS X 10.3.9 • PowerBook G4 17" 1.33 GHz | Mac OS X 10.5.x • MacBook Pro 15" 2.2 GHz
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
Snow7's Camino Forum FAQ Search the Forum Camino. Help Troubleshoot Camino
-
- Posts: 2777
- Joined: November 7th, 2002, 1:00 am
- Location: Japan
- Contact:
Uncle Asad wrote:Hrm, I thought I tested that and it worked, but it certainly doesn't work now. I consider that a bug, for precisely the reason you mention above.
--> bug 338777.
It is* annoying me right now, in a CMS where I have to edit templates. Thing opens a pop-up to generate code that it automatically appends in the textarea.
* not really, I'm use Firefox for that, I need the DomI.... But I can see it as a problem for others.
-
- Posts: 1313
- Joined: November 7th, 2003, 12:02 pm
- Contact:
-
- Posts: 4
- Joined: December 3rd, 2006, 7:37 am
jedik wrote:acollins wrote:This may be a very basic question, but is there a setting that will force all links to open in new tabs? Even ones that would normally just reuse the same window/tab?
COMMAND+CLICK or use your mouse's middle button (if you have one).
Cheers
The problem with that is that I don't know until I click on a link if it plans to open in the same window or a new one. All I want is for it to open in the same tab if it normally would, and to open in a new tab if it has a target=_blank directive, rather than a new window.
Using a multi button mouse - not a valid solution, as I typically use the pad on my laptop
using cmd-click, not a valid option as that opens in a new tab EVEN IF it would normally have reused the current tab.
Really, is it so hard to add this as a preference?
Timothy
- BDog
- Posts: 805
- Joined: March 6th, 2004, 9:01 am
- Location: Roseville, MN
- Contact:
Add this to your "userContent.css" file.timotab wrote:The problem with that is that I don't know until I click on a link if it plans to open in the same window or a new one.
Code: Select all
a[href][target]:not([target="_self"]) {cursor: ne-resize !important;}