Problem/Motivation
Something else was broken in Drupal 10.1 -- CSS added by AJAX calls is broken, which snowballs into bigger problems including loss of critical site functionality.
Steps to reproduce
Enable Inline All CSS on a Drupal 10.1 site and attempt to edit a block containing a media library widget. Note that the AJAX response is missing data in the `add_css` command.
Proposed resolution
Temporarily, site owners may be able to use this patch to restore functionality, but I would like some experts that worked on the Drupal 10.1 aggregation changes to chime in with recommendations here...
Remaining tasks
TBD
User interface changes
TBD
API changes
TBD
Data model changes
TBD
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3410005-broken-ajax-4.patch | 6.22 KB | luke.leber |
Issue fork inline_all_css-3410005
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
luke.leberComment #3
catchThis looks like the right change to me - there's no harm if an AJAX request adds CSS as files since by definition it's already making the additional http request for the AJAX request itself.
Comment #4
luke.leberLet's see how the test bot likes this one...
Comment #5
luke.leberComment #6
malik.kotob commentedThe code from the latest patch looks sound (at least to me :D), and I can confirm that the code fixes the issues I was previously facing.
Comment #7
luke.leberComment #9
luke.leberThanks for everything here. 1.0.2 coming shortly.