Closed Bug 1778976 Opened 2 years ago Closed 2 years ago

Enable "script.evaluate", "script.callFunction" and "script.disown" on release channels

Categories

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

task
Points:
1

Tracking

(firefox106 fixed, firefox107 fixed)

RESOLVED FIXED
107 Branch
Tracking Status
firefox106 --- fixed
firefox107 --- fixed

People

(Reporter: Sasha, Assigned: Sasha)

References

Details

(Whiteboard: [webdriver:m4][webdriver:relnote])

Attachments

(1 file)

After https://bugzilla.mozilla.org/show_bug.cgi?id=1777951 land, "script.evaluate" and "script.callFunction" will be pref'ed off on release channels.

As soon as these commands are fully implemented, we can enable them on release channels.

Blocks: 1742977, 1750540
Points: --- → 1
Priority: -- → P1
Whiteboard: [webdriver:m4]
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
No longer depends on: 1788861
Summary: Enable "script.evaluate" and "script.callFunction" on release channels → Enable "script.evaluate", "script.callFunction" and "script.disown" on release channels
Pushed by aborovova@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9416866a030b
[bidi] Enable "script.evaluate", "script.callFunction" and "script.disown" on release channels. r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch

Comment on attachment 9294205 [details]
Bug 1778976 - [bidi] Enable "script.evaluate", "script.callFunction" and "script.disown" on release channels.

Beta/Release Uplift Approval Request

  • User impact if declined: A user will not be able to start using "script.evaluate", "script.callFunction" and "script.disown" commands.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: Bug 1779231
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This bug only removes check for pref and make the command available by default. These commands are heavily tested with wdspec tests.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9294205 - Flags: approval-mozilla-beta?

Comment on attachment 9294205 [details]
Bug 1778976 - [bidi] Enable "script.evaluate", "script.callFunction" and "script.disown" on release channels.

Approved for 106.0b3, thanks.

Attachment #9294205 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Adding webdriver:relnote

Added support for three commands of the script module. The "evaluate" command allows to evaluate a JavaScript expression and retrieve the result as a serialized remote value. "callFunction" is similar, but allows to execute a function declaration, which supports "arguments" and "this" parameters. "arguments" and "this" can be any remote value, including remote references directly mapped to objects retrieved from previous calls to "evaluate" or "callFunction". Those remote references require strong references to be created to avoid garbage collection issues, but they can be deleted explicitly using the "disown" command.

See comment #9 .

Whiteboard: [webdriver:m4] → [webdriver:m4][webdriver:relnote]

Thanks Julian. This description is quite long. I think we should condense the contents for the release notes PR to some very basic information. Given that we deliver the bug numbers as well interested users can get detailed information on the bug.

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #8)

Thanks Julian. This description is quite long. I think we should condense the contents for the release notes PR to some very basic information. Given that we deliver the bug numbers as well interested users can get detailed information on the bug.

Added full support for the "evaluate", "callFunction" and "disown" commands of the script module.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: