Magic patch from bug 933336
Bug 936312: Adjust tests' assumptions about B2G's WebGL support.
Bug 942290: Merge ARM exidx info with DWARF if both are present.
Bug 976398 - Check camera permissions directly instead of using Unix groups.

Loosely based on the code used to check PRemoteOpenFile.