a site "controls" an opened tab (for external links)

Bug reports and enhancement requests
Post Reply
u.o.
Posts: 4
Joined: Mon Mar 01, 2010 2:17 pm

a site "controls" an opened tab (for external links)

Post by u.o. »

What happens at the moment
  1. I visit page A
  2. on page A I click on an external link to page B with left-mouse-button
  3. a new tab opens and page B loads
  4. I switch to the tab with page A and click on another external link (this time to page C)
  5. now no new tab opens, but page C loads in the tab with (former) page B
So, page A, kind of, "controls" the second tab. Page A can load all links into this tab.

Even if I switch to another page A2 (from the same site), all external links are opened in the tab that got opened before by page A.

What I'd like to happen
These external links from page A should load in separate tabs. Page A shouldn't even "know", if there exists a tab it opened.

Examples for "page A"
As far as I understand, this happens with links from inside of Flash and/or with onclick (or something like that) via JavaScript (not using the a element). Of course this happens not with all such links (afaik).

Example for a javascript link: any link container from relink.us (Google search). Some of these containers open a frameset from the same domain ("relink.us/getfile.php"), containing the external link inside a frame. But some containers load the external site directly. The problem exists with both forms.

Example for a Flash link: this slideshare presentation has two links on slide 20. Click on the first, then click on the second. They open in the very same tab.
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.04 (lucid) Firefox/3.6.18
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: a site "controls" an opened tab (for external links)

Post by Giorgio Maone »

It happens with any link (plain old HTML ones included) which specify target attribute different than "_blank", "_top", "_parent" or "_self".
If you want to avoid it, just middle-click on the link (of course it won't work with most JavaScript and Flash links, but nothing can be done about it).
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
u.o.
Posts: 4
Joined: Mon Mar 01, 2010 2:17 pm

Re: a site "controls" an opened tab (for external links)

Post by u.o. »

Oh, I see. Thanks for your explanation.

Yes, I'm used to middle-clicking such links. But, as you mentioned too, this does not work for JavaScript or Flash links :(
Giorgio Maone wrote:but nothing can be done about it
Is this technical not possible? Or would it be possible as an Firefox core about:config feature or as an additional Firefox add-on?

Wouldn't it be "enough", if Firefox would ignore all target attribute values that are different to "_blank", "_top", "_parent" or "_self"? And possibly interpret them like _blank → so all those pages would open in a new tab but never open in an existing tab?
Or: let Firefox "forget" about tabs opened that way and mutate them to "normal", user-controlled opened tabs? Or interpret each link opening a new tab as if it was middle-clicked?
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.04 (lucid) Firefox/3.6.18
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: a site "controls" an opened tab (for external links)

Post by dhouwn »

Not entirely related, but for submit buttons there is an extension that enables middle-clicking them like normal links: http://code.kliu.org/misc/tabsubmit/
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a2) Gecko/20110729 Firefox/7.0a2
Post Reply