This is an automated email from the ASF dual-hosted git repository.
papegaaij pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
from 8902c1ade8 Merge pull request #1879 from
apache/dependabot/maven/org.codehaus.mojo-build-helper-maven-plugin-3.7.0
add 983ce5a697 Add opt-in Trusted Types support to CSP and the Ajax scripts
add afcb17a4d1 Make the Trusted Types client opt-in and run scripts in
replaced markup
add 5c339d6093 Route MultiSelector's list through the policy and accept
trusted-types *
new 72bd2c7547 Merge pull request #1880 from
Nexory/fix/add-opt-in-trusted-types-support-to-csp-and-the
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
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 ++
.../src/test/js/trusted-types-off.html | 54 ++--
wicket-core/src/test/js/trusted-types-off.js | 174 ++++++++++
.../src/test/js/trusted-types.html | 60 ++--
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, 1546 insertions(+), 79 deletions(-)
create mode 100644
wicket-core-tests/src/test/java/org/apache/wicket/csp/CSPTrustedTypesTest.java
create mode 100644 wicket-core/src/test/js/data/ajax/trustedTypes.xml
copy wicket-extensions/src/test/js/veil.html =>
wicket-core/src/test/js/trusted-types-off.html (62%)
create mode 100644 wicket-core/src/test/js/trusted-types-off.js
copy wicket-extensions/src/test/js/palette.html =>
wicket-core/src/test/js/trusted-types.html (54%)
create mode 100644 wicket-core/src/test/js/trusted-types.js