Before performing any logging, the NetworkProcess checks to see if it's performing an operation associated with a private (ephemeral) browsing session. If so, it skips all logging. However, networking layers below the NetworkProcess don't know about private browsing, so they would still perform their own logging. CFNetwork now has a flag that lets us control that, so set it to False if private browsing.
<rdar://problem/48210793>
Created attachment 365993 [details] Patch
Comment on attachment 365993 [details] Patch Clearing flags on attachment: 365993 Committed r243524: <https://trac.webkit.org/changeset/243524>
All reviewed patches have been landed. Closing bug.
Comment on attachment 365993 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=365993&action=review > Source/WTF/wtf/Platform.h:1529 > +#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 130000) It should be PLATFORM(IOS) in the second clause, not IOS_FAMILY.
Ugh. OK. So when should IOS vs. IOS_FAMILY be used? I was modeling my conditional on the one a few lines above: #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) #define HAVE_SANDBOX_ISSUE_MACH_EXTENSION_TO_PROCESS_BY_PID 1 #endif
Re-opened to address Alexey's comment.
Created attachment 366442 [details] Patch
Comment on attachment 366442 [details] Patch Clearing flags on attachment: 366442 Committed r243747: <https://trac.webkit.org/changeset/243747>
(In reply to Keith Rollin from comment #0) > Before performing any logging, the NetworkProcess checks to see if it's > performing an operation associated with a private (ephemeral) browsing > session. If so, it skips all logging. However, networking layers below the > NetworkProcess don't know about private browsing, so they would still > perform their own logging. CFNetwork now has a flag that lets us control > that, so set it to False if private browsing. Why just in private browsing? I think we should always turn this logging off.
That logging is priceless in tracking down networking issues. Why do you think it should be removed unconditionally?