Closed Bug 793019 Opened 12 years ago Closed 6 years ago

ActivityRequestHandler.postResult() fails for string arguments

Categories

(Firefox OS Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: djf, Unassigned)

Details

After handling an activity, if I call postResult('done'), the app that initiated the activity gets a result of {"0":"d","1":"o","2":"n","3":"e"}.

If I pass a number to postResult, the initiating app gets an empty object.  

If I pass an object to postResult, it seems to go through okay.

The documentation here https://wiki.mozilla.org/WebAPI/WebActivities says that postResult should accept any argument.

Fabrice says this is related to dom/base/ObjectWrapper.jsm

We have a workaround (just use objects) so this is not a blocker.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.