Closed Bug 1783820 Opened 2 years ago Closed 2 years ago

Add resultOwnership support for "script.evaluate" and "script.callFunction"

Categories

(Remote Protocol :: WebDriver BiDi, enhancement, P1)

enhancement
Points:
5

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

()

Details

(Whiteboard: [webdriver:m4])

Attachments

(4 files)

The evaluate and callFunction commands do not handle resultOwnership yet. The default value is "none", but we should also support the "root" value, which means we should return the handle for the root of the return value.

For the record, at the moment resultOwnership is marked as unsupported in the JSDoc. However we are not rejecting commands if a value is provided, we simply ignore it (as opposed to what we do for sandbox and realm parameters).

Blocking on Bug 1770736 because we need the object reference store in order to create our handle ids.

wdspec tests for callFunction landed via bug 1779066 and for evaluate via bug 1779211.

Depends on: 1779066, 1779211
Points: --- → 5
Priority: -- → P1
Whiteboard: [webdriver:m4]
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Depends on D155445

The test was only passing because the error thrown was "InvalidArgumentError is not a constructor"

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a3540c94fdb [bidi] Fix errors lazy imports in RemoteValue r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/86d453430ba7 [bidi] Create handle in RemoteValue.serialize if ownershipType is root r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/87529a5f58ad [bidi] Add a RemoteValue class to hold data for serialized values r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/dc1e9c10054b [bidi] Add resultOwnership support for script.evaluate and script.callFunction r=webdriver-reviewers,Sasha,whimboo
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: