Confirmed users
971
edits
(→new) |
|||
Line 66: | Line 66: | ||
"returnValue": true | "returnValue": true | ||
}, | }, | ||
The actual contact editor is shown at https://github.com/mozilla-b2g/gaia/blob/v1-train/apps/communications/contacts/js/contacts.js#L68 | The actual contact editor is shown at https://github.com/mozilla-b2g/gaia/blob/v1-train/apps/communications/contacts/js/contacts.js#L68 | ||
If an id was passed as a request param then addExtrasToContact is called to process the extras param which is a JSON encoded object. The fields of the extras object are added to the existing contact. | ISSUE: The activity handler copies all parameters from activity.source.params to the request params. Is it possible to cause anything bad there? It seems to pass an 'id' and 'extras' parameter. If an id was passed as a request param then addExtrasToContact is called to process the extras param which is a JSON encoded object. The fields of the extras object are added to the existing contact. | ||
* {{bug|847650}} Contacts' "new" activity is also "edit" in disguise | |||
* {{bug|847649}} Contacts' "new" activity does not validate parameters | |||
===== pick ===== | ===== pick ===== |