Closed Bug 1091820 Opened 10 years ago Closed 10 years ago

[Camera] Add hasOwnProperty() check to recorderProfiles loop

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mikeh, Assigned: justindarc)

References

Details

Attachments

(1 file)

Adding serialization to the CameraCapabilities breaks this loop: https://github.com/mozilla-b2g/gaia/blob/master/apps/camera/js/lib/format-recorder-profiles.js#L23 ...because "toJSON" shows up as a profile. Need to add a call to hasOwnProperty() in the loop first, to unblock bug 1011606.
Assignee: nobody → jdarcangelo
Attached file pull-request (master)
Attachment #8514515 - Flags: review?(mhabicher)
Attachment #8514515 - Flags: review?(mhabicher) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: