Closed
Bug 824162
Opened 13 years ago
Closed 13 years ago
unable to focus into content in chat windows, iframe receives focus
Categories
(Firefox Graveyard :: SocialAPI, defect, P1)
Tracking
(firefox18 wontfix, firefox19+ fixed, firefox20+ fixed, firefox21 fixed)
RESOLVED
FIXED
Firefox 21
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
References
Details
(Whiteboard: [qa:see comment 16])
Attachments
(1 file, 1 obsolete file)
|
818 bytes,
patch
|
Gavin
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
- open 2 chat windows
- focus into one
- switch to a different application
- move the app so the non-focused chat window is visible
- click into the non-focused chat window
- start typing
If you do the last step fast enough, some of your message will appear in the chat window you clicked on, then focus gets moved back to the previously focused chat window, and your typing continues there.
Sometimes it will switch back and forth more than once.
I think this is a potential privacy issue: if you don't realize your focus changed, you may send a message to the wrong person.
Comment 1•13 years ago
|
||
FWIW, I can't repro this with the demo provider on Windows.
| Assignee | ||
Comment 2•13 years ago
|
||
This patch fixes some focus issues with the chat windows due to our advancing the focus during a focus event. Using our demo provider, focus handling is now working as expected with both keyboard and mouse, additionally supporting focus into a chat window when firefox is not the current application.
This does not fix a facebook specific issue, which I now believe to be a bug on their end.
Attachment #698092 -
Flags: feedback?(gavin.sharp)
Comment 3•13 years ago
|
||
I don't really understand the logic behind the ownerDocument check. From what I understand, we should just avoid calling chatbox.focus() entirely from under the selectedChat setter, when it is invoked from the focus handler. That would probably require introducing a selectChat(chat, setFocus) helper or somesuch.
| Assignee | ||
Comment 4•13 years ago
|
||
This is actually all that is necessary to fix the focus problem.
Attachment #698092 -
Attachment is obsolete: true
Attachment #698092 -
Flags: feedback?(gavin.sharp)
Attachment #698151 -
Flags: feedback?(gavin.sharp)
| Assignee | ||
Updated•13 years ago
|
Attachment #698151 -
Flags: feedback?(gavin.sharp) → review?(gavin.sharp)
Updated•13 years ago
|
Attachment #698151 -
Flags: review?(gavin.sharp) → review+
Updated•13 years ago
|
Summary: strange focus switching it chat windows → Strange focus switching with chat windows
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mixedpuppy
| Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
| Assignee | ||
Updated•13 years ago
|
tracking-firefox19:
--- → ?
tracking-firefox20:
--- → ?
| Assignee | ||
Updated•13 years ago
|
status-firefox18:
--- → affected
status-firefox19:
--- → affected
status-firefox20:
--- → affected
status-firefox21:
--- → fixed
Updated•13 years ago
|
| Assignee | ||
Comment 7•13 years ago
|
||
Comment on attachment 698151 [details] [diff] [review]
chatfocus.patch
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined:
Testing completed (on m-c, etc.):
Risk to taking this patch (and alternatives if risky):
String or UUID changes made by this patch:
Attachment #698151 -
Flags: approval-mozilla-beta?
Attachment #698151 -
Flags: approval-mozilla-aurora?
| Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #7)
> Comment on attachment 698151 [details] [diff] [review]
> chatfocus.patch
Hmm, something here would probably be useful :)
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined: some focus problems when focusing onto chat windows, a contributor to focus switching between chat windows unexpectedly.
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low risk, affects only social chat windows
String or UUID changes made by this patch: none
Comment 9•13 years ago
|
||
Comment on attachment 698151 [details] [diff] [review]
chatfocus.patch
Only affects chat windows, so we'll take this uplift.
Attachment #698151 -
Flags: approval-mozilla-beta?
Attachment #698151 -
Flags: approval-mozilla-beta+
Attachment #698151 -
Flags: approval-mozilla-aurora?
Attachment #698151 -
Flags: approval-mozilla-aurora+
Comment 10•13 years ago
|
||
Comment 11•12 years ago
|
||
I tried to verify the fix for this issue on Firefox 19.0 beta 5 on Mac OS X 10.7.5
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130206083616
The focus is still switching from a chat window to another by following the steps from comment 0.
The same behavior on Latest Aurora and Latest Nightly on Mac 10.7.5.
I met this switch of chat window focus also on Windows 7 and Ubuntu 12.04 for Firefox 19.0 beta 5, Latest Aurora and Latest Nightly.
Comment 12•12 years ago
|
||
Should we set this to REOPEN and move to ALL?
| Assignee | ||
Comment 13•12 years ago
|
||
(In reply to Virgil Dicu [:virgil] [QA] from comment #12)
> Should we set this to REOPEN and move to ALL?
As I said in comment 2, this patch does not address the facebook specific problem (where focus would switch back and forth between their chat windows). I believe that is a bug on their side.
We did however, have a bug where, if firefox were not the top application, and you clicked into a chat window, we would focus the iframe rather than what you clicked on (e.g. textbox). That is what this patch addresses.
| Assignee | ||
Updated•12 years ago
|
Summary: Strange focus switching with chat windows → unable to focus into content in chat windows, iframe receives focus
Comment 14•12 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #13)
> As I said in comment 2, this patch does not address the facebook specific
> problem (where focus would switch back and forth between their chat
> windows). I believe that is a bug on their side.
Do we have a bug on file to track the issue on Facebook's end? We won't be able to verify this fixed 100% until it's 100% fixed.
| Assignee | ||
Comment 15•12 years ago
|
||
(In reply to Anthony Hughes, Mozilla QA (:ashughes) from comment #14)
> (In reply to Shane Caraveo (:mixedpuppy) from comment #13)
> > As I said in comment 2, this patch does not address the facebook specific
> > problem (where focus would switch back and forth between their chat
> > windows). I believe that is a bug on their side.
>
> Do we have a bug on file to track the issue on Facebook's end? We won't be
> able to verify this fixed 100% until it's 100% fixed.
Bug 839166 has been created for the issue on the provider side.
Comment 16•12 years ago
|
||
Okay, thanks Shane. Since we didn't find any regressions in our testing we won't block release on testing this further. We'll continue to track to test again once bug 839166 is fixed.
Updated•6 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•