Changeset 87688 in webkit


Ignore:
Timestamp:
May 30, 2011 9:14:29 AM (13 years ago)
Author:
andersca@apple.com
Message:

2011-05-30 Anders Carlsson <andersca@apple.com>

Reviewed by Simon Fraser.

Remove incorrect asserts from PluginProcessConnection
https://bugs.webkit.org/show_bug.cgi?id=61731

There might be pending incoming messages from a PluginProxy even though we've
destroyed the plug-in and removed it from the m_plugins map, so remove the incorrect assertions.

  • WebProcess/Plugins/PluginProcessConnection.cpp: (WebKit::PluginProcessConnection::didReceiveMessage): (WebKit::PluginProcessConnection::didReceiveSyncMessage):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r87685 r87688  
     12011-05-30  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Simon Fraser.
     4
     5        Remove incorrect asserts from PluginProcessConnection
     6        https://bugs.webkit.org/show_bug.cgi?id=61731
     7
     8        There might be pending incoming messages from a PluginProxy even though we've
     9        destroyed the plug-in and removed it from the m_plugins map, so remove the incorrect assertions.
     10
     11        * WebProcess/Plugins/PluginProcessConnection.cpp:
     12        (WebKit::PluginProcessConnection::didReceiveMessage):
     13        (WebKit::PluginProcessConnection::didReceiveSyncMessage):
     14
    1152011-05-30  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit2/WebProcess/Plugins/PluginProcessConnection.cpp

    r86812 r87688  
    101101void PluginProcessConnection::didReceiveMessage(CoreIPC::Connection* connection, CoreIPC::MessageID messageID, CoreIPC::ArgumentDecoder* arguments)
    102102{
    103     if (arguments->destinationID()) {
    104         if (PluginProxy* pluginProxy = m_plugins.get(arguments->destinationID()))
    105             pluginProxy->didReceivePluginProxyMessage(connection, messageID, arguments);
     103    ASSERT(arguments->destinationID());
     104
     105    PluginProxy* pluginProxy = m_plugins.get(arguments->destinationID());
     106    if (!pluginProxy)
    106107        return;
    107     }
    108108
    109     ASSERT_NOT_REACHED();
     109    pluginProxy->didReceivePluginProxyMessage(connection, messageID, arguments);
    110110}
    111111
     
    117117    }
    118118
    119     if (PluginProxy* pluginProxy = m_plugins.get(arguments->destinationID())) {
    120         pluginProxy->didReceiveSyncPluginProxyMessage(connection, messageID, arguments, reply);
     119    ASSERT(arguments->destinationID());
     120
     121    PluginProxy* pluginProxy = m_plugins.get(arguments->destinationID());
     122    if (!pluginProxy)
    121123        return;
    122     }
    123124
    124     ASSERT_NOT_REACHED();
     125    pluginProxy->didReceiveSyncPluginProxyMessage(connection, messageID, arguments, reply);
    125126}
    126127
Note: See TracChangeset for help on using the changeset viewer.