⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 285726 in webkit


Ignore:
Timestamp:
Nov 12, 2021, 8:53:57 AM (5 years ago)
Author:
Chris Dumez
Message:

Unreviewed, partial revert of r285565 to resolve a PLT5 regression.
<rdar://85269156>

Source/WebKit:

  • NetworkProcess/cocoa/NetworkSessionCocoa.h:
  • NetworkProcess/cocoa/NetworkSessionCocoa.mm:

(WebKit::NetworkSessionCocoa::sessionWrapperForTask):
(WebKit::NetworkSessionCocoa::isolatedSession):
(WebKit::SessionSet::isolatedSession):
(WebKit::NetworkSessionCocoa::hasIsolatedSession const):
(WebKit::NetworkSessionCocoa::clearIsolatedSessions):
(WebKit::NetworkSessionCocoa::invalidateAndCancelSessionSet):

Source/WTF:

  • wtf/PlatformHave.h:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r285651 r285726  
     12021-11-12  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed, partial revert of r285565 to resolve a PLT5 regression.
     4        <rdar://85269156>
     5
     6        * wtf/PlatformHave.h:
     7
    182021-11-11  Michael Saboff  <msaboff@apple.com>
    29
  • trunk/Source/WTF/wtf/PlatformHave.h

    r285646 r285726  
    959959#define HAVE_CFNETWORK_NSURLSESSION_ATTRIBUTED_BUNDLE_IDENTIFIER 1
    960960#define HAVE_CFNETWORK_NSURLSESSION_HSTS_WITH_UNTRUSTED_ROOT 1
    961 #define HAVE_CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN 1
    962961#define HAVE_AUDIO_OBJECT_PROPERTY_ELEMENT_MAIN 1
    963962#define HAVE_IMAGE_RESTRICTED_DECODING 1
  • trunk/Source/WebKit/ChangeLog

    r285724 r285726  
     12021-11-12  Chris Dumez  <cdumez@apple.com>
     2
     3        Unreviewed, partial revert of r285565 to resolve a PLT5 regression.
     4        <rdar://85269156>
     5
     6        * NetworkProcess/cocoa/NetworkSessionCocoa.h:
     7        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
     8        (WebKit::NetworkSessionCocoa::sessionWrapperForTask):
     9        (WebKit::NetworkSessionCocoa::isolatedSession):
     10        (WebKit::SessionSet::isolatedSession):
     11        (WebKit::NetworkSessionCocoa::hasIsolatedSession const):
     12        (WebKit::NetworkSessionCocoa::clearIsolatedSessions):
     13        (WebKit::NetworkSessionCocoa::invalidateAndCancelSessionSet):
     14
    1152021-11-12  Adrian Perez de Castro  <aperez@igalia.com>
    216
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h

    r285565 r285726  
    8282    SessionWrapper& initializeEphemeralStatelessSessionIfNeeded(NavigatingToAppBoundDomain, NetworkSessionCocoa&);
    8383
    84 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
    8584    SessionWrapper& isolatedSession(WebCore::StoredCredentialsPolicy, const WebCore::RegistrableDomain&, NavigatingToAppBoundDomain, NetworkSessionCocoa&);
    8685    HashMap<WebCore::RegistrableDomain, std::unique_ptr<IsolatedSession>> isolatedSessions;
    87 #endif
    8886
    8987    std::unique_ptr<IsolatedSession> appBoundSession;
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r285565 r285726  
    14201420    if (isParentProcessAFullWebBrowser(networkProcess()))
    14211421        shouldBeConsideredAppBound = NavigatingToAppBoundDomain::No;
    1422     // This ITP partitioning is unnecessary on newer platforms since CFNetwork already has full partioning based on first-party domains.
    1423 #if ENABLE(INTELLIGENT_TRACKING_PREVENTION) && !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
     1422
     1423#if ENABLE(INTELLIGENT_TRACKING_PREVENTION)
    14241424    if (auto* storageSession = networkStorageSession()) {
    14251425        auto firstParty = WebCore::RegistrableDomain(request.firstPartyForCookies());
     
    14941494#endif
    14951495
    1496 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
    14971496SessionWrapper& NetworkSessionCocoa::isolatedSession(WebPageProxyIdentifier webPageProxyID, WebCore::StoredCredentialsPolicy storedCredentialsPolicy, const WebCore::RegistrableDomain& firstPartyDomain, NavigatingToAppBoundDomain isNavigatingToAppBoundDomain)
    14981497{
    14991498    return sessionSetForPage(webPageProxyID).isolatedSession(storedCredentialsPolicy, firstPartyDomain, isNavigatingToAppBoundDomain, *this);
    15001499}
    1501 #endif
    1502 
    1503 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
     1500
    15041501SessionWrapper& SessionSet::isolatedSession(WebCore::StoredCredentialsPolicy storedCredentialsPolicy, const WebCore::RegistrableDomain& firstPartyDomain, NavigatingToAppBoundDomain isNavigatingToAppBoundDomain, NetworkSessionCocoa& session)
    15051502{
     
    15441541    return sessionWrapper;
    15451542}
    1546 #endif
    1547 
    15481543
    15491544bool NetworkSessionCocoa::hasIsolatedSession(const WebCore::RegistrableDomain& domain) const
    15501545{
    1551 #if HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
    1552     UNUSED_PARAM(domain);
    1553     return true;
    1554 #else
    15551546    if (m_defaultSessionSet->isolatedSessions.contains(domain))
    15561547        return true;
     
    15611552   
    15621553    return false;
    1563 #endif
    15641554}
    15651555
    15661556void NetworkSessionCocoa::clearIsolatedSessions()
    15671557{
    1568 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
    15691558    m_defaultSessionSet->isolatedSessions.clear();
    15701559    for (auto& sessionSet : m_perPageSessionSets.values())
    15711560        sessionSet->isolatedSessions.clear();
    1572 #endif
    15731561}
    15741562
     
    15821570    [sessionSet.ephemeralStatelessSession.delegate sessionInvalidated];
    15831571
    1584 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)
    15851572    for (auto& session : sessionSet.isolatedSessions.values()) {
    15861573        [session->sessionWithCredentialStorage.session invalidateAndCancel];
     
    15901577    }
    15911578    sessionSet.isolatedSessions.clear();
    1592 #endif
    15931579
    15941580    if (sessionSet.appBoundSession) {
Note: See TracChangeset for help on using the changeset viewer.