Script cause KHTML to freeze
yj
yunjnz at yahoo.com
Fri Apr 21 07:35:42 CEST 2006
Hi, I've got the problem's cause but I still don't
know how to solve this problem,
The following are codes copied from the sites which
will cause "KHTML freeze":
1.
oDiv.style.right = x + "px";
oDiv.style.top = y + "px";
2.
function m_s(){var n=new Date().getTime();var
c=escape(n*1000+Math.round(Math.random()*1000));
with(document){if(cookie.indexOf("SUV=")<0)if(domain.indexOf(".sohu.com")>0)cookie="SUV="+c+";path=/;expires=Sun,
29 July 2046 00:00:00 UTC;domain=sohu.com";
else write("<scr"+"ipt type='text/javascript'
src='http://js.sohu.com/suv/"+c+"'></scr"+"ipt>");
if(top.location==self.location||domain.indexOf("mappage.go2map.com")>=0||domain.indexOf("partner.go2map.com")>=0)write("<scr"+"ipt
src='http://pv.sohu.com/pv.gif"+"?t?="+c+"?r?="+referrer+"'></scr"+"ipt>");}}
var spv;if(!spv)m_s();spv=1;
The above 2 cases will cause "KHTML freeze" in my
embedded system,
can you help me?
thank you and best regards,
Sean.
--- Luciano Montanaro <mikelima at cirulla.net> wrote:
> On Wednesday 19 April 2006 11:44, Eva Brucherseifer
> wrote:
> > Hi Luciano,
> >
> > actually we have also problems with too long JS
> execution on an ARM with
> > current trunk. So it seems we need to extend
> something. Do you have a
> > hint on where to search?
>
> The "guard dog" is implemented in
> khtml/ecma/kjs_proxy.{h,cpp}.
>
> You may try changing the default values in the
> start() method of KJSGuard.
> If I read correctly, the first alert is currently
> triggered after 5000 ms,
> and after the first, every 10000 ms.
>
> Luciano
>
> >
> > Thanks,
> > eva
> >
>
>
> --
> ÅÅÄīåñø Montanaro //
> \\ //
> \x/ www.cirulla.net
> _______________________________________________
> konq-e mailing list
> konq-e at kde.org
> https://mail.kde.org/mailman/listinfo/konq-e
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the konq-e
mailing list