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)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: zcampbell, Unassigned)
References
Details
Attachments
(1 file)
|
831 bytes,
text/plain
|
Details |
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
Updated•13 years ago
|
Severity: normal → major
Comment 1•13 years ago
|
||
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
| Reporter | ||
Comment 2•13 years ago
|
||
This appears to have been resolved at some point..
I'd close this but can anybody comment for the historical record?
Comment 3•13 years ago
|
||
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?
Comment 4•13 years ago
|
||
Zac if you could confirm this is resolved, please update the bug accordingly.
Flags: needinfo?(zcampbell)
| Reporter | ||
Comment 5•13 years ago
|
||
This was resolved at some point, probably when the lockscreen was redesigned.
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: needinfo?(zcampbell)
Resolution: --- → INVALID
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•