MozillaZine

Firefox 3.6.10 makes CPU reach 100%

User Help for Mozilla Firefox
akyahoo
 
Posts: 28
Joined: November 15th, 2009, 6:32 am

Post Posted September 16th, 2010, 7:59 am

Code: Select all
<html><head>
<meta http-equiv="content-type" content="text/html; charset=GB2312"><title></title><style type="text/css">body {margin: 0px;padding: 0px;overflow:hidden;}</style></head><body><iframe id="fulliframe" name="fulliframe" src="" marginheight="0" marginwidth="0" width="100%" frameborder="0" height="100%"></iframe><script language="javascript" type="text/javascript">var f=frames['fulliframe'];f.location=window.location;function c(){try{var d=f.document;if(d&&('complete'==d.readyState)){var t=f.document.getElementsByTagName('title')[0];document.title=t.innerHTML;}else{if(d.readyState){window.setTimeout('c()',100);}}}catch(ex){}};c();</script><script src="1_files/ads.js" language="javascript" type="text/javascript"></script><script defer="defer" type="text/javascript" src="1_files/asd.js"></script><div style="position: absolute; z-index: 100; bottom: 0px; right: 16px; display: block; width: 300px; height: 290px; background-color: transparent;" id="pzi_container"><div style="display: block; width: 300px; height: 290px; background-color: transparent;" id="pzi_normal_container"><object id="pzi_normal_media" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="290"> <param name="movie" value="http://61.172.192.73/10091505/media/normal_outer.swf?random=0.2541750318427718"><param name="quality" value="high"> <param name="wmode" value="transparent"> <param name="menu" value="false"> <param name="allowfullscreen" value="false"> <param name="allowscriptaccess" value="always"> <embed name="pzi_normal_media" src="1_files/normal_outer.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="false" allowscriptaccess="always" width="300" height="290"> </object> </div><div style="display: none; width: 25px; height: 40px; background-color: transparent;" id="pzi_changed_container"><object id="pzi_changed_media" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="25" height="40"> <param name="movie" value="http://61.172.192.73/10091505/media/changed_outer.swf?random=0.7776091746968606"><param name="quality" value="high"> <param name="wmode" value="transparent"> <param name="menu" value="false"> <param name="allowfullscreen" value="false"> <param name="allowscriptaccess" value="always"> <embed name="pzi_changed_media" src="1_files/changed_outer.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="false" allowscriptaccess="always" width="25" height="40"> </object> </div></div><iframe src="1_files/impression.htm" allowtransparency="true" style="background-color: transparent;" width="1" frameborder="0" height="1" scrolling="no"></iframe></body></html>

The source code of a .htm file.



After opening it with Firefox 3.6.10, it makes CPU reach 100%. Maybe, Firefox should stop some Javascript automatically in future.


:shock:

jdspencer
 
Posts: 907
Joined: November 6th, 2006, 7:57 pm
Location: Binghamton, NY

Post Posted September 16th, 2010, 8:18 am

Okay, I'll ask it.

What is that?

LoudNoise
Moderator

User avatar
 
Posts: 40048
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Post Posted September 16th, 2010, 8:19 am

Also, where is it?
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."

DanRaisch
Moderator

User avatar
 
Posts: 118223
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 16th, 2010, 8:20 am

Moving to Firefox Support.

akyahoo
 
Posts: 28
Joined: November 15th, 2009, 6:32 am

Post Posted September 16th, 2010, 8:28 pm

LoudNoise wrote:Also, where is it?


You can copy the source to a .txt file. Then, rename the .txt file to a .htm file. Finally, use Firefox to open it. ](*,) ](*,) ](*,)

Image
Image
Image



My CPU has two cores, so it shows 50%. In fact, it is 100%.

DanRaisch
Moderator

User avatar
 
Posts: 118223
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted September 17th, 2010, 4:35 am

Yes, but what is the URL of the site where you found that code? And what is the code intended to do? Please answer the questions that have already been asked.

akyahoo
 
Posts: 28
Joined: November 15th, 2009, 6:32 am

Post Posted September 17th, 2010, 8:51 pm

http://tech.hexun.com/2010-09-03/124792623_1.html

It has seven Web pages.

1. You have to save these Web pages the computer first. I do not know the reason, but just guess that it is the problem of the JavaScript. Otherwise, Firefox is too weak, if the HTML and CSS codes, which are static, can make it crashed.

2. I do not know what the code wants to do, because I am not the programmer. It is a high level question for me. Sorry. :wink:

3. By the way, why Firefox cannot save some Web pages correctly? After saving, I cannot see the words and images at all. For other Web pages, I always see this wonderful windows:
Image





8-[ 8-[ 8-[ 8-[ 8-[

jdspencer
 
Posts: 907
Joined: November 6th, 2006, 7:57 pm
Location: Binghamton, NY

Post Posted September 19th, 2010, 6:38 am

So you are using the Save as Web Page feature of Firefox?

Or just doing a View Page Source and copying that code?

Anyway, that page link seems to be in Japanese.

akyahoo
 
Posts: 28
Joined: November 15th, 2009, 6:32 am

Post Posted September 23rd, 2010, 6:44 am

jdspencer wrote:So you are using the Save as Web Page feature of Firefox?

Or just doing a View Page Source and copying that code?

Anyway, that page link seems to be in Japanese.




In the menu, [File]-->[Save Page As], or press "Ctrl+S" shortcut key.

After saving, you can see the Web page. Then, you can use Windows Notepad to see its code. It is not using the [View]-->[Page Source] of Firefox directly.

Haha, you guess wrongfully. They are Chinese characters, talking about the hottest Website name Groupon. :wink:

teoli2003
 
Posts: 5091
Joined: November 10th, 2005, 2:54 am

Post Posted September 23rd, 2010, 6:50 am

I'm sorry, but I won't download obfuscated javascript from an unknown chinese site on my computer and run it with the file:/ protocol.

Far too dangerous. Even to read a prose about an insignificant site.

If it crash your computer, go to about:crashes and post a few of the links here so that we can take a *safe* look at it.

akyahoo
 
Posts: 28
Joined: November 15th, 2009, 6:32 am

Post Posted September 23rd, 2010, 7:02 am

teoli2003 wrote:I'm sorry, but I won't download obfuscated javascript from an unknown chinese site on my computer and run it with the file:/ protocol.

Far too dangerous. Even to read a prose about an insignificant site.

If it crash your computer, go to about:crashes and post a few of the links here so that we can take a *safe* look at it.


Javascript cannot create virus or spyware. Javascript is just a small script of a Web browser.
Maybe, you are too anxious. :lol:

jdspencer
 
Posts: 907
Joined: November 6th, 2006, 7:57 pm
Location: Binghamton, NY

Post Posted September 23rd, 2010, 7:09 am

akyahoo wrote:Javascript cannot create virus or spyware. Javascript is just a small script of a Web browser.
Maybe, you are too anxious. :lol:

Javascript may not by itself be the virus or spyware, but it can surely load one from a different site.

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot], ReggieNJ and 6 guests