Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[VarDumper] Reduce stylesheet assignments via JavaScript inHtmlDumper#49977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedApr 8, 2023
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
Uh oh!
There was an error while loading.Please reload this page.
beb090e to53046a3Comparenicolas-grekas commentedMay 16, 2023
Thank you@ohader. |
The admin panel uses Symfony's `HtmlDumper` to output data - which isadding inline JavaScript and StyleSheet elements. To be compatible withCSP those elements need to be allowed with a nonce attribute.This change relies on a merged pull request for Symfony v6.3:symfony/symfony#49977Executed commands:composer req symfony/var-dumper:^6.3composer req symfony/var-dumper:^6.3 \ -d typo3/sysext/adminpanel --no-updateResolves: #100456Releases: main, 12.4Change-Id: I7fcea196107959db85257c7d735f85a9e78839d2Reviewed-on:https://review.typo3.org/c/Packages/TYPO3.CMS/+/78512Reviewed-by: Georg Ringer <georg.ringer@gmail.com>Tested-by: Benni Mack <benni@typo3.org>Reviewed-by: Benni Mack <benni@typo3.org>Tested-by: Georg Ringer <georg.ringer@gmail.com>Tested-by: core-ci <typo3@b13.com>
The admin panel uses Symfony's `HtmlDumper` to output data - which isadding inline JavaScript and StyleSheet elements. To be compatible withCSP those elements need to be allowed with a nonce attribute.This change relies on a merged pull request for Symfony v6.3:symfony/symfony#49977Executed commands:composer req symfony/var-dumper:^6.3composer req symfony/var-dumper:^6.3 \ -d typo3/sysext/adminpanel --no-updateResolves: #100456Releases: main, 12.4Change-Id: I7fcea196107959db85257c7d735f85a9e78839d2Reviewed-on:https://review.typo3.org/c/Packages/TYPO3.CMS/+/78512Reviewed-by: Georg Ringer <georg.ringer@gmail.com>Tested-by: Benni Mack <benni@typo3.org>Reviewed-by: Benni Mack <benni@typo3.org>Tested-by: Georg Ringer <georg.ringer@gmail.com>Tested-by: core-ci <typo3@b13.com>
The admin panel uses Symfony's `HtmlDumper` to output data - which isadding inline JavaScript and StyleSheet elements. To be compatible withCSP those elements need to be allowed with a nonce attribute.This change relies on a merged pull request for Symfony v6.3:symfony/symfony#49977Executed commands:composer req symfony/var-dumper:^6.3composer req symfony/var-dumper:^6.3 \ -d typo3/sysext/adminpanel --no-updateResolves: #100456Releases: main, 12.4Change-Id: I7fcea196107959db85257c7d735f85a9e78839d2Reviewed-on:https://review.typo3.org/c/Packages/TYPO3.CMS/+/78512Reviewed-by: Georg Ringer <georg.ringer@gmail.com>Tested-by: Benni Mack <benni@typo3.org>Reviewed-by: Benni Mack <benni@typo3.org>Tested-by: Georg Ringer <georg.ringer@gmail.com>Tested-by: core-ci <typo3@b13.com>
The admin panel uses Symfony's `HtmlDumper` to output data - which isadding inline JavaScript and StyleSheet elements. To be compatible withCSP those elements need to be allowed with a nonce attribute.This change relies on a merged pull request for Symfony v6.3:symfony/symfony#49977Executed commands:composer req symfony/var-dumper:^6.3composer req symfony/var-dumper:^6.3 \ -d typo3/sysext/adminpanel --no-updateResolves: #100456Releases: main, 12.4Change-Id: I7fcea196107959db85257c7d735f85a9e78839d2Reviewed-on:https://review.typo3.org/c/Packages/TYPO3.CMS/+/79204Tested-by: core-ci <typo3@b13.com>Tested-by: Oliver Hader <oliver.hader@typo3.org>Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
The admin panel uses Symfony's `HtmlDumper` to output data - which isadding inline JavaScript and StyleSheet elements. To be compatible withCSP those elements need to be allowed with a nonce attribute.This change relies on a merged pull request for Symfony v6.3:symfony/symfony#49977Executed commands:composer req symfony/var-dumper:^6.3composer req symfony/var-dumper:^6.3 \ -d typo3/sysext/adminpanel --no-updateResolves: #100456Releases: main, 12.4Change-Id: I7fcea196107959db85257c7d735f85a9e78839d2Reviewed-on:https://review.typo3.org/c/Packages/TYPO3.CMS/+/79204Tested-by: core-ci <typo3@b13.com>Tested-by: Oliver Hader <oliver.hader@typo3.org>Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
The admin panel uses Symfony's `HtmlDumper` to output data - which isadding inline JavaScript and StyleSheet elements. To be compatible withCSP those elements need to be allowed with a nonce attribute.This change relies on a merged pull request for Symfony v6.3:symfony/symfony#49977Executed commands:composer req symfony/var-dumper:^6.3composer req symfony/var-dumper:^6.3 \ -d typo3/sysext/adminpanel --no-updateResolves: #100456Releases: main, 12.4Change-Id: I7fcea196107959db85257c7d735f85a9e78839d2Reviewed-on:https://review.typo3.org/c/Packages/TYPO3.CMS/+/79204Tested-by: core-ci <typo3@b13.com>Tested-by: Oliver Hader <oliver.hader@typo3.org>Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
The dynamic
<style>element in the JavaScript variablerefStylecan be replaced by static CSS and element states.The new rule
.sf-dump-hover:hoversubstitutes JavaScript event handling formouseoverevents.This is a preparation to have the possibility to assign
nonceHTML attributes to inline<script>and<style>nodes, e.g. shown as proof-of-concept athttps://review.typo3.org/c/Packages/TYPO3.CMS/+/78512/2/typo3/sysext/adminpanel/Classes/Utility/HtmlDumper.php