X
Tap here to go to the mobile version of the site.

منتدى الدعم

Won't reopen the same tab by clicking a link with target=uniqueIdentifier

Posted

On my page, I have code that looks similar to this: <a href='https://www.mozilla.org/' target='mozillaPage'></a>. This should open a new tab once the link was clicked. Clicking the same link again should open the existing tab. Compare to other browsers, firefox won't reopen the existing tab when the link was clicked again.

On my page, I have code that looks similar to this: <a href='https://www.mozilla.org/' target='mozillaPage'></a>. This should open a new tab once the link was clicked. Clicking the same link again should open the existing tab. Compare to other browsers, firefox won't reopen the existing tab when the link was clicked again.

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.125 Safari/537.36

More Information

guigs 1072 solutions 11697 answers
*[https://support.mozilla.org/en-US/kb/where-go-developer-support Where to go for developer support]
jscher2000
  • Top 10 Contributor
8885 solutions 72684 answers

That should work. Are you using private browsing or any other features or add-ons that might isolate windows or tabs from one another?

That should work. Are you using private browsing or any other features or add-ons that might isolate windows or tabs from one another?
jscher2000
  • Top 10 Contributor
8885 solutions 72684 answers

Or is the problem that you want the named tab to be activated? In my test, Firefox loads the URL in that already open named tab but does not activate it. I'm not sure whether this is the default or whether I've changed a setting to cause that.

Or is the problem that you want the named tab to be activated? In my test, Firefox loads the URL in that already open named tab but does not activate it. I'm not sure whether this is the default or whether I've changed a setting to cause that.

صاحب السؤال

I'm using default firefox without any plugins or extentions. If you're going to test this on other browser the tab would be 'activated' (as you say). I don't think this should ever be the default behavior.

I'm using default firefox without any plugins or extentions. If you're going to test this on other browser the tab would be 'activated' (as you say). I don't think this should ever be the default behavior.
cor-el
  • Top 10 Contributor
  • Moderator
17771 solutions 160723 answers

Try the version from the official Mozilla server if you currently use a version from the repositories of your Linux distribution.

You can find the full version of the current current Firefox release (39.0) in all languages and all operating systems here:

Try the version from the official Mozilla server if you currently use a version from the repositories of your Linux distribution. You can find the full version of the current current Firefox release (39.0) in all languages and all operating systems here: *https://www.mozilla.org/en-US/firefox/all/

صاحب السؤال

Still no luck.

Still no luck.
cor-el
  • Top 10 Contributor
  • Moderator
17771 solutions 160723 answers

Try to open a new window in case there is a problem with the current window.


Create a new profile as a test to check if your current profile is causing the problem.

See "Creating a profile":

If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems.

Try to open a new window in case there is a problem with the current window. ---- Create a new profile as a test to check if your current profile is causing the problem. See "Creating a profile": *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues If the new profile works then you can transfer files from a previously used profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over problems. *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
jscher2000
  • Top 10 Contributor
8885 solutions 72684 answers

This was filed in the bug tracking system as a request for enhancement in *cough* 2002, even before the birth of Firefox. But it doesn't seem that anyone has really been motivated to work on it because as of that time, most browsers behaved the same as Firefox's predecessor, the Mozilla suite.

Maybe it is time to reconsider, at least if the user has turned on the option "When I open a link in a new tab, switch to it immediately"?

Bug 159946 – Targeted HREFs do not focus target window

This was filed in the bug tracking system as a request for enhancement in *cough* 2002, even before the birth of Firefox. But it doesn't seem that anyone has really been motivated to work on it because as of that time, most browsers behaved the same as Firefox's predecessor, the Mozilla suite. Maybe it is time to reconsider, at least if the user has turned on the option "When I open a link in a new tab, switch to it immediately"? [https://bugzilla.mozilla.org/show_bug.cgi?id=159946 Bug 159946 – Targeted HREFs do not focus target window] * [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette] * [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]