Commit 2d8a41a
committed
bug symfony#53153 [WebProfilerBundle] Fix JS error when evaluating scripts (jderusse)
This PR was merged into the 5.4 branch.
Discussion
----------
[WebProfilerBundle] Fix JS error when evaluating scripts
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | no
| License | MIT
When a script tag without body (ie <script src="..."/>) is injected in the toolbar (this happened to me with some browser extension), the toolbar crashes with
```
Cannot read properties of null (reading 'nodeValue')
```
This PR asserts the script has a body before evaluating its content.
Commits
-------
22d7420 [WebProfilerBundle] Fix JS error when evaluating scriptsFile tree
1 file changed
+3
-1
lines changed- src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
551 | 553 | | |
552 | 554 | | |
553 | 555 | | |
| |||
0 commit comments