[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:Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benjamin Franzke <bfr@qbus.de>
parent
e98dbcb2
Please register or sign in to comment