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

Changeset 276509 in webkit


Ignore:
Timestamp:
Apr 23, 2021, 11:57:30 AM (5 years ago)
Author:
Kate Cheney
Message:

Set proper network logging level for full web browsers
https://bugs.webkit.org/show_bug.cgi?id=224982
<rdar://problem/76903650>

Reviewed by Brent Fulgham.

Full web browsers have different low-level network logging requirements
for ephemeral sessions.

No new tests. There's no automated way to test if network level logs
show up. I tested that logging is correct for web browser and non web
browser apps manually.

  • NetworkProcess/cocoa/NetworkSessionCocoa.mm:

(WebKit::configurationForSessionID):
(WebKit::NetworkSessionCocoa::NetworkSessionCocoa):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r276506 r276509  
     12021-04-23  Kate Cheney  <katherine_cheney@apple.com>
     2
     3        Set proper network logging level for full web browsers
     4        https://bugs.webkit.org/show_bug.cgi?id=224982
     5        <rdar://problem/76903650>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        Full web browsers have different low-level network logging requirements
     10        for ephemeral sessions.
     11
     12        No new tests. There's no automated way to test if network level logs
     13        show up. I tested that logging is correct for web browser and non web
     14        browser apps manually.
     15
     16        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
     17        (WebKit::configurationForSessionID):
     18        (WebKit::NetworkSessionCocoa::NetworkSessionCocoa):
     19
    1202021-04-23  Chris Dumez  <cdumez@apple.com>
    221
  • trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

    r275765 r276509  
    10291029#endif
    10301030
    1031 static NSURLSessionConfiguration *configurationForSessionID(const PAL::SessionID& session)
     1031static NSURLSessionConfiguration *configurationForSessionID(const PAL::SessionID& session, bool isFullWebBrowser)
    10321032{
    10331033#if HAVE(LOGGING_PRIVACY_LEVEL)
     
    10391039        configuration = [NSURLSessionConfiguration ephemeralSessionConfiguration];
    10401040#if HAVE(LOGGING_PRIVACY_LEVEL) && defined(NW_CONTEXT_HAS_PRIVACY_LEVEL_SILENT)
    1041         loggingPrivacyLevel = nw_context_privacy_level_silent;
     1041        if (isFullWebBrowser)
     1042            loggingPrivacyLevel = nw_context_privacy_level_silent;
    10421043#endif
    10431044    } else
     
    11841185#endif
    11851186
    1186     NSURLSessionConfiguration *configuration = configurationForSessionID(m_sessionID);
     1187    NSURLSessionConfiguration *configuration = configurationForSessionID(m_sessionID, isParentProcessAFullWebBrowser(networkProcess));
    11871188
    11881189#if HAVE(HSTS_STORAGE)
Note: See TracChangeset for help on using the changeset viewer.