[Content Security] Move inline event handlers into Stimulus controllers - #15080
Closed
manu-gurudath wants to merge 1 commit into
Closed
manu-gurudath wants to merge 1 commit into
manu-gurudath wants to merge 1 commit into
Conversation
Replaces every `on*=` attribute left in the views, plus the `href="javascript:void(0)"` links, with `data-action` bindings on small Stimulus controllers. The three `onsubmit="onSubmit()"` attributes on the user forms just go: nothing has defined `onSubmit` for a while. No CSP header change here: this is part of what `script-src` needs before it can drop `'unsafe-inline'`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A8Q14mneHoqkzhDrgWFBFN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superseded — split further into 15 smaller PRs, one per controller. Closing in favour of:
#15098, #15099, #15100, #15101, #15102, #15103, #15104, #15105, #15106, #15107, #15108, #15109, #15110, #15111, #15112
All fifteen are independent of each other.
Original: #14811
🤖 Generated with Claude Code
https://claude.ai/code/session_01A8Q14mneHoqkzhDrgWFBFN