-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] TST switches tabs sometimes when I click on a webpage #3374
Comments
I've never seen this kind problem. Do you use other addon which provides a mouse gesture feature? |
No I don't have any other addons which handle tabs or anything else regarding this. It happens3 to 4 times a day. I will try to reproduce it. |
Is this mean you clicked the contents area (below the navigation toolbar, not the sidebar area) ? |
Yes, exactly. It's very strange. |
Only thing I thought might be worth checking are keyboard shortcuts. Do you have TST keyboard shortcuts set for "Focus to Next\Previous Tab" set? If so, could you have an addon, script, or mouse button action that might be triggering that keyboard shortcut? There are also keyboard shortcuts for Firefox itself. |
I use CTRL+C a lot, I will try to see if it's my problem also |
To provide more information on this issue. Steps to reproduce are:
When you do so, the First Tab in Window A will be selected and navigated to. To do this repeatedly, create a new child tab in the First Tab tree in Window A, and click back onto the tab area in Window B. It should happen every time. Edit: Another note is that it doesn't require a mouse event to trigger the bug, it also occurs when using alt tab to which windows. I also tested this in a new Firefox profile, with only TST installed. My System:
Video: video.webm |
I had a similar situation - sometimes a new browser window would open when clicking on a tab. It turned out that this was because micro-dragging sometimes happened during the click. I turned off opening a window when dragging and dropping on the browser window and the problem went away |
I still couldn't reproduce this problem with:
However @ChaseCares's report is suggestive that the problem happens around drag session. Firefox for Linux may have some bugs around drag session operations: sometimes the drag session is not finished correctly with the drag-end. On such situations Firefox forcefully finishes the previous drag session on some next operations: clicking of mouse buttons, and hitting of keys. It can produce calling of callback functions for drag related events on unexpected timings and it may cause problems like reported here. To reporters: could you collect debug log when the unexpected focus change happens with following steps?:
|
Thank you very much for your reply Piroor. I think that your suggestion about the drag event is correct, I was initially confused because it appeared that I could recreate the bug without a drag the event, but in actuality it only requires a single event during the windows lifetime to reproduce this bug. At this point it does seem we are blocked on Bug 1548949? I still went ahead and reproduce the bug with the debugging enabled. I also recorded another video that I believe demonstrates that it is related to the drag event. Console log: console-export-2023-9-6_8-50-20.txt Video: video.30.webm |
Thanks! I've introduced some safe guard mechanisms including 64f9be8. Could you try the latest development build ? |
Awesome, I really appreciate your effort. I installed this artifact, it seems the issue is still present, but it appears to not occur on every window change. Before every new tab would cause a switch (after a drag and drop event), now the bug only occurs once per drag and drop event. So compared to the video in my previous comment, the bug will not occur after the click at 14 seconds, until another drag and drop event. I went ahead and collected a new log if that would help. log: console-export-2023-9-6_17-57-46.txt Additionally I was able to trigger the same issue by pressing meta key twice, so to trigger the bug it does not require switching between two Firefox windows. And one time it occurred by pressing control, like MasterKia mentioned, but I'm not able to reproduce that one specifically. Quite a strange issue, thank you. |
A "dragover" event looks to be fired, after the drag session is finished and you click another window, on your case. This is a bug of Firefox or the desktop environment. It really breaks consistency of drag events... Ideas of workarounds:
|
I've introduced more safe guard with the commit a5827b5: it is based on a custom drag session ID. It is not perfect but it should effective for drag-and-drop done in single browser window. Could you try a new development build? |
Thank you! I installed this artifact. The issue still occurs and I don't believe it changed. Log: console-export-2023-9-7_13-56-4.txt I'm not sure if it's related/useful, but I also recorded a single drag event and then used the meta key to trigger the issue. If this is the same issue the steps to reproduce it are fewer and simpler to achieve. Video: video.webmLog: |
Thanks! Hmm... I misunderstood what happened on your environment. Could you try collecting log with a new development build including the commit 8da0e60 ? |
Oh sorry about that. Here is the log from artifact. Log: console-export-2023-9-7_15-54-9.txt Let me know if there is any additional information or steps than I could do that would be of assistance. Thank you for your time. |
Thanks a lot! The log line |
By the way, this "invalid dragover" problem looks should be tracked at https://bugzilla.mozilla.org/ as a bug of Firefox itself. I can't report it because I can't reproduce it on my environment, so I recommend you to report it. I think such an invalid dragover event may be produced with these triggers:
If it is hard for you to create a small testcase, I recommend you to add installing a development build of TST (*you should download the XPI because it will be expired soon) and activating debug logging, as required steps to reproduce of the bug. Log line like |
The safeguard works for me! I cannot reproduce it anymore, thank you very much for putting the time into fixing this, I greatly appreciate it. I we'll work on getting this submitted to mozilla. Thank you! |
This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded. |
On windows, I still have the problem with 3.9.17. |
This issue has been closed due to no response within 14 days after labeled as "maybe fixed", 7 days after last reopened, and 7 days after last commented. |
I still have the problem on Windows with FF 118 |
@Tragen Could you collect logs and screencast when the problem appears, like ChaseCares did? |
The problem is I cannot reproduce it and currently it doesn't happen very often anymore. |
I will try but it happened not very often anymore and before your fixes it was already only once or twice a day |
This issue has been closed due to no response within 14 days after labeled as "maybe fixed", 7 days after last reopened, and 7 days after last commented. |
I'm using FF 116 on Windows and I have a bug that when I click somewhere on a website, the tab switches.
I cannot reproduce it yet, but it happens every some minutes.
TST switches one tab down or up. I have to take care of it the next time it happens.
Anybody else having this problem also?
The text was updated successfully, but these errors were encountered: