Project

General

Profile

Actions

Task #95278

closed

Epic #87417: Integrate proper Content Security Policy (CSP) handling

Task #87418: Refactor and remove usage of inline scripts in backend

Deprecate inline JavaScript in ModuleTemplate components

Added by Oliver Hader about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2021-09-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

ModuleTemplate components API allows to use onclick event attributes containing inline JavaScript. Capabilities have been introduced with #69814 (https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/7.6/Feature-69814-ModuleTemplateAPI.html).

Corresponding onclick functionality will be deprecated and removed in TYPO3 v12.0 - this particular functionality is not used by the TYPO3 core at all, but is used by several extensions. The scope of this task is to provide some good examples concerning potential migration.

// this shall be deprecated and avoided
$viewButton = $buttonBar->makeLinkButton()
  ->setOnClick(...);

Usages in (some) extensions:


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Task #91814: Deprecate TYPO3\CMS\Backend\Template\Components\AbstractControl::setOnClickClosedOliver Hader2020-07-17

Actions
Actions #1

Updated by Oliver Hader about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71126

Actions #3

Updated by Oliver Hader about 3 years ago

  • Is duplicate of Task #91814: Deprecate TYPO3\CMS\Backend\Template\Components\AbstractControl::setOnClick added
Actions #4

Updated by Oliver Hader about 3 years ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF