Changeset 273265 in webkit
- Timestamp:
- Feb 22, 2021 11:44:49 AM (3 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r273236 r273265 1 2021-02-22 Eric Carlson <eric.carlson@apple.com> 2 3 UserMediaPermissionRequestManagerProxy may be released while computing capture device list 4 https://bugs.webkit.org/show_bug.cgi?id=222236 5 <rdar://74480265> 6 7 Reviewed by Youenn Fablet. 8 9 * UIProcess/UserMediaPermissionRequestManagerProxy.cpp: 10 (WebKit::UserMediaPermissionRequestManagerProxy::computeFilteredDeviceList): Return early 11 if `weakThis` is NULL. 12 1 13 2021-02-22 Carlos Garcia Campos <cgarcia@igalia.com> 2 14 -
trunk/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp
r272735 r273265 711 711 712 712 platformGetMediaStreamDevices([this, weakThis = makeWeakPtr(this), revealIdsAndLabels, completion = WTFMove(completion)](auto&& devices) mutable { 713 714 if (!weakThis) 715 completion({ }); 716 713 717 unsigned cameraCount = 0; 714 718 unsigned microphoneCount = 0; … … 735 739 } 736 740 737 if (weakThis) 738 m_hasFilteredDeviceList = !revealIdsAndLabels; 739 741 weakThis->m_hasFilteredDeviceList = !revealIdsAndLabels; 740 742 ALWAYS_LOG(LOGIDENTIFIER, filteredDevices.size(), " devices revealed"); 743 741 744 completion(WTFMove(filteredDevices)); 742 745 });
Note: See TracChangeset
for help on using the changeset viewer.