Changeset 273786 in webkit
- Timestamp:
- Mar 2, 2021, 7:08:19 PM (6 years ago)
- Location:
- branches/safari-612.1.5-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/UserMediaPermissionRequestManagerProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612.1.5-branch/Source/WebKit/ChangeLog
r273598 r273786 1 2021-03-02 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r273265. rdar://problem/74953476 4 5 UserMediaPermissionRequestManagerProxy may be released while computing capture device list 6 https://bugs.webkit.org/show_bug.cgi?id=222236 7 <rdar://74480265> 8 9 Reviewed by Youenn Fablet. 10 11 * UIProcess/UserMediaPermissionRequestManagerProxy.cpp: 12 (WebKit::UserMediaPermissionRequestManagerProxy::computeFilteredDeviceList): Return early 13 if `weakThis` is NULL. 14 15 16 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273265 268f45cc-cd09-0410-ab3c-d52691b4dbfc 17 18 2021-02-22 Eric Carlson <eric.carlson@apple.com> 19 20 UserMediaPermissionRequestManagerProxy may be released while computing capture device list 21 https://bugs.webkit.org/show_bug.cgi?id=222236 22 <rdar://74480265> 23 24 Reviewed by Youenn Fablet. 25 26 * UIProcess/UserMediaPermissionRequestManagerProxy.cpp: 27 (WebKit::UserMediaPermissionRequestManagerProxy::computeFilteredDeviceList): Return early 28 if `weakThis` is NULL. 29 1 30 2021-02-24 Russell Epstein <repstein@apple.com> 2 31 -
branches/safari-612.1.5-branch/Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp
r273427 r273786 713 713 714 714 platformGetMediaStreamDevices([this, weakThis = makeWeakPtr(this), revealIdsAndLabels, completion = WTFMove(completion)](auto&& devices) mutable { 715 716 if (!weakThis) 717 completion({ }); 718 715 719 unsigned cameraCount = 0; 716 720 unsigned microphoneCount = 0; … … 737 741 } 738 742 739 if (weakThis) 740 m_hasFilteredDeviceList = !revealIdsAndLabels; 741 743 weakThis->m_hasFilteredDeviceList = !revealIdsAndLabels; 742 744 ALWAYS_LOG(LOGIDENTIFIER, filteredDevices.size(), " devices revealed"); 745 743 746 completion(WTFMove(filteredDevices)); 744 747 });
Note:
See TracChangeset
for help on using the changeset viewer.