[Webkit-unassigned] [Bug 12941] JavaScript hangs Safari (&nightly)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 2 05:44:59 PST 2007


------- Comment #5 from webkit at fi-works.info  2007-03-02 05:44 PDT -------
(In reply to comment #4)
> while(txt.indexOf('<'+'?xml ') != -1)
>         txt.replace(/^<\?xml .*?>/i,'');
> This replace() doesn't really remove the XML declaration, so it's an infinite
> loop. Firefox has the same behavior.

That may be, but single-stepping with Drosera never returns from the second

I'd have understood if I could see the the loop between the two lines while
single-stepping. This way it just seems to go off to outer space inside the
replace method. Might be a Drosera issue though.

> > Now, Firefox has an ability to interrupt scripts with infinite loops, and
> Safari does not have it. This feature has been already implemented in WebKit
> back-end, but we are waiting for a Safari release that will enable it - this is
> why the problem still happens even with the nightlies.

That would probably be a good idea to avoid DOS attacks from malicous websites.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list