User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.82 Safari/537.1
Steps to reproduce:
A couple of issues in Contacts app regarding this.
Basicly, when you try to send a success or cancel to an activity, it returns an error.
For example in
https://github.com/mozilla-b2g/gaia/blob/master/apps/contacts/js/activities.js#L48
Actual results:
I get a
NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object"
Expected results:
The activity should have sent the success or cancel.

I have tested this patch and I'm still getting the same error. I tested it with Contacts and Gallery activities
"NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object" {file: "app://contacts.gaiamobile.org/js/activities.js" line: 48}]
"NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object" {file: "app://gallery.gaiamobile.org/js/gallery.js" line: 526}]
Built from
https://github.com/mozilla/mozilla-central/commit/ef6746907b0a6a5d3160e1b26272ba38c5fdef73