Update csp_extras to backport add_css from core 10.1

Created on 22 November 2022, about 2 years ago
Updated 8 April 2023, over 1 year ago

Problem/Motivation

A new add_js command was added to core 9.5 by #1988968: Drupal.ajax does not guarantee that "add new JS file to page" commands have finished before calling said JS , and add_css may be updated to a CSP-compatible implementation (although with a fallback until 11.0) in 10.1 📌 Improve Drupal\Core\Ajax\AddCssCommand to accept an array of CSS assets Fixed

Instead of the current custom implementation (that combines css and js into a single asset response), the module should backport the commands as necessary instead.

Proposed resolution

Update module classes & javascript to backport core code when necessary

Remaining tasks

API changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada gapple

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024