Closed Bug 784678 Opened 7 years ago Closed 7 years ago

Error when calling postCancel and postSuccess in an activity

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set

Tracking

(blocking-basecamp:+)

RESOLVED FIXED
blocking-basecamp +

People

(Reporter: alberto.pastor, Assigned: fabrice)

Details

Attachments

(2 files, 1 obsolete file)

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.
blocking-basecamp: --- → ?
QA Contact: fabrice
blocking-basecamp: ? → +
Assignee: nobody → fabrice
QA Contact: fabrice
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch patch (obsolete) — Splinter Review
__exposedProps__, I love you.
Attachment #654456 - Flags: review?(anygregor)
Attached patch patchSplinter Review
Attachment #654456 - Attachment is obsolete: true
Attachment #654456 - Flags: review?(anygregor)
Attachment #654458 - Flags: review?(anygregor)
Attachment #654458 - Flags: review?(anygregor) → review+
https://hg.mozilla.org/mozilla-central/rev/24ae54fe53a7
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
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
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to Alberto Pastor from comment #5)
> 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}]

Alberto, can you give me the exact steps to reproduce that? I was not hitting these errors yesterday.
Sure,

- Open SMS app
- New SMS
- Click on Contacts icon
- Contacts app will be opened
- Click on top left X

Every click on that X will trigger that error.

Thanks!
Attached patch followupSplinter Review
We were wrapping twice xpcom objects dispatched by the message manager.
Attachment #654681 - Flags: review?(mrbkap)
Attachment #654681 - Flags: review?(mrbkap) → review+
https://hg.mozilla.org/mozilla-central/rev/b173c738d021
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
QA Contact: jsmith
Whiteboard: [qa+]
Keywords: verifyme
Whiteboard: [qa+]
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.