Open Bug 758594 Opened 12 years ago Updated 2 months ago

Open website and quickly change tabs makes it open on the wrong tab.

Categories

(Firefox :: Tabbed Browser, defect)

12 Branch
x86
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: Douglas.vanny, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 20120423122624

Steps to reproduce:

After clicking on a link, or opening an site by typing an address on the address bar, or making a search on the search engine, or clicking on "View Image" when right-clicking on an image; and right after doing any of these I changed my current tab.


Actual results:

It opened in the tab I switched to.


Expected results:

It should have opened in the tab the link was or my current tab when I pressed enter.
Does this occur if you start Firefox in safe mode (addons disabled)?
Component: Untriaged → Tabbed Browser
QA Contact: untriaged → tabbed.browser
(In reply to Virgil Dicu [:virgil] [QA] from comment #1)
> Does this occur if you start Firefox in safe mode (addons disabled)?

No. I didn't manage to reproduce it in safe mode.

My Firefox  runs really fast on safe mode, compared to the normal mode. Maybe it just happens when Firefox is running slow.
If it doesn't occur in Safe Mode, it probably is an add-on issue. You could try disabling your add-ons one by one to find out which one is the culprit.
Component: Tabbed Browser → Extension Compatibility
QA Contact: tabbed.browser → extension.compatibility
Same problem here in ArchLinux as well as in my previous Ubuntu system. I've had this problem for a year or so, since not long after the switch to the rapid release cycle. I thought it was so obvious that it would get fixed at once, so I was lazy about reporting it.  [-:  Whoops...

I haven't tried Safe Mode yet. I'll take Douglas' word for now that it fixes the issue, but maybe I'll repeat his experiment when I have more time on my hands.

For now, I propose that users experiencing this bug exchange info about what extensions they using. Perhaps we'll find a comon thread. Mine are below:

TAB RELATED:
Background Tabs 1.4
* Prevent Duplicate Tabs 0.3.4
Session Manager 0.7.9
Tab Counter 1.9.3
* Tab URL Copier 1.1.9
* tabsearch 20080430
Vertical Tabs 0.9.3

OTHER:
Adblock Plus 2.1.2
checkCompatibility 1.3
Clean and Close 2.5.1
Download Statusbar 0.9.10
Flash Video Downloader 3.6.7
Go Parent Folder 2.7
HTTPS-Everywhere 2.2.1
LastPass 2.0.0
Lazarus Form Recovery 2.3
Less Spam, please 0.7.2
Movable Firefox Button 1.4
Multiple Tab Handler 0.7.2012020901
NoScript 2.5.2
NoSquint 2.1.5
* OpenBook 2.0.1.1
Save Session 1.3.1.6
Vimperator 3.5

* add-ons 'incompatible' with Firefox 14.01
It seems to happen just when Firefox is overloaded with add-ons. I also have a lot of add-ons, which makes Firefox slow sometimes.

I have never stopped to read the source code of Firefox, but my guess is that when you open a new link, it does something like getting the current tab and then replacing the opened URL, instead of using the tab where the user asked to open the page.

My add-ons are:

Adblock Plus 2.1.2
Add-on Builder Helper 1.4
Bazzacuda Image Saver Plus 0.44
ConvertMyCurrency 0.4.2
Destroy The Web 1.2
deviantAnywhere 1.1
Download status 1.7.3
Dummy Lipsum 3.0.0
FastestFox 4.8.2
Firebug 1.10.2
Flash-Aid 2.2.3
Flashblock 1.5.15.1
FxIF 0.4.5
Global Menu Bar Integration 3.2.5
HistoryBlock 1.4.0.5
HttpFox 0.8.11
keyconfig 20110522
Long URL Please 0.5.1
MiminizeToTray revived (MinTrayR) 1.0.1
Open Multiple Locations 0.5
Organize Status Bar 0.6.5
QuietUrl 1.6.0.9
Search by Image for Google 1.2.0
ShortcutKey2URL 2.2.1
skiplimitescontournerleslienspub 1.0
Tab Preview 0.3
Tab Utilities Lite 1.1.5
TinEye Reverse Image Search
Translate This! 1.9
Tree Style Tab 0.14.2012081101
Ubuntu Firefox Modifications 2.1.1
URL Fixer 4.0.1
View Source Chart 3.05
WebMail Notifier 2.9.11

The tab related ones are:

Tab Preview 0.3
Tab Utilities Lite 1.1.5
Tree Style Tab 0.14.2012081101
I hit this problem all the time in Firefox. The only addon I have in common with the person in comment #5 are:

> Adblock Plus 2.1.2

...and disabling it doesn't make the problem go away.

I have a theory that there's a certain time period between starting a search from the searchbar (or opening a link) and it beginning to load where this bug can be hit. In safe mode, Firefox runs faster and this period is shorter - and thus much harder to repro.
Apologies if this is out of line, but I really don't think this is an extension compat issue at its root. Per my previous comment, it cannot be isolated to any particular extension. I strongly think it has to do with how quickly Firefox is able to go from "start loading tab" to some mid-load event. I'd be more than happy to help debug this further or provide any additional information if someone can tell me what is helpful.
Component: Extension Compatibility → Tabbed Browser
This can NOT be unconfirmed if Bug 293182 is now marked as a duplicate.
This bug (as stated) relates to 'quick action' on the user's part. I do NOT believe that to be root cause.

IMHO The underlying issue is as discussed in Bug 293182.
I notice this more often with "view image", but I have just seen this behavior with clicking on a link in redmine with my right hand and then changing tabs with Ctrl-Tab with my left hand.  Using Firefox 32.0.3 on Windows 8.0.  I have not tried disabling ABP, but have seen it before in the past with ABP disabled.

I can confirm this bug in the recent versions of Firefox. I encountered it in 68 and 69, but in 70 it occurs more frequently. I use Firefox on Ubuntu-based Linux systems such as Kubuntu or Linux Mint, on multiple computers.

Especially if I open a webpage from the dashboard and then I switch to another tab it opens the page in that wrong tab. And moreover, the previously displayed page is not saved into the tab history. It means that I cannot go back using the given browser button or by the backspace key.

It looks like there is a race condition which causes that the event ("open a new URL") is delivered to a wrong tab if an user is faster than the event dispatching mechanism. I describe it only a general way because I have no knowledge about Firefoxe's internals.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.