Problem/Motivation
See #3566536: [meta] eliminate core .module files
Proposed resolution
Move editor_filter_xss() functionality as a public method in element.editor service and deprecate the procedural function.
Remaining tasks
None.
User interface changes
None.
Introduced terminology
None.
API changes
New Drupal\editor\Element::filterXss() method.
Data model changes
None.
Issue fork drupal-3568144
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:
- 3568144-editorfilterxss-11.x
changes, plain diff MR !14954
- 3568144-editorfilterxss
changes, plain diff MR !14389
Comments
Comment #3
claudiu.cristeaReady for review
Comment #5
longwaveMerge conflict, and a question about the alter hook, because it seems a bit of a strange way of doing things now.
Comment #6
claudiu.cristeaAs it was discussed in Slack:
Read for review again.
Comment #7
nicxvan commentedI think this is ready.
I'm not seeing where that discussion happened in slack, but most refactoring is being postponed.
I related the issue.
Comment #8
nicxvan commentedSorry I forgot I toggled the status, I didn't mean to rtbc quite yet: the comment in the previous comment was meant to be a question.
I see your question in slack @claudiu.cristea, but I don't see a discussion, can you point it out?
If that's confirmed I think we can mark this as ready.
Comment #9
berdirIt was https://drupal.slack.com/archives/C079NQPQUEN/p1769955215025759, you commented there too. I'll add my suggestion in the thread to the other issue.
Comment #10
nicxvan commentedAh I didn't go back far enough!
Thanks!
Comment #12
longwaveCommitted and pushed this to main, but it doesn't cherry-pick back to 11.x; we need a backport MR.
Comment #14
claudiu.cristeaAdded a new MR !14954 against 11.x. Please review
Comment #16
nicxvan commentedThe backport mr is ready! I compared with the commit and it looks correct.
Comment #18
nicxvan commentedthe service id needs to be updated, there is a suggestion.
Comment #19
catchCommitted #3577279: Fix service call in EditorController xss to main.
Comment #20
claudiu.cristeaNormally, this is ready. But now I see failures in migrate tests. No idea about the source, this used to pass. Not sure if I only need to update the expectations
Comment #21
nicxvan commentedI rebased on 11.x, tests are green!
Comment #23
godotislateCommitted and pushed to 11.x and published CR. Thanks, everyone!