Changeset 277477 in webkit
- Timestamp:
- May 13, 2021, 7:13:53 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r277475 r277477 1 2021-05-13 Patrick Angle <pangle@apple.com> 2 3 [REGRESSION: r271876] Web Inspector: [Cocoa] Remote inspection crashes when using WEB_THREAD 4 https://bugs.webkit.org/show_bug.cgi?id=225794 5 6 Reviewed by Devin Rousso. 7 8 For WEB_THREAD, move `callback` in `dispatchAsyncOnTarget` to `block` scope to ensure it is available for the 9 lifetime of the block. 10 11 * inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm: 12 (Inspector::RemoteConnectionToTarget::dispatchAsyncOnTarget): 13 1 14 2021-05-13 Geoffrey Garen <ggaren@apple.com> 2 15 -
trunk/Source/JavaScriptCore/inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm
r274288 r277477 146 146 #if USE(WEB_THREAD) 147 147 if (WebCoreWebThreadIsEnabled && WebCoreWebThreadIsEnabled()) { 148 WebCoreWebThreadRun(^ { callback(); }); 148 __block auto blockCallback(WTFMove(callback)); 149 WebCoreWebThreadRun(^{ 150 blockCallback(); 151 }); 149 152 return; 150 153 }
Note:
See TracChangeset
for help on using the changeset viewer.