Changeset 161416 in webkit


Ignore:
Timestamp:
Jan 7, 2014 2:06:16 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

Crash when trying to register a custom scheme before network process has been launched
https://bugs.webkit.org/show_bug.cgi?id=126385

Reviewed by Anders Carlsson.

WebContext::registerSchemeForCustomProtocol() uses
sendToNetworkingProcess() to send the message to the appropriate
networking process. In the case of using web process,
sendToNetworkingProcess() first checks if there's already a web
process, doing nothing otherwise, but when using the network
process it assumes there's already a network process. In both
cases it's safe to do nothing, because the schemes will be passed
as creation parameters to the process when launched.

  • UIProcess/WebContext.h:

(WebKit::WebContext::sendToNetworkingProcess):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r161413 r161416  
     12014-01-07  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Crash when trying to register a custom scheme before network process has been launched
     4        https://bugs.webkit.org/show_bug.cgi?id=126385
     5
     6        Reviewed by Anders Carlsson.
     7
     8        WebContext::registerSchemeForCustomProtocol() uses
     9        sendToNetworkingProcess() to send the message to the appropriate
     10        networking process. In the case of using web process,
     11        sendToNetworkingProcess() first checks if there's already a web
     12        process, doing nothing otherwise, but when using the network
     13        process it assumes there's already a network process. In both
     14        cases it's safe to do nothing, because the schemes will be passed
     15        as creation parameters to the process when launched.
     16
     17        * UIProcess/WebContext.h:
     18        (WebKit::WebContext::sendToNetworkingProcess):
     19
    1202014-01-07  Jinwoo Song  <jinwoo7.song@samsung.com>
    221
  • trunk/Source/WebKit2/UIProcess/WebContext.h

    r161309 r161416  
    513513#if ENABLE(NETWORK_PROCESS)
    514514        if (m_usesNetworkProcess) {
    515             if (m_networkProcess->canSendMessage())
     515            if (m_networkProcess && m_networkProcess->canSendMessage())
    516516                m_networkProcess->send(std::forward<T>(message), 0);
    517517            return;
     
    523523    case ProcessModelMultipleSecondaryProcesses:
    524524#if ENABLE(NETWORK_PROCESS)
    525         if (m_networkProcess->canSendMessage())
     525        if (m_networkProcess && m_networkProcess->canSendMessage())
    526526            m_networkProcess->send(std::forward<T>(message), 0);
    527527        return;
Note: See TracChangeset for help on using the changeset viewer.