I have a very strange problem with Safari 3.1.2 and WebKit nightly. We
use a loader script, which inserts script tags dynamically into the
header. Now I observe the strange behavior that doing so seems to limit
the available call stack size. We load many scripts (> 300) in a loop
this way and run into an call stack size exceeded error.
I have reduced the problem to the attached HTML, where you can see the
effect. Still I have problems interpreting the results. Safari 3.1.2
shows me a decrease of the available call stack size, while it does not
really work in the Nightly. What is happening inside of Safari there?
Created attachment 22172 [details]
Created attachment 22173 [details]
Just tested your example. It starts with 498 here and ends with 308. Goes down with four in each iteration.
MacBook 2Ghz, 2GB
Mac OS X 10.5.4
Webkit rev 35067 dies with a stack overflow after the insertion of the second(!) script.
Firefox 3 reports 2998 on every message. No decreasing detectable.