Changeset 141731 in webkit


Ignore:
Timestamp:
Feb 3, 2013 8:04:12 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Do not call m_widgetClient->show() for WebHelperPlugin.
https://bugs.webkit.org/show_bug.cgi?id=108740

Patch by David Dorwin <ddorwin@chromium.org> on 2013-02-03
Reviewed by Kent Tamura.

The calls to m_widgetClient->show() and setFocus() do not appear to be
necessary, and the former causes problems on at least on platform.

  • src/WebHelperPluginImpl.cpp:

(WebKit::WebHelperPluginImpl::initialize): Removed calls to m_widgetClient->show() and setFocus().
(WebKit::WebHelperPluginImpl::setFocus): Should never be called.

Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r141712 r141731  
     12013-02-03  David Dorwin  <ddorwin@chromium.org>
     2
     3        [chromium] Do not call m_widgetClient->show() for WebHelperPlugin.
     4        https://bugs.webkit.org/show_bug.cgi?id=108740
     5
     6        Reviewed by Kent Tamura.
     7
     8        The calls to m_widgetClient->show() and setFocus() do not appear to be
     9        necessary, and the former causes problems on at least on platform.
     10
     11        * src/WebHelperPluginImpl.cpp:
     12        (WebKit::WebHelperPluginImpl::initialize): Removed calls to m_widgetClient->show() and setFocus().
     13        (WebKit::WebHelperPluginImpl::setFocus): Should never be called.
     14
    1152013-02-02  Michael Nordman  <michaeln@google.com>
    216
  • trunk/Source/WebKit/chromium/src/WebHelperPluginImpl.cpp

    r136921 r141731  
    121121    m_webView = webView;
    122122
    123     if (!initializePage(webView, pluginType))
    124         return false;
    125     m_widgetClient->show(WebNavigationPolicy());
    126     setFocus(true);
    127 
    128     return true;
     123    return initializePage(webView, pluginType);
    129124}
    130125
     
    234229}
    235230
    236 void WebHelperPluginImpl::setFocus(bool enable)
    237 {
    238     if (!m_page)
    239         return;
    240     m_page->focusController()->setFocused(enable);
    241     if (enable)
    242         m_page->focusController()->setActive(true);
     231void WebHelperPluginImpl::setFocus(bool)
     232{
     233    ASSERT_NOT_REACHED();
    243234}
    244235
Note: See TracChangeset for help on using the changeset viewer.