Bug 211266

Summary: REGRESSION (r258994): Prevents diagnostic logging of network resource loads
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebKit2Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, mjs, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 209522    
Bug Blocks:    
Attachments:
Description Flags
Patch mjs: review+

Description Brent Fulgham 2020-04-30 16:31:14 PDT
The change in r258994 was too heavy-handed. Although the SPI is called "_allowSensitiveLogging", it actually prevents any network logging.

We need to hold off on adopting this until it is revised to only address sensitive load logging.
Comment 1 Brent Fulgham 2020-04-30 16:33:59 PDT
<rdar://problem/62461099>
Comment 2 Brent Fulgham 2020-04-30 16:35:09 PDT
Created attachment 398121 [details]
Patch
Comment 3 Brent Fulgham 2020-05-01 09:42:16 PDT
After speaking with Maciej, we will do this another way.
Comment 4 Brent Fulgham 2020-05-01 16:14:17 PDT
We spoke again, and will take this change, but we need to hold off until a blocking bug is fixed.
Comment 5 Brent Fulgham 2020-05-01 16:14:37 PDT
Note: Holding for <rdar://problem/62727212> to be landed.
Comment 6 Maciej Stachowiak 2020-05-01 23:53:21 PDT
Comment on attachment 398121 [details]
Patch

Maybe this is a stretch, but is it possible to make an API test that verifies that logging happens when it's supposed to (and not when it isn't supposed to, i.e. private browsing)?

In any case, r=me
Comment 7 Brent Fulgham 2020-05-07 15:35:25 PDT
(In reply to Brent Fulgham from comment #5)
> Note: Holding for <rdar://problem/62727212> to be landed.

Actually, it's <rdar://problem/62901456> we are holding for.
Comment 8 Ahmad Saleem 2022-10-10 14:44:15 PDT
Checking by BugID, it seems this r+ patch didn't landed. Do we need this now? Thanks!
Comment 9 Brent Fulgham 2022-10-10 16:08:40 PDT
Oh! The relevant changes landed in https://trac.webkit.org/changeset/262332/webkit, after coordinating with the CFNetwork changes needed here.

We can close this.

The fix shipped back in 2020.