-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/playground: infinite loop in Edge and Firefox when embedded iframe styled with "display:none" #17199
Comments
I expect a simple test case is this:
or at least that certainly reproduces the problem in Firefox and I can't test Edge right this minute. The loop never terminates, because |
Can you give more details? It seems to work fine in Firefox for me. What is different for you? |
When the iframe containing the playground is hidden Edge/Firefox are reporting a height of Try https://output.jsbin.com/zakenaf/1 (based on #17199 (comment)). A falsey guard in the var linesH;
while ((linesH=linesDiv.height()) && linesH <= h) { |
Do you have the wrong bug tracker? This is the Go bug tracker. If you have a jQuery bug, file against jQuery? I'm not sure why you're linking to jsbin. How can I reproduce on https://play.golang.org/ with Firefox? |
If you view the source of the jsbin it is: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<iframe style="display: none" src="https://play.golang.org/p/ZGmpjak_7O"></iframe>
</body>
</html> The script on It appears to be custom code adapted from others for use on |
Okay, now we're getting to something that sounds like a bug report. You have to provide complete background info and repro steps. Jumping to saying what the fix is is useless if you don't identify the problem. |
👏 Thank you! |
CL https://golang.org/cl/33151 mentions this issue. |
CL https://golang.org/cl/33154 mentions this issue. |
I thought I'd replied to this, but I guess it didn't come through. This will go live once we release 1.8, in February. We can cherry-pick it to release branch 1.7 and deploy it if there's a good reason to do that. |
The while loop in
fillOutLines
of static/jquery-linedtextarea.js iscausing an infinite loop in Edge and Firefox browsers
The snippet is:
The text was updated successfully, but these errors were encountered: