Changeset 277338 in webkit
- Timestamp:
- May 11, 2021, 1:45:18 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Cocoa/MediaPermissionUtilities.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r277336 r277338 1 2021-05-11 Ben Nham <nham@apple.com> 2 3 Failing sandbox check for media permissions should not generate a violation report 4 https://bugs.webkit.org/show_bug.cgi?id=225662 5 6 Reviewed by Geoffrey Garen. 7 8 We sandbox_check the UIProcess for camera and video permissions. But if the process doesn't 9 have those permissions, sandbox_check fails and generates an expensive violation report that 10 task_suspends the process. We need to suppress the reporting with SANDBOX_CHECK_NO_REPORT. 11 12 * UIProcess/Cocoa/MediaPermissionUtilities.mm: 13 (WebKit::checkSandboxRequirementForType): 14 1 15 2021-05-11 Alex Christensen <achristensen@webkit.org> 2 16 -
trunk/Source/WebKit/UIProcess/Cocoa/MediaPermissionUtilities.mm
r274764 r277338 62 62 return; 63 63 64 int result = sandbox_check(getpid(), operation, SANDBOX_FILTER_NONE);64 int result = sandbox_check(getpid(), operation, static_cast<enum sandbox_filter_type>(SANDBOX_CHECK_NO_REPORT | SANDBOX_FILTER_NONE)); 65 65 if (result == -1) 66 66 WTFLogAlways("Error checking '%s' sandbox access, errno=%ld", operation, (long)errno);
Note:
See TracChangeset
for help on using the changeset viewer.