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

[WebProfilerBundle] Fix infinite loop in JS#19803

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

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?master
Bug fix?yes (master only)
Tests pass?yes
LicenseMIT

For some reason, I ended up having this while loop infinitely.

var toolbarBlocks=document.querySelectorAll('.sf-toolbar-block');
for (var i=0; i<toolbarBlocks.length; i+=1) {
var toolbarBlocks=[].slice.call(document.querySelectorAll('.sf-toolbar-block'));
for (iintoolbarBlocks) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would leave the iteration with incrementori. On some browsers it can iterate on some unexpected properties inherited from prototype

@romainneutron
Copy link
Contributor

👍 LGTM

@nicolas-grekasnicolas-grekas merged commit68b6c32 intosymfony:masterSep 1, 2016
nicolas-grekas added a commit that referenced this pull requestSep 1, 2016
This PR was merged into the 3.2-dev branch.Discussion----------[WebProfilerBundle] Fix infinite loop in JS| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes (master only)| Tests pass?   | yes| License       | MITFor some reason, I ended up having this while loop infinitely.Commits-------68b6c32 [WebProfilerBundle] Fix infinite loop in JS
@nicolas-grekasnicolas-grekas deleted the profiler-fix branchSeptember 1, 2016 10:01
@fabpotfabpot mentioned this pull requestOct 27, 2016
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull requestMar 25, 2018
…s-grekas)This PR was merged into the 3.2-dev branch.Discussion----------[WebProfilerBundle] Fix infinite loop in JS| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes (master only)| Tests pass?   | yes| License       | MITFor some reason, I ended up having this while loop infinitely.Commits-------68b6c32 [WebProfilerBundle] Fix infinite loop in JS
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@romainneutron@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp