marionette should be able to return javascript object

RESOLVED INVALID

Status

Testing
Marionette
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: atsai, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

3 years ago
execute_script and execute_async_script should be able to return javascript object. Currently, it will encounter "JavaScript Error: Too much recursion" if we are trying to force package object such as https://developer.mozilla.org/en-US/docs/Web/API/BluetoothAdapter.
Marionette can only return objects that can be serialised via json.stringify(). If you want to be able to serialise complex objects like this, perhaps we can move this bug over to DOM or spidermonkey?
Flags: needinfo?(atsai)
(Reporter)

Comment 2

3 years ago
You are right. After further investigating, it should be a problem of the specific component that is unable to return particular object. I'll file a bug to that component. thanks for clarifying.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(atsai)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.