Closed Bug 1777460 Opened 2 years ago Closed 2 years ago

Support "this" parameter for "script.callFunction" command

Categories

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

enhancement
Points:
2

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

(Whiteboard: [webdriver:m4])

Attachments

(1 file)

https://w3c.github.io/webdriver-bidi/#command-script-callFunction supports an optional this argument which should be used as the scope of the function call.

If this parameter is not null, set this object to the result of trying to deserialize local value given realm and this parameter.

Type: task → enhancement
Depends on: 1770492
No longer depends on: 1750541
Depends on: 1770736

Blocking on Bug 1770492 because handling thisParameter is similar to arguments handling.
Tentatively blocking on Bug 1770736 (strong object references), but in theory we could support a thisParameter using a serialized remote value which is not a handle (eg a serialized object). This is very much an edge case, but this is an option according to the specs.

Summary: Support "thisParameter" for "script.callFunction" command → Support "this" parameter for "script.callFunction" command
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Points: --- → 2
Depends on: 1750540
Priority: -- → P1
Whiteboard: [webdriver:m4]
Blocks: 1750540
No longer depends on: 1750540
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8d4d296089fc
[bidi] Support "this" parameter for "script.callFunction" command r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
No longer depends on: 1770736
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: