Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • core
  • Classes
  • Page
  • JavaScriptModuleInstruction.php
Find file BlameHistoryPermalink
  • Oliver Hader's avatar
    [TASK] Reduce inline JavaScript of requireJS in FormEngine · ef8243d9
    Oliver Hader authored Sep 12, 2021 and Benjamin Franzke's avatar Benjamin Franzke committed Oct 02, 2021
    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's avatarOliver Bartsch <bo@cedev.de>
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    ef8243d9