Bug 197332

Summary: Add logging of Ad Click Attribution errors and events to a dedicated channel
Product: WebKit Reporter: John Wilander <wilander>
Component: WebKit Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, benjamin, cdumez, cmarcelo, commit-queue, dbates, eric.carlson, esprehn+autocc, ews-watchlist, gyuyoung.kim, hi, japhet, joepeck, kangil.han, keith_miller, mark.lam, msaboff, rniwa, saam, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
WiP-feedback-welcome
none
Archive of layout-test-results from ews102 for mac-highsierra
none
Archive of layout-test-results from ews106 for mac-highsierra-wk2
none
Archive of layout-test-results from ews117 for mac-highsierra
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch for landing none

John Wilander
Reported 2019-04-26 16:42:24 PDT
We should add dedicated logging for Ad Click Attribution.
Attachments
WiP-feedback-welcome (32.79 KB, patch)
2019-04-26 16:50 PDT, John Wilander
no flags
Archive of layout-test-results from ews102 for mac-highsierra (3.19 MB, application/zip)
2019-04-26 17:59 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews106 for mac-highsierra-wk2 (2.74 MB, application/zip)
2019-04-26 18:23 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews117 for mac-highsierra (877.10 KB, application/zip)
2019-04-26 20:58 PDT, EWS Watchlist
no flags
Patch (21.82 KB, patch)
2019-04-29 16:19 PDT, John Wilander
no flags
Patch (34.87 KB, patch)
2019-04-30 10:33 PDT, John Wilander
no flags
Patch (34.90 KB, patch)
2019-04-30 12:20 PDT, John Wilander
no flags
Patch (35.15 KB, patch)
2019-04-30 12:31 PDT, John Wilander
no flags
Patch (35.53 KB, patch)
2019-04-30 12:54 PDT, John Wilander
no flags
Patch for landing (33.42 KB, patch)
2019-04-30 18:49 PDT, John Wilander
no flags
John Wilander
Comment 1 2019-04-26 16:42:39 PDT
John Wilander
Comment 2 2019-04-26 16:50:45 PDT
Created attachment 368365 [details] WiP-feedback-welcome
John Wilander
Comment 3 2019-04-26 16:52:44 PDT
Comment on attachment 368365 [details] WiP-feedback-welcome Not ready for formal review yet, but I'd like some feedback and help. I'm trying to pipe my log messages in WebKit::AdClickAttributionManager to show up in Web Inspector, similar to how the developer can enable WebRTC logging. Something is wrong. I get the syslog output but nothing in Web Inspector. :/
EWS Watchlist
Comment 4 2019-04-26 16:54:32 PDT
This patch modifies the inspector protocol generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-inspector-generator-tests --reset-results`) This patch modifies the inspector protocol. Please ensure that any frontend changes appropriately use feature checks for new protocol features.
EWS Watchlist
Comment 5 2019-04-26 17:59:44 PDT
Comment on attachment 368365 [details] WiP-feedback-welcome Attachment 368365 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/12010738 New failing tests: inspector/console/webcore-logging.html
EWS Watchlist
Comment 6 2019-04-26 17:59:46 PDT
Created attachment 368371 [details] Archive of layout-test-results from ews102 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 7 2019-04-26 18:23:37 PDT
Comment on attachment 368365 [details] WiP-feedback-welcome Attachment 368365 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/12010814 New failing tests: inspector/console/webcore-logging.html
EWS Watchlist
Comment 8 2019-04-26 18:23:39 PDT
Created attachment 368375 [details] Archive of layout-test-results from ews106 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 9 2019-04-26 20:58:19 PDT
Comment on attachment 368365 [details] WiP-feedback-welcome Attachment 368365 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/12012154 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 10 2019-04-26 20:58:21 PDT
Created attachment 368386 [details] Archive of layout-test-results from ews117 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
John Wilander
Comment 11 2019-04-29 16:19:09 PDT
Chris Dumez
Comment 12 2019-04-29 17:00:26 PDT
Comment on attachment 368509 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368509&action=review > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:54 > +#if !RELEASE_LOG_DISABLED We should not have to do this at call sites. I think the only reason you need to is because the person who added RELEASE_LOG_INFO_IF() forgot to add a dummy implementation for when #if RELEASE_LOG_DISABLED in Assertions.h. Please fix this so that call sites do not have to look so ugly. > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:76 > + auto conversionData = conversion.data; auto& to avoid copying? > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:77 > + auto conversionPriority = conversion.priority; ditto. > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:177 > +#if !RELEASE_LOG_DISABLED I would feel a lot safer if the lambda checked weakThis right away and returned early: if (!weakThis) return; Otherwise, somebody might add code at the end of your lambda and fail to check weakThis. > Source/WebKit/Shared/WebPreferences.yaml:1421 > + category: experimental Shouldn't this be internal?
Eric Carlson
Comment 13 2019-04-30 06:55:46 PDT
Comment on attachment 368509 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368509&action=review > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:243 > + RELEASE_LOG_INFO_IF(weakThis && debugModeEnabled(), AdClickAttribution, "Removing expired ad click from source: %{public}s to destination: %{public}s.", keyAndValue.value.source().registrableDomain.string().utf8().data(), keyAndValue.value.destination().registrableDomain.string().utf8().data()); Ditto.
youenn fablet
Comment 14 2019-04-30 08:14:01 PDT
Comment on attachment 368509 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368509&action=review > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:69 > + if (!conversion.isValid()) { Shouldn't this logging be done in AdClickAttribution::parseConversionRequest or at its call site so that it is done at the time of conversion and with potentially more information about the failure? > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:201 > + if (*earliestTimeToSend <= now || m_isRunningTest || debugModeEnabled()) { So debugMode will wait 60 seconds and test runner willl wait 0 seconds. Should we merge both and use 0 seconds for both cases? If this is targeted at web developer, 60 seconds might be long to wait. > Source/WebKit/NetworkProcess/AdClickAttributionManager.h:50 > + AdClickAttributionManager(PAL::SessionID sessionID) explicit. > Source/WebKit/NetworkProcess/NetworkProcess.cpp:309 > + WebCore::RuntimeEnabledFeatures::sharedFeatures().setAdClickAttributionDebugModeEnabled(parameters.enableAdClickAttributionDebugMode); If this is an experimental feature, user will have to relaunch the whole application so that the network process gets the new value. Is this good enough?
John Wilander
Comment 15 2019-04-30 08:42:04 PDT
(In reply to Chris Dumez from comment #12) > Comment on attachment 368509 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=368509&action=review > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:54 > > +#if !RELEASE_LOG_DISABLED > > We should not have to do this at call sites. I think the only reason you > need to is because the person who added RELEASE_LOG_INFO_IF() forgot to add > a dummy implementation for when #if RELEASE_LOG_DISABLED in Assertions.h. > Please fix this so that call sites do not have to look so ugly. Got it. Yes, it does look ugly. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:76 > > + auto conversionData = conversion.data; > > auto& to avoid copying? Will fix. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:77 > > + auto conversionPriority = conversion.priority; > > ditto. Will fix. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:177 > > +#if !RELEASE_LOG_DISABLED > > I would feel a lot safer if the lambda checked weakThis right away and > returned early: > if (!weakThis) > return; Agreed. > Otherwise, somebody might add code at the end of your lambda and fail to > check weakThis. > > > Source/WebKit/Shared/WebPreferences.yaml:1421 > > + category: experimental > > Shouldn't this be internal? Actually not. This is intended for developers too since they'll want debug info and a quicker turnaround than 24-48 hours to check whether they got it right or not. :) Thanks, Chris!
John Wilander
Comment 16 2019-04-30 08:42:39 PDT
(In reply to Eric Carlson from comment #13) > Comment on attachment 368509 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=368509&action=review > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:243 > > + RELEASE_LOG_INFO_IF(weakThis && debugModeEnabled(), AdClickAttribution, "Removing expired ad click from source: %{public}s to destination: %{public}s.", keyAndValue.value.source().registrableDomain.string().utf8().data(), keyAndValue.value.destination().registrableDomain.string().utf8().data()); > > Ditto. I assume you mean the early weakThis check. Will fix. Thanks, Eric!
John Wilander
Comment 17 2019-04-30 08:46:21 PDT
(In reply to youenn fablet from comment #14) > Comment on attachment 368509 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=368509&action=review > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:69 > > + if (!conversion.isValid()) { > > Shouldn't this logging be done in AdClickAttribution::parseConversionRequest > or at its call site so that it is done at the time of conversion and with > potentially more information about the failure? I considered that but it'll use a different log channel, declared in WebCore. Maybe that's not an issue. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:201 > > + if (*earliestTimeToSend <= now || m_isRunningTest || debugModeEnabled()) { > > So debugMode will wait 60 seconds and test runner willl wait 0 seconds. > Should we merge both and use 0 seconds for both cases? > If this is targeted at web developer, 60 seconds might be long to wait. 60 seconds might be long but there needs to be a significant delay in debug mode. Conversion events can have priorities and replace earlier conversions. To be able to test that on your site, you need to be able to covert multiple times before the request is sent out. In layout tests we want zero delay. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.h:50 > > + AdClickAttributionManager(PAL::SessionID sessionID) > > explicit. Got it. > > Source/WebKit/NetworkProcess/NetworkProcess.cpp:309 > > + WebCore::RuntimeEnabledFeatures::sharedFeatures().setAdClickAttributionDebugModeEnabled(parameters.enableAdClickAttributionDebugMode); > > If this is an experimental feature, user will have to relaunch the whole > application so that the network process gets the new value. > Is this good enough? For now, I think so. I still want this to go into the Web Inspector. So hopefully I can find time to do the plumbing or can convince the Inspector team to set up some generic plumbing. Thanks, Youenn!
John Wilander
Comment 18 2019-04-30 09:07:07 PDT
(In reply to John Wilander from comment #15) > (In reply to Chris Dumez from comment #12) > > Comment on attachment 368509 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=368509&action=review > > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:54 > > > +#if !RELEASE_LOG_DISABLED > > > > We should not have to do this at call sites. I think the only reason you > > need to is because the person who added RELEASE_LOG_INFO_IF() forgot to add > > a dummy implementation for when #if RELEASE_LOG_DISABLED in Assertions.h. > > Please fix this so that call sites do not have to look so ugly. > > Got it. Yes, it does look ugly. Assertions.h has this: /* RELEASE_LOG */ #if RELEASE_LOG_DISABLED … #define RELEASE_LOG_IF(isAllowed, channel, ...) ((void)0) > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:76 > > > + auto conversionData = conversion.data; > > > > auto& to avoid copying? > > Will fix. > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:77 > > > + auto conversionPriority = conversion.priority; > > > > ditto. > > Will fix. > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:177 > > > +#if !RELEASE_LOG_DISABLED > > > > I would feel a lot safer if the lambda checked weakThis right away and > > returned early: > > if (!weakThis) > > return; > > Agreed. > > > Otherwise, somebody might add code at the end of your lambda and fail to > > check weakThis. > > > > > Source/WebKit/Shared/WebPreferences.yaml:1421 > > > + category: experimental > > > > Shouldn't this be internal? > > Actually not. This is intended for developers too since they'll want debug > info and a quicker turnaround than 24-48 hours to check whether they got it > right or not. :) > > Thanks, Chris!
Chris Dumez
Comment 19 2019-04-30 09:10:19 PDT
(In reply to John Wilander from comment #18) > (In reply to John Wilander from comment #15) > > (In reply to Chris Dumez from comment #12) > > > Comment on attachment 368509 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=368509&action=review > > > > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:54 > > > > +#if !RELEASE_LOG_DISABLED > > > > > > We should not have to do this at call sites. I think the only reason you > > > need to is because the person who added RELEASE_LOG_INFO_IF() forgot to add > > > a dummy implementation for when #if RELEASE_LOG_DISABLED in Assertions.h. > > > Please fix this so that call sites do not have to look so ugly. > > > > Got it. Yes, it does look ugly. > > Assertions.h has this: > > /* RELEASE_LOG */ > > #if RELEASE_LOG_DISABLED > … > #define RELEASE_LOG_IF(isAllowed, channel, ...) ((void)0) Well I know but it is missing the dummy implementation for RELEASE_LOG_INFO_IF. Please fix.
John Wilander
Comment 20 2019-04-30 10:33:12 PDT
John Wilander
Comment 21 2019-04-30 12:20:24 PDT
John Wilander
Comment 22 2019-04-30 12:20:40 PDT
Fix for the WPE build.
John Wilander
Comment 23 2019-04-30 12:31:30 PDT
John Wilander
Comment 24 2019-04-30 12:31:54 PDT
Another WPE fix.
John Wilander
Comment 25 2019-04-30 12:54:05 PDT
John Wilander
Comment 26 2019-04-30 12:54:22 PDT
A third WPE fix. :/
youenn fablet
Comment 27 2019-04-30 15:00:41 PDT
Comment on attachment 368589 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368589&action=review > Source/WebCore/loader/AdClickAttribution.cpp:62 > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the URL path: %{public}s did not start with %{public}s.", path.utf8().data(), adClickAttributionPathPrefix); I know this is debug mode only, but do we want to enable logging the URLs there and below? > Source/WebCore/loader/AdClickAttribution.cpp:70 > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the conversion data could not be parsed or was higher than the allowed maximum of %{public}u.", MaxEntropy); Probably do not need %{public} here and below. > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:67 > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the HTTP redirect from: %{public}s to: %{public}s was not same-site.", redirectDomain.string().utf8().data(), requestURL.string().utf8().data()); Since this is an error case, it should probably be RELEASE_LOG_ERROR_IF Might be applicable elsewhere. > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:-139 > - UNUSED_PARAM(error); You might want to keep it in case of compiling without release logging.
John Wilander
Comment 28 2019-04-30 15:06:03 PDT
(In reply to youenn fablet from comment #27) > Comment on attachment 368589 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=368589&action=review > > > Source/WebCore/loader/AdClickAttribution.cpp:62 > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the URL path: %{public}s did not start with %{public}s.", path.utf8().data(), adClickAttributionPathPrefix); > > I know this is debug mode only, but do we want to enable logging the URLs > there and below? Do you mean log the full URL too? > > Source/WebCore/loader/AdClickAttribution.cpp:70 > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the conversion data could not be parsed or was higher than the allowed maximum of %{public}u.", MaxEntropy); > > Probably do not need %{public} here and below. Oh, I thought we needed that for any conversion specifiers. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:67 > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the HTTP redirect from: %{public}s to: %{public}s was not same-site.", redirectDomain.string().utf8().data(), requestURL.string().utf8().data()); > > Since this is an error case, it should probably be RELEASE_LOG_ERROR_IF > Might be applicable elsewhere. The reason why I stick with INFO is to make sure these log statements are never persisted. If we wanted to have an ERROR log statement, it would have to be without URL information. > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:-139 > > - UNUSED_PARAM(error); > > You might want to keep it in case of compiling without release logging. OK. Anything else?
youenn fablet
Comment 29 2019-04-30 15:28:00 PDT
(In reply to John Wilander from comment #28) > (In reply to youenn fablet from comment #27) > > Comment on attachment 368589 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=368589&action=review > > > > > Source/WebCore/loader/AdClickAttribution.cpp:62 > > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the URL path: %{public}s did not start with %{public}s.", path.utf8().data(), adClickAttributionPathPrefix); > > > > I know this is debug mode only, but do we want to enable logging the URLs > > there and below? > > Do you mean log the full URL too? Usually, we do not log full URLs. I know this is optional logging so maybe that is fine. It would feel better if this logging would go to the web inspector but not the console. > > > Source/WebCore/loader/AdClickAttribution.cpp:70 > > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the conversion data could not be parsed or was higher than the allowed maximum of %{public}u.", MaxEntropy); > > > > Probably do not need %{public} here and below. > > Oh, I thought we needed that for any conversion specifiers. > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:67 > > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the HTTP redirect from: %{public}s to: %{public}s was not same-site.", redirectDomain.string().utf8().data(), requestURL.string().utf8().data()); > > > > Since this is an error case, it should probably be RELEASE_LOG_ERROR_IF > > Might be applicable elsewhere. > > The reason why I stick with INFO is to make sure these log statements are > never persisted. If we wanted to have an ERROR log statement, it would have > to be without URL information. I am not sure info/error are that of a difference here since you use debugModeEnabled(). In any case, having in a default release log that a conversion did not go through is good to have. I would add such logging without logging the URL. An alternative might be to log an identifier of the corresponding ad click attribution (or just a pointer) so that URL logging does not happen in various places, but potentially just in one place and off by default. Then you could use info/error appropriately. > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:-139 > > > - UNUSED_PARAM(error); > > > > You might want to keep it in case of compiling without release logging. > > OK. > > Anything else?
John Wilander
Comment 30 2019-04-30 15:34:03 PDT
(In reply to youenn fablet from comment #29) > (In reply to John Wilander from comment #28) > > (In reply to youenn fablet from comment #27) > > > Comment on attachment 368589 [details] > > > Patch > > > > > > View in context: > > > https://bugs.webkit.org/attachment.cgi?id=368589&action=review > > > > > > > Source/WebCore/loader/AdClickAttribution.cpp:62 > > > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the URL path: %{public}s did not start with %{public}s.", path.utf8().data(), adClickAttributionPathPrefix); > > > > > > I know this is debug mode only, but do we want to enable logging the URLs > > > there and below? > > > > Do you mean log the full URL too? > > Usually, we do not log full URLs. > I know this is optional logging so maybe that is fine. > It would feel better if this logging would go to the web inspector but not > the console. Oh, I'm very well aware of our policy to not log URLs. That's why this only happens if the user enables the Develop menu and opts in, and the log statements are always ephemeral which means that they only stay in the memory ring buffer for a little while. My original patch tried to log through the Web Inspector but it turned out to be a major effort to get that working. My code resides in the network process which has no direct connection to Web Inspector. The inspector is tied to a webpage which isn't really a thing for some of my logging, especially the ping load that's unrelated to any page and uses its own NSURLSession. > > > > Source/WebCore/loader/AdClickAttribution.cpp:70 > > > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the conversion data could not be parsed or was higher than the allowed maximum of %{public}u.", MaxEntropy); > > > > > > Probably do not need %{public} here and below. > > > > Oh, I thought we needed that for any conversion specifiers. > > > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:67 > > > > + RELEASE_LOG_INFO_IF(debugModeEnabled(), AdClickAttribution, "Conversion was not accepted because the HTTP redirect from: %{public}s to: %{public}s was not same-site.", redirectDomain.string().utf8().data(), requestURL.string().utf8().data()); > > > > > > Since this is an error case, it should probably be RELEASE_LOG_ERROR_IF > > > Might be applicable elsewhere. > > > > The reason why I stick with INFO is to make sure these log statements are > > never persisted. If we wanted to have an ERROR log statement, it would have > > to be without URL information. > > I am not sure info/error are that of a difference here since you use > debugModeEnabled(). INFO level logs go to the in-memory ring buffer and not to persistent storage. > In any case, having in a default release log that a conversion did not go > through is good to have. > I would add such logging without logging the URL. I can add an extra ERROR log call without URL info. > An alternative might be to log an identifier of the corresponding ad click > attribution (or just a pointer) so that URL logging does not happen in > various places, but potentially just in one place and off by default. > > Then you could use info/error appropriately. > > > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:-139 > > > > - UNUSED_PARAM(error); > > > > > > You might want to keep it in case of compiling without release logging. > > > > OK. > > > > Anything else?
youenn fablet
Comment 31 2019-04-30 16:33:29 PDT
Comment on attachment 368589 [details] Patch I would tend for now to not log the URLs since in most cases except clearExpired, there is an ongoing load that a web developer can see that should relate to the ad clicks. View in context: https://bugs.webkit.org/attachment.cgi?id=368589&action=review > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:95 > + auto& conversionPriority = conversion.priority; Why not inlining these in below RELEASE_LOG_INFO_IF.
John Wilander
Comment 32 2019-04-30 18:44:51 PDT
(In reply to youenn fablet from comment #31) > Comment on attachment 368589 [details] > Patch > > I would tend for now to not log the URLs since in most cases except > clearExpired, there is an ongoing load that a web developer can see that > should relate to the ad clicks. OK, I'll land without any URLs in the log statements for now. > View in context: > https://bugs.webkit.org/attachment.cgi?id=368589&action=review > > > Source/WebKit/NetworkProcess/AdClickAttributionManager.cpp:95 > > + auto& conversionPriority = conversion.priority; > > Why not inlining these in below RELEASE_LOG_INFO_IF. It's because I use those variables in log calls after I've moved the Conversion object. Thanks for the review, Youenn!
John Wilander
Comment 33 2019-04-30 18:49:30 PDT
Created attachment 368645 [details] Patch for landing
WebKit Commit Bot
Comment 34 2019-04-30 19:28:13 PDT
Comment on attachment 368645 [details] Patch for landing Clearing flags on attachment: 368645 Committed r244818: <https://trac.webkit.org/changeset/244818>
WebKit Commit Bot
Comment 35 2019-04-30 19:28:16 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.