Changeset 235321 in webkit


Ignore:
Timestamp:
Aug 24, 2018 10:46:01 AM (6 years ago)
Author:
sihui_liu@apple.com
Message:

Don't launch network process in WebCookieManagerProxy::setHTTPCookieAcceptPolicy
https://bugs.webkit.org/show_bug.cgi?id=188906
<rdar://problem/43539661>

Reviewed by Geoffrey Garen.

In WebCookieManagerProxy::setHTTPCookieAcceptPolicy, we persist the cookieAcceptPolicy of
sharedCookieStorage. When we launch the network process later, we pass the
identifier of sharedCookieStorage to network process, so network process has the correct
cookieAcceptPolicy. Therefore, we don't have to launch the network process and send the
setting message if the network process is not launched.

  • UIProcess/WebCookieManagerProxy.cpp:

(WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r235282 r235321  
     12018-08-24  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Don't launch network process in WebCookieManagerProxy::setHTTPCookieAcceptPolicy
     4        https://bugs.webkit.org/show_bug.cgi?id=188906
     5        <rdar://problem/43539661>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        In WebCookieManagerProxy::setHTTPCookieAcceptPolicy, we persist the cookieAcceptPolicy of
     10        sharedCookieStorage. When we launch the network process later, we pass the
     11        identifier of sharedCookieStorage to network process, so network process has the correct
     12        cookieAcceptPolicy. Therefore, we don't have to launch the network process and send the
     13        setting message if the network process is not launched.
     14
     15        * UIProcess/WebCookieManagerProxy.cpp:
     16        (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
     17
    1182018-08-23  Carlos Garcia Campos  <cgarcia@igalia.com>
    219
  • trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.cpp

    r235265 r235321  
    252252#endif
    253253
     254    if (!processPool()->networkProcess())
     255        return;
     256
    254257    auto callbackID = m_callbacks.put(WTFMove(callbackFunction), processPool()->ensureNetworkProcess().throttler().backgroundActivityToken());
    255258    processPool()->sendToNetworkingProcess(Messages::WebCookieManager::SetHTTPCookieAcceptPolicy(policy, OptionalCallbackID(callbackID)));
Note: See TracChangeset for help on using the changeset viewer.