Open
Bug 1330786
Opened 8 years ago
Updated 2 years ago
Add Mac sandbox test to validate camera is not accessible directly from the content process
Categories
(Core :: Security: Process Sandboxing, defect, P3)
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox53 | --- | affected |
People
(Reporter: haik, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Whiteboard: sb+)
Bug 1322370 removed camera access in the Mac content sandbox. A makeshift test was used to validate the camera was not accessible from content. This bug covers getting that makeshift test integrated using the framework from bug 1309394 and bug 1330785. The makeshift test was to build a Mac library that included the Objective-C code below and exercise it using js-ctypes from the content process.
1 int GetNumberOfCameras(void) {
2 int numCameras = 0;
3
4 NSArray *devices = [AVCaptureDevice devices];
5 for (AVCaptureDevice *device in devices) {
6 if ([device hasMediaType:AVMediaTypeVideo]) {
7 numCameras++;
8 }
9 }
10
11 return (numCameras);
12 }
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → haftandilian
Reporter | ||
Updated•7 years ago
|
Assignee: haftandilian → nobody
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•