Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
nicolas-grekas merged 1 commit intosymfony:6.3fromohader:var-dumper/js-cleanup
May 16, 2023

Conversation

@ohader
Copy link
Contributor

QA
Branch?6.3
Bug fix?no
New feature?no
Deprecations?no
Ticketsnone
LicenseMIT

The dynamic<style> element in the JavaScript variablerefStyle can be replaced by static CSS and element states.
The new rule.sf-dump-hover:hover substitutes JavaScript event handling formouseover events.

This is a preparation to have the possibility to assignnonce HTML attributes to inline<script> and<style> nodes, e.g. shown as proof-of-concept at
https://review.typo3.org/c/Packages/TYPO3.CMS/+/78512/2/typo3/sysext/adminpanel/Classes/Utility/HtmlDumper.php

@carsonbot
Copy link

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:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

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!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@ohaderohaderforce-pushed thevar-dumper/js-cleanup branch fromc1aa788 tobeb090eCompareMay 14, 2023 14:01
@nicolas-grekas
Copy link
Member

Thank you@ohader.

ohader reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas merged commit825fd03 intosymfony:6.3May 16, 2023
@ohaderohader deleted the var-dumper/js-cleanup branchMay 16, 2023 14:11
reviewtypo3org pushed a commit to TYPO3/typo3 that referenced this pull requestJun 26, 2023
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>
TYPO3IncTeam pushed a commit to TYPO3-CMS/adminpanel that referenced this pull requestJun 26, 2023
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>
TYPO3IncTeam pushed a commit to TYPO3-CMS/frontend that referenced this pull requestJun 26, 2023
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>
reviewtypo3org pushed a commit to TYPO3/typo3 that referenced this pull requestJun 26, 2023
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>
TYPO3IncTeam pushed a commit to TYPO3-CMS/adminpanel that referenced this pull requestJun 26, 2023
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>
TYPO3IncTeam pushed a commit to TYPO3-CMS/frontend that referenced this pull requestJun 26, 2023
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>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

3 participants

@ohader@carsonbot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp