Changeset 139076 in webkit


Ignore:
Timestamp:
Jan 8, 2013 10:34:38 AM (11 years ago)
Author:
weinig@apple.com
Message:

Remove dead Connection members in ChildProcess subclasses (and their users)
https://bugs.webkit.org/show_bug.cgi?id=106347
<rdar://problem/12973955>

Reviewed by Alexey Proskuryakov.

This also fixes a crash when entering fullscreen with a plug-in.

  • PluginProcess/PluginProcess.h:

Remove dead m_connection member.

  • PluginProcess/mac/PluginProcessMac.mm:

(WebKit::PluginProcess::setModalWindowIsShowing):
(WebKit::PluginProcess::setFullscreenWindowIsShowing):
Replace use of m_connection, which is dead, with parentProcessConnection().

  • SharedWorkerProcess/SharedWorkerProcess.h:

(SharedWorkerProcess):
Remove dead m_connection member.

  • SharedWorkerProcess/SharedWorkerProcess.cpp:

(WebKit::SharedWorkerProcess::createWebProcessConnection):
Replace use of m_connection, which is dead, with parentProcessConnection().

Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r139066 r139076  
     12013-01-08  Sam Weinig  <sam@webkit.org>
     2
     3        Remove dead Connection members in ChildProcess subclasses (and their users)
     4        https://bugs.webkit.org/show_bug.cgi?id=106347
     5        <rdar://problem/12973955>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        This also fixes a crash when entering fullscreen with a plug-in.
     10
     11        * PluginProcess/PluginProcess.h:
     12        Remove dead m_connection member.
     13
     14        * PluginProcess/mac/PluginProcessMac.mm:
     15        (WebKit::PluginProcess::setModalWindowIsShowing):
     16        (WebKit::PluginProcess::setFullscreenWindowIsShowing):
     17        Replace use of m_connection, which is dead, with parentProcessConnection().
     18
     19        * SharedWorkerProcess/SharedWorkerProcess.h:
     20        (SharedWorkerProcess):
     21        Remove dead m_connection member.
     22
     23        * SharedWorkerProcess/SharedWorkerProcess.cpp:
     24        (WebKit::SharedWorkerProcess::createWebProcessConnection):
     25        Replace use of m_connection, which is dead, with parentProcessConnection().
     26
    1272013-01-07  Alexey Proskuryakov  <ap@apple.com>
    228
  • trunk/Source/WebKit2/PluginProcess/PluginProcess.h

    r138913 r139076  
    9696    void minimumLifetimeTimerFired();
    9797
    98     // The connection to the UI process.
    99     RefPtr<CoreIPC::Connection> m_connection;
    100 
    10198    // Our web process connections.
    10299    Vector<RefPtr<WebProcessConnection> > m_webProcessConnections;
  • trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm

    r138981 r139076  
    292292void PluginProcess::setModalWindowIsShowing(bool modalWindowIsShowing)
    293293{
    294     m_connection->send(Messages::PluginProcessProxy::SetModalWindowIsShowing(modalWindowIsShowing), 0);
     294    parentProcessConnection()->send(Messages::PluginProcessProxy::SetModalWindowIsShowing(modalWindowIsShowing), 0);
    295295}
    296296
    297297void PluginProcess::setFullscreenWindowIsShowing(bool fullscreenWindowIsShowing)
    298298{
    299     m_connection->send(Messages::PluginProcessProxy::SetFullscreenWindowIsShowing(fullscreenWindowIsShowing), 0);
     299    parentProcessConnection()->send(Messages::PluginProcessProxy::SetFullscreenWindowIsShowing(fullscreenWindowIsShowing), 0);
    300300}
    301301
  • trunk/Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.cpp

    r138868 r139076  
    130130
    131131    CoreIPC::Attachment clientPort(listeningPort, MACH_MSG_TYPE_MAKE_SEND);
    132     m_connection->send(Messages::SharedWorkerProcessProxy::DidCreateWebProcessConnection(clientPort), 0);
     132    parentProcessConnection()->send(Messages::SharedWorkerProcessProxy::DidCreateWebProcessConnection(clientPort), 0);
    133133#elif USE(UNIX_DOMAIN_SOCKETS)
    134134    int sockets[2];
     
    162162
    163163    CoreIPC::Attachment clientSocket(sockets[0]);
    164     m_connection->send(Messages::SharedWorkerProcessProxy::DidCreateWebProcessConnection(clientSocket), 0);
     164    parentProcessConnection()->send(Messages::SharedWorkerProcessProxy::DidCreateWebProcessConnection(clientSocket), 0);
    165165#else
    166166    notImplemented();
  • trunk/Source/WebKit2/SharedWorkerProcess/SharedWorkerProcess.h

    r138875 r139076  
    6666    void minimumLifetimeTimerFired();
    6767
    68     // The connection to the UI process.
    69     RefPtr<CoreIPC::Connection> m_connection;
    70 
    7168    // Our web process connections.
    7269    Vector<RefPtr<WebProcessConnection> > m_webProcessConnections;
Note: See TracChangeset for help on using the changeset viewer.