Bug 226511

Summary: Add log when creating NSURLSession that will not accept cookies
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Alex Christensen 2021-06-01 13:24:43 PDT
Add log when creating NSURLSession that will not accept cookies
Comment 1 Alex Christensen 2021-06-01 13:25:04 PDT
Created attachment 430285 [details]
Patch
Comment 2 Alex Christensen 2021-06-01 13:25:07 PDT
<rdar://problem/77637158>
Comment 3 Chris Dumez 2021-06-01 13:26:41 PDT
Comment on attachment 430285 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430285&action=review

> Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1310
> +        RELEASE_LOG_INFO(NetworkSession, "Creating network session that will not accept cookies.");

Why RELEASE_LOG_INFO() and not a simple RELEASE_LOG()? Also, shouldn't this print the sessionID (or some kind of ID so we can identify the session)?
Comment 4 Alex Christensen 2021-06-01 13:32:25 PDT
Created attachment 430288 [details]
Patch
Comment 5 Chris Dumez 2021-06-01 14:36:27 PDT
Comment on attachment 430288 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430288&action=review

> Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1310
> +        RELEASE_LOG(NetworkSession, "Creating network session with ID %llu that will not accept cookies.", m_sessionID.toUInt64());

We should probably use PRIu64 even if this is a cocoa file.
Comment 6 Alex Christensen 2021-06-01 15:54:47 PDT
Created attachment 430301 [details]
Patch
Comment 7 youenn fablet 2021-06-02 07:12:35 PDT
Comment on attachment 430301 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430301&action=review

> Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm:1310
> +        RELEASE_LOG(NetworkSession, "Creating network session with ID %" PRIu64 " that will not accept cookies.", m_sessionID.toUInt64());

RELEASE_LOG_IF?
Comment 8 Alex Christensen 2021-06-21 11:33:47 PDT
Created attachment 431885 [details]
Patch
Comment 9 Alex Christensen 2021-06-21 11:44:24 PDT
http://trac.webkit.org/r279071