Closed Bug 1522954 Opened 6 years ago Closed 4 years ago

GeckoLoader obtaining a serial number is not compatible with isolatedProcess

Categories

(Core :: Security: Process Sandboxing, defect, P3)

ARM
Android
defect

Tracking

()

RESOLVED DUPLICATE of bug 1523639
Tracking Status
firefox66 --- affected

People

(Reporter: gcp, Unassigned)

References

(Blocks 1 open bug)

Details

The error is a bit strange as previous operations on Context do work, thought it makes sense we can't get serial numbers in the sandbox. This code seems to be entirely optional given that it's conditional on the SDK.

E/GeckoCrashHandler(18939): java.lang.NullPointerException: Attempt to invoke interface method 'int android.os.IUserManager.getUserSerialNumber(int)' on a null object reference
E/GeckoCrashHandler(18939): at android.os.UserManager.getUserSerialNumber(UserManager.java:1139)
E/GeckoCrashHandler(18939): at android.os.UserManager.getSerialNumberForUser(UserManager.java:699)
E/GeckoCrashHandler(18939): at org.mozilla.gecko.mozglue.GeckoLoader.setupGeckoEnvironment(GeckoLoader.java:164)
E/GeckoCrashHandler(18939): at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:464)

Blocks: 1498614

Adding null checks doesn't work, so I wonder if Android and its JIT are getting confused as to what the source of the failure is. Skipping the call is OK.

Priority: -- → P3
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.