Changeset 112415 in webkit
- Timestamp:
- Mar 28, 2012 11:20:59 AM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r112376 r112415 1 2012-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 1 19 2012-03-28 Balazs Kelemen <kbalazs@webkit.org> 2 20 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r111493 r112415 386 386 // Send back an empty string to the plug-in. This will disable text input. 387 387 _data->_page->sendComplexTextInputToPlugin(_data->_pluginComplexTextInputIdentifier, String()); 388 _data->_pluginComplexTextInputIdentifier = 0; // Always reset the identifier when the plugin is disabled.389 388 } 390 389 … … 1276 1275 _data->_page->sendComplexTextInputToPlugin(_data->_pluginComplexTextInputIdentifier, string); 1277 1276 1278 if (!usingLegacyCocoaTextInput) {1277 if (!usingLegacyCocoaTextInput) 1279 1278 _data->_pluginComplexTextInputState = PluginComplexTextInputDisabled; 1280 _data->_pluginComplexTextInputIdentifier = 0; // Always reset the identifier when the plugin is disabled.1281 }1282 1279 } 1283 1280 -
trunk/Source/WebKit2/WebProcess/Plugins/PluginView.cpp
r112338 r112415 290 290 m_isBeingDestroyed = false; 291 291 #if PLATFORM(MAC) 292 setComplexTextInputState(PluginComplexTextInputDisabled);292 pluginFocusOrWindowFocusChanged(false); 293 293 #endif 294 294 }
Note: See TracChangeset
for help on using the changeset viewer.