Open Bug 1148897 Opened 7 years ago Updated 2 years ago
Firefox freezes on a website due to too much recursion in JS script
See https://support.mozilla.org/en-US/kb/firefox-hangs-or-not-responding for general info. I cannot reproduce any such freeze with firefox-36.0.4-1.fc21.i686 on Fedora 21. Webconsole shows "SecurityError: The operation is insecure" and a counter rapidly increasing for http://print.wdr.de/2015-03/files/assets/common/ecommerce/cart.js though. Note that the upper right corner of the given link says "Basic HTML version".
Summary: Firefox freezes on a (popular german) website → Firefox freezes on a website
We(!) are able to reproduce this freeze on several (completely) different systems: - Windows 8.1 (64-Bit) - Two different systems with openSUSE 13.2 (64-Bit): One Intel Core i7 and one Core i5 - Fedora (don't know the exact system specs from my friend) - Ubuntu 14.04 (in Virtualbox) - openSUSE 13.2, 64-Bit with Firefox downloaded from Mozilla In Windows 8.1 Firefox freezes the whole system (I had to do a hard reset). Regarding the "Basic HTML version": Yes, that's right. The other version is the one with Flash. :) The "Basic HTML version" works in Chrome, btw, and should work in Firefox.
I'm able to reproduce the freeze with FF36/39 on Win 7. FF uses a ton of CPU (~40%) during rendering and the memory spikes.
Product: Firefox → Core
Summary: Firefox freezes on a website → Firefox freezes on a website due to too much recursion in JS script
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to Not doing reviews right now from comment #8) > and I'd be interested to know what depth values you get on Windows... On the 2015-03-30 Nightly in a clean profile (pasting the script in an otherwise blank .html file stored locally) I get the following values: 32-bit: 22555 or 22552 64-bit: 12932 or 12929 Results appear slightly non-deterministic, but those are the most common values.
And what about in Chrome on the same system?
Using the latest Chrome Canary from , which seems to always install the 64-bit version on my system regardless of which I choose to download: 15734 Using the latest Chromium snapshot from , which only appears to offer 32-bit builds for Windows: 31507 I don't know if these numbers are directly comparable, but they appear to be consistent across refreshes.  https://www.google.com/chrome/browser/canary.html?platform=win64  https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win/
Thanks. So at least on Windows this is all down to the perf difference, not differences in recursion depth.
just drive-by to explore the "too much recursion" issue. The specific URIs up there are not accessible anymore. Two recent issues with similar messages AND jQuery 1.12.4 https://github.com/webcompat/web-bugs/issues/16716 https://github.com/webcompat/web-bugs/issues/16732 (but not necessary related).
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.