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

Appearance settings

[WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages #23577

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2017
Merged

[WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages #23577

merged 1 commit into from
Jul 19, 2017

Conversation

ogizanagi
Copy link
Contributor

@ogizanagi ogizanagi commented Jul 18, 2017

Q A
Branch? 3.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #23566
License MIT
Doc PR N/A

@xabbuh xabbuh added this to the 3.3 milestone Jul 18, 2017
@@ -516,8 +516,8 @@

/* Prevents from disallowing clicks on links inside toggles */
var toggleLinks = document.querySelectorAll('.sf-toggle a');
for (var i = 0; i < toggleLinks.length; i++) {
addEventListener(toggleLinks[i], 'click', function(e) {
for (var j = 0; j < toggleLinks.length; j++) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not needed, right? Here i is not defined. I supposed you did that for consistency with the other file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch actually: There is no reason there is any difference between the two files. The right fix is that it shouldn't have been called within the above loop at the first place.

@fabpot
Copy link
Member

fabpot commented Jul 19, 2017

Thank you @ogizanagi.

@fabpot fabpot merged commit 295fda9 into symfony:3.3 Jul 19, 2017
fabpot added a commit that referenced this pull request Jul 19, 2017
…ception pages (ogizanagi)

This PR was merged into the 3.3 branch.

Discussion
----------

[WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages

| Q             | A
| ------------- | ---
| Branch?       | 3.3 <!-- see comment below -->
| Bug fix?      | yes
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | #23566 <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | N/A

Commits
-------

295fda9 [WebProfilerBundle][TwigBundle] Fix infinite js loop on exception pages
@ogizanagi ogizanagi deleted the fix/3.3/profiler_base_js branch July 19, 2017 05:37
@fabpot fabpot mentioned this pull request Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.