WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
181556
Add optional logging of ITP-related user interaction information
https://bugs.webkit.org/show_bug.cgi?id=181556
Summary
Add optional logging of ITP-related user interaction information
Keith Rollin
Reported
2018-01-11 13:26:50 PST
In order to support the tracking of the efficacy of Intelligent Tracking Protection, add some logging indicating when the user interacts with a page in a way that affects cookie partitioning. This logging is off by default, and is enabled with `defaults write -g WebKitLogCookieInformation -bool true`.
Attachments
Patch
(8.45 KB, patch)
2018-01-11 13:30 PST
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Patch
(8.21 KB, patch)
2018-01-11 16:20 PST
,
Keith Rollin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Keith Rollin
Comment 1
2018-01-11 13:30:52 PST
Created
attachment 331109
[details]
Patch
EWS Watchlist
Comment 2
2018-01-11 13:32:36 PST
Attachment 331109
[details]
did not pass style-queue: ERROR: Source/WebCore/loader/ResourceLoadObserver.cpp:309: Missing space before { [whitespace/braces] [5] ERROR: Source/WebCore/loader/ResourceLoadObserver.cpp:310: Missing space before { [whitespace/braces] [5] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 3
2018-01-11 14:51:34 PST
Comment on
attachment 331109
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=331109&action=review
> Source/WebCore/loader/ResourceLoadObserver.cpp:305 > + auto counter = ++m_loggingCounter;
I think this is guaranteed to always happen on the Main Thread, so m_loggingCounter might not need to be <atomic>. But this only happens in instrumented builds, so it's not worth worrying about.
Brent Fulgham
Comment 4
2018-01-11 14:51:47 PST
So r=me.
Chris Dumez
Comment 5
2018-01-11 15:00:49 PST
Comment on
attachment 331109
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=331109&action=review
>> Source/WebCore/loader/ResourceLoadObserver.cpp:305 >> + auto counter = ++m_loggingCounter; > > I think this is guaranteed to always happen on the Main Thread, so m_loggingCounter might not need to be <atomic>. But this only happens in instrumented builds, so it's not worth worrying about.
Yes, always called from the same thread, otherwise the call to m_notificationTimer.stop(); above would be very unsafe. Please drop the atomic.
Keith Rollin
Comment 6
2018-01-11 16:20:43 PST
Created
attachment 331138
[details]
Patch
EWS Watchlist
Comment 7
2018-01-11 16:22:21 PST
Attachment 331138
[details]
did not pass style-queue: ERROR: Source/WebCore/loader/ResourceLoadObserver.cpp:309: Missing space before { [whitespace/braces] [5] ERROR: Source/WebCore/loader/ResourceLoadObserver.cpp:310: Missing space before { [whitespace/braces] [5] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 8
2018-01-11 17:54:04 PST
Comment on
attachment 331138
[details]
Patch Clearing flags on attachment: 331138 Committed
r226835
: <
https://trac.webkit.org/changeset/226835
>
WebKit Commit Bot
Comment 9
2018-01-11 17:54:06 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2018-01-11 17:55:19 PST
<
rdar://problem/36455886
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug