Changeset 231465 in webkit
- Timestamp:
- May 7, 2018 4:57:22 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r231458 r231465 1 2018-05-07 Alex Christensen <achristensen@webkit.org> 2 3 WebResourceLoadStatisticsStore::requestStorageAccess should call its completion handler on the main thread 4 https://bugs.webkit.org/show_bug.cgi?id=185403 5 6 Reviewed by Brent Fulgham. 7 8 * UIProcess/WebResourceLoadStatisticsStore.cpp: 9 (WebKit::WebResourceLoadStatisticsStore::requestStorageAccess): 10 1 11 2018-05-07 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKit/UIProcess/WebResourceLoadStatisticsStore.cpp
r230162 r231465 372 372 auto& subFrameStatistic = ensureResourceStatisticsForPrimaryDomain(subFramePrimaryDomain); 373 373 if (shouldBlockCookies(subFrameStatistic)) { 374 callback(false); 374 callOnMainThread([callback = WTFMove(callback)] { 375 callback(false); 376 }); 375 377 return; 376 378 } 377 379 378 380 if (!shouldPartitionCookies(subFrameStatistic)) { 379 callback(true); 381 callOnMainThread([callback = WTFMove(callback)] { 382 callback(true); 383 }); 380 384 return; 381 385 } … … 383 387 subFrameStatistic.timesAccessedAsFirstPartyDueToStorageAccessAPI++; 384 388 385 m_grantStorageAccessHandler(subFramePrimaryDomain, topFramePrimaryDomain, frameID, pageID, WTFMove(callback)); 389 m_grantStorageAccessHandler(subFramePrimaryDomain, topFramePrimaryDomain, frameID, pageID, [callback = WTFMove(callback)] (bool value) mutable { 390 callOnMainThread([value, callback = WTFMove(callback)] { 391 callback(value); 392 }); 393 }); 386 394 }); 387 395 }
Note: See TracChangeset
for help on using the changeset viewer.