Task #96002

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

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

Avoid inline JavaScript in backend update signals

Added by Oliver Hader 8 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
Backend JavaScript
Target version:
-
Start date:
2021-11-16
Due date:
% Done:

100%

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

Description

$this->pageRenderer->addJsFooterInlineCode('updateSignals', BackendUtility::getUpdateSignalCode());
top.document.dispatchEvent(new CustomEvent("typo3:pagetree:refresh"));

Currently failing CSP tests:

  • ext:impexp, import anything, will reload page tree
  • modify title of any page using FormEngine

Related issues

Related to TYPO3 Core - Task #96003: Avoid inline JavaScript in DispatchNotificationHookResolvedOliver Hader2021-11-16

Actions
Related to TYPO3 Core - Task #96012: Avoid inline JavaScript in OpendocsToolbarItem::updateNumberOfOpenDocsHookResolved2021-11-17

Actions
Related to TYPO3 Core - Task #96136: Deprecate inline JavaScript in backend update signalsResolved2021-11-29

Actions

Also available in: Atom PDF