Bug 20387 - Focus problem when moving from input to editable iframe
Summary: Focus problem when moving from input to editable iframe
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://jparent.googlepages.com/iframe...
Keywords: GoogleBug, HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2008-08-14 16:27 PDT by Julie Parent
Modified: 2008-08-18 14:28 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julie Parent 2008-08-14 16:27:51 PDT
There appears to be some sort of focus bug when moving focus from an input into an editable iframe.  Specifically, when you click in an input and then into an editable iframe, built in editing commands like command + b, command + i, do nothing and we do not receive the key events if we listen for them.  Clicking anywhere else outside the iframe fixes this.

Extra notes:
This happens if focus is moved via click or via tabbing.
This is only seen in Safari on Mac, not Windows.
This happens for both contentEditable and designMode.
The URL provided show a demo page that exhibits this behavior.

We see this problem in Gmail when the user is moving from the Subject or To line into the body of the email.  We had a hacky workaround where we were listening to focus and re-calling focus on the iframe window and then the editable node which did work around this issue, but raised a bunch of other focus related problems and we needed to revert that.
Comment 1 David Kilzer (:ddkilzer) 2008-08-15 09:19:47 PDT
<rdar://problem/6152509>