Changeset 112415 in webkit


Ignore:
Timestamp:
Mar 28, 2012 11:20:59 AM (12 years ago)
Author:
andersca@apple.com
Message:

REGRESSION (r109826): Can't type into Flash text fields
https://bugs.webkit.org/show_bug.cgi?id=82488
<rdar://problem/11022004>

Reviewed by Sam Weinig.

This was caused by the fix in r109826. Revert that change and fix the original bug by notifying the UI process
that the plug-in lost focus when it's destroyed. This will correctly reset the text input state (merely setting
the text input state to PluginComplexTextInputDisabled doesn't reset the state correctly).

  • UIProcess/API/mac/WKView.mm:

(-[WKView _setPluginComplexTextInputState:]):
(-[WKView _handlePluginComplexTextInputKeyDown:]):

  • WebProcess/Plugins/PluginView.cpp:

(WebKit::PluginView::~PluginView):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r112376 r112415  
     12012-03-28  Anders Carlsson  <andersca@apple.com>
     2
     3        REGRESSION (r109826): Can't type into Flash text fields
     4        https://bugs.webkit.org/show_bug.cgi?id=82488
     5        <rdar://problem/11022004>
     6
     7        Reviewed by Sam Weinig.
     8
     9        This was caused by the fix in r109826. Revert that change and fix the original bug by notifying the UI process
     10        that the plug-in lost focus when it's destroyed. This will correctly reset the text input state (merely setting
     11        the text input state to PluginComplexTextInputDisabled doesn't reset the state correctly).
     12
     13        * UIProcess/API/mac/WKView.mm:
     14        (-[WKView _setPluginComplexTextInputState:]):
     15        (-[WKView _handlePluginComplexTextInputKeyDown:]):
     16        * WebProcess/Plugins/PluginView.cpp:
     17        (WebKit::PluginView::~PluginView):
     18
    1192012-03-28  Balazs Kelemen  <kbalazs@webkit.org>
    220
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r111493 r112415  
    386386    // Send back an empty string to the plug-in. This will disable text input.
    387387    _data->_page->sendComplexTextInputToPlugin(_data->_pluginComplexTextInputIdentifier, String());
    388     _data->_pluginComplexTextInputIdentifier = 0;   // Always reset the identifier when the plugin is disabled.
    389388}
    390389
     
    12761275        _data->_page->sendComplexTextInputToPlugin(_data->_pluginComplexTextInputIdentifier, string);
    12771276
    1278         if (!usingLegacyCocoaTextInput) {
     1277        if (!usingLegacyCocoaTextInput)
    12791278            _data->_pluginComplexTextInputState = PluginComplexTextInputDisabled;
    1280             _data->_pluginComplexTextInputIdentifier = 0;   // Always reset the identifier when the plugin is disabled.
    1281         }
    12821279    }
    12831280
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp

    r112338 r112415  
    290290        m_isBeingDestroyed = false;
    291291#if PLATFORM(MAC)
    292         setComplexTextInputState(PluginComplexTextInputDisabled);
     292        pluginFocusOrWindowFocusChanged(false);
    293293#endif
    294294    }
Note: See TracChangeset for help on using the changeset viewer.