Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always treat the call_script callback as a string of JS code #3521

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Jun 19, 2024

The handler for _call_script always calls eval on the callback string anyway, and this allows the callback to be specified for backend-originated call_script as well as frontend (triggered) call_script.

Fix #3520

Update test cases to catch this issue.

General clean up of test_call_script

The handler for _call_script always calls `eval` on the `callback` string
anyway, and this allows the callback to be specified for backend-originated
call_script as well as frontend (triggered) call_script.

Fix #3520
* remove chakra inputs
* remove old-style token checking
@masenf masenf merged commit c2c6286 into main Jun 21, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REF-3146] call_script with callback is broken when used as an event trigger
2 participants