Changeset 273180 in webkit


Ignore:
Timestamp:
Feb 19, 2021 4:18:55 PM (3 years ago)
Author:
commit-queue@webkit.org
Message:

CrashTracer: com.apple.WebKit.Networking at WebKit: WTF::Detail::CallableWrapper<WebKit::PrivateClickMeasurementManager::firePendingAttributionRequests()
https://bugs.webkit.org/show_bug.cgi?id=222201

Patch by Alex Christensen <achristensen@webkit.org> on 2021-02-19
Reviewed by Chris Dumez.

  • NetworkProcess/PrivateClickMeasurementManager.cpp:

(WebKit::PrivateClickMeasurementManager::attribute):
(WebKit::PrivateClickMeasurementManager::firePendingAttributionRequests):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r273169 r273180  
     12021-02-19  Alex Christensen  <achristensen@webkit.org>
     2
     3        CrashTracer: com.apple.WebKit.Networking at WebKit: WTF::Detail::CallableWrapper<WebKit::PrivateClickMeasurementManager::firePendingAttributionRequests()
     4        https://bugs.webkit.org/show_bug.cgi?id=222201
     5
     6        Reviewed by Chris Dumez.
     7
     8        * NetworkProcess/PrivateClickMeasurementManager.cpp:
     9        (WebKit::PrivateClickMeasurementManager::attribute):
     10        (WebKit::PrivateClickMeasurementManager::firePendingAttributionRequests):
     11
    1122021-02-19  Per Arne Vollan  <pvollan@apple.com>
    213
  • trunk/Source/WebKit/NetworkProcess/PrivateClickMeasurementManager.cpp

    r273167 r273180  
    231231
    232232    if (auto* resourceLoadStatistics = m_networkSession->resourceLoadStatistics()) {
    233         resourceLoadStatistics->attributePrivateClickMeasurement(sourceSite, attributeOnSite, WTFMove(attributionTriggerData), [this] (auto optionalSecondsUntilSend) {
     233        resourceLoadStatistics->attributePrivateClickMeasurement(sourceSite, attributeOnSite, WTFMove(attributionTriggerData), [this, weakThis = makeWeakPtr(*this)] (auto optionalSecondsUntilSend) {
     234            if (!weakThis)
     235                return;
    234236            if (optionalSecondsUntilSend) {
    235237                auto secondsUntilSend = *optionalSecondsUntilSend;
     
    295297        return;
    296298
    297     resourceLoadStatistics->allAttributedPrivateClickMeasurement([this] (auto&& attributions) {
     299    resourceLoadStatistics->allAttributedPrivateClickMeasurement([this, weakThis = makeWeakPtr(*this)] (auto&& attributions) {
     300        if (!weakThis)
     301            return;
    298302        auto nextTimeToFire = Seconds::infinity();
    299303        bool hasSentAttribution = false;
Note: See TracChangeset for help on using the changeset viewer.