This is an automated email from the ASF dual-hosted git repository.

papegaaij pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit 72bd2c7547d155b41085057d311ff684e6bd439b
Merge: 8902c1ade8 5c339d6093
Author: Emond Papegaaij <[email protected]>
AuthorDate: Thu Nov 12 13:07:17 2026 +0100

    Merge pull request #1880 from 
Nexory/fix/add-opt-in-trusted-types-support-to-csp-and-the
    
    Add opt-in Trusted Types support to CSP and the Ajax scripts

 testing/wicket-js-tests/Gruntfile.js               |  10 +-
 .../org/apache/wicket/csp/CSPDirectiveTest.java    | 114 +++++++
 .../org/apache/wicket/csp/CSPTrustedTypesTest.java | 313 ++++++++++++++++++
 .../ajax/WicketAjaxJQueryResourceReference.java    |   8 +
 .../wicket/ajax/WicketAjaxResourceReference.java   |  19 ++
 .../wicket/ajax/res/js/wicket-ajax-jquery.js       | 144 ++++++++-
 .../org/apache/wicket/ajax/res/js/wicket-ajax.js   |  82 ++++-
 .../java/org/apache/wicket/csp/CSPDirective.java   |  82 +++++
 .../apache/wicket/csp/CSPHeaderConfiguration.java  |  65 ++++
 .../wicket/csp/ContentSecurityPolicySettings.java  |  50 +++
 .../org/apache/wicket/markup/html/form/Form.java   |  31 +-
 .../html/form/upload/MultiFileUploadField.js       |   2 +-
 wicket-core/src/test/js/data/ajax/trustedTypes.xml |  30 ++
 wicket-core/src/test/js/trusted-types-off.html     |  70 ++++
 wicket-core/src/test/js/trusted-types-off.js       | 174 ++++++++++
 wicket-core/src/test/js/trusted-types.html         |  75 +++++
 wicket-core/src/test/js/trusted-types.js           | 353 +++++++++++++++++++++
 .../wicket/examples/WicketExampleApplication.java  |   2 +-
 .../ajax/prototype/PrototypeApplication.java       |   6 +
 .../MyAuthenticatedWebApplication.java             |   1 +
 .../apache/wicket/examples/csp/NonceDemoPage.java  |   4 +-
 .../examples/resourcedecoration/HomePage.java      |   2 +-
 .../html/autocomplete/wicket-autocomplete.js       |   2 +-
 .../ajax/markup/html/form/upload/progressbar.js    |   2 +-
 .../src/main/asciidoc/security/security_6.adoc     |  15 +
 25 files changed, 1628 insertions(+), 28 deletions(-)

Reply via email to