Implement basic support for "script.callFunction" command
Categories
(Remote Protocol :: WebDriver BiDi, task, P1)
Tracking
(firefox104 fixed)
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: whimboo, Assigned: jdescottes)
References
()
Details
(Whiteboard: [webdriver:m4])
Attachments
(1 file)
The command is similar to script.evaluate
(bug 1742979) but allows to pass-in arguments to be used when evaluating the script. This means that the implementation here is dependent on bug 1742979, and further adds a small layer on-top mainly for argument handling.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 1•3 years ago
|
||
Re-use the existing implementation for script.evaluate
and add support for running the function wrapped Javascript code as passed-in via the functionDeclaration
argument within the given browsing context.
Further we don't cover the following:
- No support for returning Javascript data
- By-passing CSP by default
- No support for sandboxes
As such this bug is blocked on bug 1742979.
Assignee | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Hi Julian. Does this bug need to be tagged for M4?
Assignee | ||
Comment 3•2 years ago
|
||
(In reply to Marco Mucci [:MarcoM] from comment #2)
Hi Julian. Does this bug need to be tagged for M4?
Yes, not sure why we missed it. If you look at all the bugs blocked by this one, they are all in M4.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Henrik, this doesn't say if the basic implementation should support the thisParameter. For info it comes with the same issues/challenges as handling arguments, so if arguments are out of the basic implementation, I would also not include handling the thisParameter. What do you think?
Reporter | ||
Comment 5•2 years ago
|
||
This is correct and I totally missed that. Lets get a new bug filed and blocked on arguments and the complex object deserialization (strong handle).
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D150246
Comment 8•2 years ago
|
||
bugherder |
Description
•