You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #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 scripts
0 commit comments