Skip to content
Commit ef8243d9 authored by Oliver Hader's avatar Oliver Hader Committed by Benjamin Franzke
Browse files

[TASK] Reduce inline JavaScript of requireJS in FormEngine

To reduce arbitrary inline JavaScript, requireJS callbacks used in
FormEngine are streamlined to be more explicit - allowed instructions
are `load` (module), `invoke` (a method), (create a new) `instance`.

This change is an intermediate preparation for delegating loading,
assignment and invocation directly to JavaScript processes. Relevant
parts have been extracted from corresponding client-side handling in
https://review.typo3.org/c/Packages/TYPO3.CMS/+/64123

The possibility to load and append arbitrary inline JavaScript to
FormEngine segment `requireJsModules` is deprecated. Instructions
need to be declared using new `JavaScriptModuleInstruction`.

Resolves: #95200
Releases: master
Change-Id: Ic93ffc7b478dea44dfa5cffe9606f81eea2e64b0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71044


Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent e98dbcb2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment