Reviewed by Maciej.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2006 06:48:17 +0000 (06:48 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2006 06:48:17 +0000 (06:48 +0000)
commit1439a046679c198c2a8e5b0466d2ab2c3ede04bd
tree9f6fcc4cbee3adf933ebf38608734ecdc1193351
parent49c67f50dc7a419bd1940443f167777aa4b8056a
    Reviewed by Maciej.

        - Fix for <rdar://problem/4604703>
        REGRESSION (NativeTextField): Focus is not removed from password field after I ctrl-click into a different field

        Test:
        * manual-tests/password-ctrl-click-lose-focus.html: Added.

        * bridge/mac/FrameMac.mm: (WebCore::FrameMac::sendContextMenuEvent):
        If we're about to set a selection in the current view, make sure its the first responder.
        In this case, this will cause the password field to resign first responder at the right time.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15419 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/bridge/mac/FrameMac.mm
WebCore/manual-tests/password-ctrl-click-lose-focus.html [new file with mode: 0644]