Skip to content

Conversation

@BalusC
Copy link
Contributor

@BalusC BalusC commented Aug 10, 2025

First step for jakartaee/faces#1590: convert all Mojarra-generated inline event handlers to attached event handlers so they are at least CSP compatible

inline event handlers to attached event handlers so they are at least
CSP compatible
@BalusC BalusC requested review from arjantijms and mnriem August 10, 2025 20:25
@BalusC BalusC marked this pull request as draft August 10, 2025 20:37
@BalusC
Copy link
Contributor Author

BalusC commented Aug 15, 2025

Entire 5.0 TCK passed, with only one adjusted test, so undrafting PR.

@jasondlee
Copy link
Contributor

What are the chances of backporting this behavior to 4.x? It seems like the spec changes are just to codify support for a CSP, right? Can we (and by that I probably mean me ;) backport these changes to the 4.x branches?

@BalusC
Copy link
Contributor Author

BalusC commented Sep 5, 2025

TCK would need update as well because Issue2439IT would fail on this change (fixed for TCK 5.0 here: jakartaee/faces#2055 )

@arjantijms would it be possible to fix this as well in the TCK for 4.1 or perhaps even 4.0 so we can backport this?

@BalusC BalusC merged commit 72374dc into master Sep 5, 2025
3 checks passed
@BalusC BalusC deleted the faces_issue_1590_convert_all_inline_event_handlers_to_attached_event_handlers branch September 5, 2025 12:47
@BalusC BalusC added this to the 5.0.0 milestone Sep 5, 2025
@jasondlee
Copy link
Contributor

TCK would need update as well because Issue2439IT would fail on this change (fixed for TCK 5.0 here: jakartaee/faces#2055 )

@arjantijms would it be possible to fix this as well in the TCK for 4.1 or perhaps even 4.0 so we can backport this?

FWIW, I was feeling ambitious last night, so I attempted to backport the changes. Short of one broken integration test, which may very well be environmental, I think they all applied fairly cleanly, if requiring fair bit of manual work. You can see the PR here: #5606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants