Skip to content
  • Oliver Hader's avatar
    [TASK] Reduce inline JavaScript of requireJS in FormEngine · ef8243d9
    Oliver Hader authored and Benjamin Franzke's avatar Benjamin Franzke committed
    
    
    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>
    ef8243d9