Changeset 285726 in webkit
- Timestamp:
- Nov 12, 2021, 8:53:57 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/PlatformHave.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h (modified) (1 diff)
-
WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r285651 r285726 1 2021-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 1 8 2021-11-11 Michael Saboff <msaboff@apple.com> 2 9 -
trunk/Source/WTF/wtf/PlatformHave.h
r285646 r285726 959 959 #define HAVE_CFNETWORK_NSURLSESSION_ATTRIBUTED_BUNDLE_IDENTIFIER 1 960 960 #define HAVE_CFNETWORK_NSURLSESSION_HSTS_WITH_UNTRUSTED_ROOT 1 961 #define HAVE_CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN 1962 961 #define HAVE_AUDIO_OBJECT_PROPERTY_ELEMENT_MAIN 1 963 962 #define HAVE_IMAGE_RESTRICTED_DECODING 1 -
trunk/Source/WebKit/ChangeLog
r285724 r285726 1 2021-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 1 15 2021-11-12 Adrian Perez de Castro <aperez@igalia.com> 2 16 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h
r285565 r285726 82 82 SessionWrapper& initializeEphemeralStatelessSessionIfNeeded(NavigatingToAppBoundDomain, NetworkSessionCocoa&); 83 83 84 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)85 84 SessionWrapper& isolatedSession(WebCore::StoredCredentialsPolicy, const WebCore::RegistrableDomain&, NavigatingToAppBoundDomain, NetworkSessionCocoa&); 86 85 HashMap<WebCore::RegistrableDomain, std::unique_ptr<IsolatedSession>> isolatedSessions; 87 #endif88 86 89 87 std::unique_ptr<IsolatedSession> appBoundSession; -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r285565 r285726 1420 1420 if (isParentProcessAFullWebBrowser(networkProcess())) 1421 1421 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) 1424 1424 if (auto* storageSession = networkStorageSession()) { 1425 1425 auto firstParty = WebCore::RegistrableDomain(request.firstPartyForCookies()); … … 1494 1494 #endif 1495 1495 1496 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)1497 1496 SessionWrapper& NetworkSessionCocoa::isolatedSession(WebPageProxyIdentifier webPageProxyID, WebCore::StoredCredentialsPolicy storedCredentialsPolicy, const WebCore::RegistrableDomain& firstPartyDomain, NavigatingToAppBoundDomain isNavigatingToAppBoundDomain) 1498 1497 { 1499 1498 return sessionSetForPage(webPageProxyID).isolatedSession(storedCredentialsPolicy, firstPartyDomain, isNavigatingToAppBoundDomain, *this); 1500 1499 } 1501 #endif 1502 1503 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN) 1500 1504 1501 SessionWrapper& SessionSet::isolatedSession(WebCore::StoredCredentialsPolicy storedCredentialsPolicy, const WebCore::RegistrableDomain& firstPartyDomain, NavigatingToAppBoundDomain isNavigatingToAppBoundDomain, NetworkSessionCocoa& session) 1505 1502 { … … 1544 1541 return sessionWrapper; 1545 1542 } 1546 #endif1547 1548 1543 1549 1544 bool NetworkSessionCocoa::hasIsolatedSession(const WebCore::RegistrableDomain& domain) const 1550 1545 { 1551 #if HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)1552 UNUSED_PARAM(domain);1553 return true;1554 #else1555 1546 if (m_defaultSessionSet->isolatedSessions.contains(domain)) 1556 1547 return true; … … 1561 1552 1562 1553 return false; 1563 #endif1564 1554 } 1565 1555 1566 1556 void NetworkSessionCocoa::clearIsolatedSessions() 1567 1557 { 1568 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)1569 1558 m_defaultSessionSet->isolatedSessions.clear(); 1570 1559 for (auto& sessionSet : m_perPageSessionSets.values()) 1571 1560 sessionSet->isolatedSessions.clear(); 1572 #endif1573 1561 } 1574 1562 … … 1582 1570 [sessionSet.ephemeralStatelessSession.delegate sessionInvalidated]; 1583 1571 1584 #if !HAVE(CFNETWORK_SESSION_PARTITIONING_BASED_ON_FIRST_PARTY_DOMAIN)1585 1572 for (auto& session : sessionSet.isolatedSessions.values()) { 1586 1573 [session->sessionWithCredentialStorage.session invalidateAndCancel]; … … 1590 1577 } 1591 1578 sessionSet.isolatedSessions.clear(); 1592 #endif1593 1579 1594 1580 if (sessionSet.appBoundSession) {
Note:
See TracChangeset
for help on using the changeset viewer.