Changeset 84270 in webkit
- Timestamp:
- Apr 19, 2011 11:17:30 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r84264 r84270 1 2011-04-19 Stuart Morgan <stuartmorgan@chromium.org> 2 3 Reviewed by Tony Chang. 4 5 [chromium] Clicking on plugin for first time blocks focus shift 6 https://bugs.webkit.org/show_bug.cgi?id=58419 7 8 Added new test for cross-iframe focus changes on plugin clicks. 9 10 * plugins/mouse-click-iframe-to-plugin-expected.txt: Added. 11 * plugins/mouse-click-iframe-to-plugin.html: Added. 12 1 13 2011-04-19 Jungshik Shin <jshin@chromium.org> 2 14 -
trunk/Source/WebKit/chromium/ChangeLog
r84260 r84270 1 2011-04-19 Stuart Morgan <stuartmorgan@chromium.org> 2 3 Reviewed by Tony Chang. 4 5 [chromium] Clicking on plugin for first time blocks focus shift 6 https://bugs.webkit.org/show_bug.cgi?id=58419 7 8 Switched to using FocusController when moving focus to a plugin 9 so that cross-frame focus changes are handled correctly. 10 11 * src/WebPluginContainerImpl.cpp: 12 (WebKit::WebPluginContainerImpl::handleMouseEvent): 13 1 14 2011-04-19 Vsevolod Vlasov <vsevik@chromium.org> 2 15 -
trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.cpp
r81795 r84270 481 481 482 482 if (event->type() == eventNames().mousedownEvent) { 483 // Ensure that the frame containing the plugin has focus.484 483 Frame* containingFrame = parentView->frame(); 485 484 if (Page* currentPage = containingFrame->page()) 486 currentPage->focusController()->setFocused Frame(containingFrame);487 // Give focus to our containing HTMLPluginElement.488 containingFrame->document()->setFocusedNode(m_element);485 currentPage->focusController()->setFocusedNode(m_element, containingFrame); 486 else 487 containingFrame->document()->setFocusedNode(m_element); 489 488 } 490 489
Note: See TracChangeset
for help on using the changeset viewer.