Changeset 230076 in webkit


Ignore:
Timestamp:
Mar 29, 2018 9:28:03 AM (6 years ago)
Author:
Brent Fulgham
Message:

REGRESSION(r229480): ERROR: Unhandled web process message 'WebCookieManager:SetHTTPCookieAcceptPolicy'
https://bugs.webkit.org/show_bug.cgi?id=184124
<rdar://problem/38998971>

Reviewed by Chris Dumez.

Cookie accept policy messages were still being sent to the WebContent process after
I removed cookie access in r229480. The WebContent process no longer recognizes these
messages, and generates logging to that effect.

This patch stops sending these unnecessary messages to the WebContent process. Only the
Network process needs to receive this information.

  • UIProcess/WebCookieManagerProxy.cpp:

(WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r230074 r230076  
     12018-03-29  Brent Fulgham  <bfulgham@apple.com>
     2
     3        REGRESSION(r229480): ERROR: Unhandled web process message 'WebCookieManager:SetHTTPCookieAcceptPolicy'
     4        https://bugs.webkit.org/show_bug.cgi?id=184124
     5        <rdar://problem/38998971>
     6
     7        Reviewed by Chris Dumez.
     8
     9        Cookie accept policy messages were still being sent to the WebContent process after
     10        I removed cookie access in r229480. The WebContent process no longer recognizes these
     11        messages, and generates logging to that effect.
     12       
     13        This patch stops sending these unnecessary messages to the WebContent process. Only the
     14        Network process needs to receive this information.
     15
     16        * UIProcess/WebCookieManagerProxy.cpp:
     17        (WebKit::WebCookieManagerProxy::setHTTPCookieAcceptPolicy):
     18
    1192018-03-29  Carlos Eduardo Ramalho  <cadubentzen@gmail.com>
    220
  • trunk/Source/WebKit/UIProcess/WebCookieManagerProxy.cpp

    r226349 r230076  
    253253#endif
    254254
    255     // The policy is not sent to newly created processes (only Soup does that via setInitialHTTPCookieAcceptPolicy()). This is not a serious problem, because:
    256     // - When testing, we only have one WebProcess and one NetworkProcess, and WebKitTestRunner never restarts them;
    257     // - When not testing, Cocoa has the policy persisted, and thus new processes use it (even for ephemeral sessions).
    258     processPool()->sendToAllProcesses(Messages::WebCookieManager::SetHTTPCookieAcceptPolicy(policy, OptionalCallbackID()));
    259 
    260255    auto callbackID = m_callbacks.put(WTFMove(callbackFunction));
    261256    processPool()->sendToNetworkingProcess(Messages::WebCookieManager::SetHTTPCookieAcceptPolicy(policy, OptionalCallbackID(callbackID)));
Note: See TracChangeset for help on using the changeset viewer.