Extend 1309394 content sandbox tests to run native test libraries in content

NEW
Assigned to

Status

()

Core
Security: Process Sandboxing
11 months ago
4 months ago

People

(Reporter: haik, Assigned: haik)

Tracking

(Blocks: 1 bug)

53 Branch
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox53 affected)

Details

(Whiteboard: sb+)

(Assignee)

Description

11 months ago
This bug covers the work to extend the test functionality delivered in bug 1309394 to include running of native code in content.

Bug 1309394 added some simple tests that use js-ctypes to make OS library/system calls from the content process. The tests validate whether or not operations are allowed or blocked in the content sandbox.

The work here is to extend the tests to use js-ctypes to load a per-platform library which runs tests written in compiled code. There is some additional value in having native tests in addition to JS tests: 1) In some cases it's easier to test new functionality using native code compared to having to use js-ctypes exclusively; 2) native tests would be easier to convert to gtests if we need to do that in the future. See discussion on 1309394; and 3) browser bugs could prevent JS tests from working while native calls might still work.
(Assignee)

Updated

11 months ago
Assignee: nobody → haftandilian
(Assignee)

Updated

11 months ago
Blocks: 1330786
(Assignee)

Updated

11 months ago
Depends on: 1309394
(Assignee)

Updated

11 months ago
Whiteboard: sb+
(Assignee)

Updated

4 months ago
See Also: → bug 1386762
You need to log in before you can comment on or make changes to this bug.