Changeset 84270 in webkit


Ignore:
Timestamp:
Apr 19, 2011 11:17:30 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-19 Stuart Morgan <stuartmorgan@chromium.org>

Reviewed by Tony Chang.

[chromium] Clicking on plugin for first time blocks focus shift
https://bugs.webkit.org/show_bug.cgi?id=58419

Added new test for cross-iframe focus changes on plugin clicks.

  • plugins/mouse-click-iframe-to-plugin-expected.txt: Added.
  • plugins/mouse-click-iframe-to-plugin.html: Added.

2011-04-19 Stuart Morgan <stuartmorgan@chromium.org>

Reviewed by Tony Chang.

[chromium] Clicking on plugin for first time blocks focus shift
https://bugs.webkit.org/show_bug.cgi?id=58419

Switched to using FocusController when moving focus to a plugin
so that cross-frame focus changes are handled correctly.

  • src/WebPluginContainerImpl.cpp: (WebKit::WebPluginContainerImpl::handleMouseEvent):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r84264 r84270  
     12011-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
    1132011-04-19  Jungshik Shin  <jshin@chromium.org>
    214
  • trunk/Source/WebKit/chromium/ChangeLog

    r84260 r84270  
     12011-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
    1142011-04-19  Vsevolod Vlasov  <vsevik@chromium.org>
    215
  • trunk/Source/WebKit/chromium/src/WebPluginContainerImpl.cpp

    r81795 r84270  
    481481
    482482    if (event->type() == eventNames().mousedownEvent) {
    483         // Ensure that the frame containing the plugin has focus.
    484483        Frame* containingFrame = parentView->frame();
    485484        if (Page* currentPage = containingFrame->page())
    486             currentPage->focusController()->setFocusedFrame(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);
    489488    }
    490489
Note: See TracChangeset for help on using the changeset viewer.