Closed Bug 814731 Opened 13 years ago Closed 13 years ago

[B2G] Clicking camera button under lockscreen does not load the camera

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Windows 7
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: zcampbell, Unassigned)

References

Details

Attachments

(1 file)

Clicking the lockscreen camera button with Marionette does not load the camera. In the logcat is error message: ls_activityError: MozActivity: camera launch error. This works fine, repeatedly while using ye olde finger instead of Marionette so something MArionette is doing is causing this to fail. Basic test case attached
Severity: normal → major
Has the lockscreen always used activities to launch the camera, or is that a recent change? If actvities are involved, there security rules. Used to be they could only be invoked from a user click. I don't know if a marionette click would be good enough. Now I vaguely think that there is some rule about activities only working when initiated by the foreground app. I don't know if the system app counts as a foreground app. Anyway, the problem may lie there. You could add a console.log to the lockscreen code to print activity.error.name and see what kind of error you're getting when it prints "camera launch error". Then talk to Fabrice maybe, about the security restrictions on activities
This appears to have been resolved at some point.. I'd close this but can anybody comment for the historical record?
There're two ways to invoke camera in lockscreen. With passcode enabled: Create an iframe and embed it with another copy of camera in system app. With passcode disabled: Use activity to open camera. (In reply to David Flanagan [:djf] from comment #1) > Has the lockscreen always used activities to launch the camera, or is that a > recent change?
Zac if you could confirm this is resolved, please update the bug accordingly.
Flags: needinfo?(zcampbell)
This was resolved at some point, probably when the lockscreen was redesigned.
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: needinfo?(zcampbell)
Resolution: --- → INVALID
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: