Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[WebProfilerBundle] Render the toolbar stylesheet#58287
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
src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/WebProfilerBundle/Tests/Controller/ProfilerControllerTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
nice one 👍
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
7c9dd5a
toc36fcff
CompareThank you@smnandre. |
d83167d
intosymfony:7.2Uh oh!
There was an error while loading.Please reload this page.
alexislefebvre commentedDec 2, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This change breaks the style of the toolbar for some users: What about: 1.adding a parameter to use the “old” way? Update: never mind, a solution has been found: |
…xislefebvre)This PR was merged into the 7.2 branch.Discussion----------[WebProfilerBundle] fix loading of toolbar stylesheet| Q | A| ------------- | ---| Branch? | 7.2| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues |Fix#59045| License | MITIt looks like this PR-#58287Caused issues with some configurations:-#59045According to the thumb-up emoji on [this comment](#59045 (comment)) (I don’t have a better measurement of the impact), it affected at least 10 users, with various web servers.Proposals:1. do not use the `.css` file extension so that servers do not try to serve an actual file2. if we consider that the disappearance of the style of the profiler’s toolbar is a breaking change, the `.css` file extension could be added back with Symfony 8.0, with a note to help people upgrade (see the workarounds in the issue)Commits-------7fef930 fix: loading of WebProfilerBundle’s toolbar stylesheet
If the stylesheet is static why not just serve a static asset instead ? |
I guess because service a static asset would require to know its public path, which is harder to grant than a routed URL ? |
Render the (static) toolbar stylesheet separately from the (dynamic) toolbar content.
(avoid the 20ko inlined CSS injection on every page)