Bug 8015 - www.gcc.org uses SLOW Javascript with Safari
Summary: www.gcc.org uses SLOW Javascript with Safari
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Evangelism (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.gcc.org
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-27 09:46 PST by Alexey Proskuryakov
Modified: 2007-10-30 06:05 PDT (History)
2 users (show)

See Also:


Attachments
Sample (267.86 KB, text/plain)
2006-03-27 09:47 PST, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2006-03-27 09:46:24 PST
http://www.gcc.org freezes Safari, reproducible with stock 10.4.5 or ToT.
Comment 1 Alexey Proskuryakov 2006-03-27 09:47:05 PST
Created attachment 7338 [details]
Sample
Comment 2 Geoffrey Garen 2006-03-27 10:19:26 PST
Infinite for loop in JavaScript.

270 Thread_0f0f
...
270 KJS::SourceElementsNode::execute(KJS::ExecState*)
264 KJS::ForNode::execute(KJS::ExecState*)

Downgrading to P2 because the general issue of being able to cancel run-away JavaScript is a separate P1 in Radar, so the unique issue here is just a compatibility bug, not a hang.
Comment 3 Alexey Proskuryakov 2006-12-13 09:44:38 PST
Actually, it doesn't actually freeze - it just takes several minutes to successfully open.

The site sends some special ultra-slow code to Safari; spoofing the UA makes it work fast, and without any immediately visible issues (even with shipping Safari).

menu.js:
scriptNo=(nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1)));
Comment 4 Alexey Proskuryakov 2007-10-30 06:05:25 PDT
I can no longer reproduce this (and the site has a new design).