| Summary: | CrashTracer: com.apple.WebKit.Networking at WebKit: WTF::Detail::CallableWrapper<WebKit::PrivateClickMeasurementManager::firePendingAttributionRequests() | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Kate Cheney <katherine_cheney> | ||||||||
| Component: | WebKit Misc. | Assignee: | Kate Cheney <katherine_cheney> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | achristensen, ddkilzer, webkit-bug-importer, wilander | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Kate Cheney
2020-12-14 10:22:29 PST
Created attachment 416172 [details]
Patch
Comment on attachment 416172 [details]
Patch
From the description, I think this should just add this:
if (!m_networkSession)
return;
(In reply to Alex Christensen from comment #3) > Comment on attachment 416172 [details] > Patch > > From the description, I think this should just add this: > if (!m_networkSession) > return; I thought if (auto* resourceLoadStatistics = m_networkSession->resourceLoadStatistics()) would check m_networkSession but maybe I am wrong? If so I should check m_networkSession in other PrivateClickMeasurementManager functions to be consistent. if (auto* resourceLoadStatistics = m_networkSession ? m_networkSession->resourceLoadStatistics() : nullptr) checks m_networkSession, but what you have doesn't. Created attachment 416180 [details]
Patch
Committed r270802: <https://trac.webkit.org/changeset/270802> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416180 [details]. Comment on attachment 416180 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416180&action=review An easier way to fix this is to move the null check into PrivateClickMeasurementManager::featureEnabled(). > Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:302 > + return; We need to also call the completion handler here. > Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:342 > + return; We need to also call the completion handler here. Comment on attachment 416180 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416180&action=review >> Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp:302 >> + return; > > We need to also call the completion handler here. yes we certainly do. Also in the case before if resourceLoadStatistics is null. Reopening to attach new patch. Created attachment 416253 [details]
Patch
Committed r270852: <https://trac.webkit.org/changeset/270852> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416253 [details]. |