Changeset 220581 in webkit


Ignore:
Timestamp:
Aug 10, 2017 11:02:33 PM (7 years ago)
Author:
Carlos Garcia Campos
Message:

[Soup] Do not spawn the network process to setup cookie persistent storage
https://bugs.webkit.org/show_bug.cgi?id=175424

Reviewed by Sergio Villar Senin.

The persistent storage configuration is saved and passed to network process as creation parameters, so we don't
need to spawn the network process to configure it, when it's created eventually it will use the configuration.

  • UIProcess/soup/WebCookieManagerProxySoup.cpp:

(WebKit::WebCookieManagerProxy::setCookiePersistentStorage): Use sendToNetworkingProcess() instead of
endToNetworkingProcessRelaunchingIfNecessary().

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r220580 r220581  
     12017-08-10  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [Soup] Do not spawn the network process to setup cookie persistent storage
     4        https://bugs.webkit.org/show_bug.cgi?id=175424
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        The persistent storage configuration is saved and passed to network process as creation parameters, so we don't
     9        need to spawn the network process to configure it, when it's created eventually it will use the configuration.
     10
     11        * UIProcess/soup/WebCookieManagerProxySoup.cpp:
     12        (WebKit::WebCookieManagerProxy::setCookiePersistentStorage): Use sendToNetworkingProcess() instead of
     13        endToNetworkingProcessRelaunchingIfNecessary().
     14
    1152017-08-10  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit/UIProcess/soup/WebCookieManagerProxySoup.cpp

    r177716 r220581  
    3434void WebCookieManagerProxy::setCookiePersistentStorage(const String& storagePath, uint32_t storageType)
    3535{
    36     processPool()->sendToNetworkingProcessRelaunchingIfNecessary(Messages::WebCookieManager::SetCookiePersistentStorage(storagePath, storageType));
    37 
    3836    m_cookiePersistentStoragePath = storagePath;
    3937    m_cookiePersistentStorageType = static_cast<SoupCookiePersistentStorageType>(storageType);
     38    processPool()->sendToNetworkingProcess(Messages::WebCookieManager::SetCookiePersistentStorage(storagePath, storageType));
    4039}
    4140
Note: See TracChangeset for help on using the changeset viewer.