Script cause KHTML to freeze
Yan Seiner
yan at seiner.com
Fri Apr 21 16:30:43 CEST 2006
yj wrote:
>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.
>
>
Please see the thread on Javascript and konq crash from mid to late
March of this year on this list....
There is a patch posted by Eva that may help.
--Yan
More information about the konq-e
mailing list