Bug 1252971 - Keyboard events sent to non-focus firefox window
Summary: Keyboard events sent to non-focus firefox window
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 22
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-12 15:37 UTC by Adam Chasen
Modified: 2016-07-19 17:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 17:29:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
keyboard events to out of focus window (485.08 KB, video/mp4)
2015-08-12 15:37 UTC, Adam Chasen
no flags Details
strace of when clicking and typing into second window (4.27 MB, text/plain)
2015-09-14 14:36 UTC, Adam Chasen
no flags Details

Description Adam Chasen 2015-08-12 15:37:01 UTC
Created attachment 1062066 [details]
keyboard events to out of focus window

Description of problem:
Haven't figured out what triggers the behavior, but occasionally keyboard events for one of my Firefox windows get sent to a different firefox window. Typing puts text in the last selected area of the non-focus window even after selecting an element on the in-focus window. Same goes for firefox commands (i.e. new/close tab).

Please see attached video for a demonstration.

Version-Release number of selected component (if applicable):
firefox-39.0-8.fc22.x86_64
As I was filing this ticket I noticed 39.0.3-1.fc22 is available. Figured I would file anyways. Will update if I see the behavior again.

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:

Comment 1 Adam Chasen 2015-08-24 15:00:35 UTC
Steps to Reproduce:
1. Open three separate Firefox windows
2. Open Google Chrome
3. Focus on one firefox window
4. Click to google chrome
5. Click to *different* firefox window than step 3
6. Keyboard events sent to window which had focus in step 3

Comment 2 Adam Chasen 2015-08-24 15:05:43 UTC
replicated on firefox-40.0-4.fc22.x86_64

Comment 3 Adam Chasen 2015-08-24 17:50:06 UTC
after closing session and re-opening, this is no longer happening. I cannot reliably reproduce.

Comment 4 Adam Chasen 2015-08-25 13:20:33 UTC
reproduced with fresh profile. Three firefox windows, no external windows involved.

Comment 5 Adam Chasen 2015-08-25 20:57:25 UTC
reproduced in --safe-mode with two windows.

Need third window to workaround the issue. Once I create a third window and switch the cursor to it, keyboard events will go to the window in focus again.

Comment 6 Martin Stransky 2015-08-26 11:55:06 UTC
So do I need a Google chrome to reproduce it or can I reproduce it with a different application?

Comment 7 Adam Chasen 2015-08-26 17:39:17 UTC
No chrome necessary. I was able to reproduce just switching back and forth between two firefox windows. Still not sure how to trigger this though. I downloaded firefox beta tarball and am using 41.0b4 in hopes of not experiencing this issue. If not, I will do a fresh install of fedora 22 (I fedup from F21) and see if I can replicate.

I have only been using the beta for a few hours and have not experienced this issue yet.

Comment 8 Adam Chasen 2015-08-31 18:24:04 UTC
Experienced the same issue on a fresh install of Fedora 22 
firefox-40.0.3-1.fc22.x86_64

Still have not seen the behavior in FF beta or FF 42 (developer edition)

Comment 9 Adam Chasen 2015-09-08 17:19:17 UTC
This is much less common now, but I also see this behavior in 42.0a2 (2015-09-08)

Comment 10 Adam Chasen 2015-09-14 14:36:21 UTC
Created attachment 1073277 [details]
strace of when clicking and typing into second window

I am seeing this a bit more often now. Is there any advice for steps I can do to help debug? Attached is an strace of a few seconds of when I experienced this. I typed "window 1", clicked on the other window, typed "window 2" The "window 2" showed in the original (not clicked) window.

Comment 11 Fedora End Of Life 2016-07-19 17:29:22 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.