Closed Bug 200177 Opened 21 years ago Closed 21 years ago

High CPU usage at iht.com (element repositioned continuously by js in very short intervals)

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mattwilkens, Assigned: asa)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030331
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030331

Visiting http://iht.com pegs CPU usage at about 70%.  Rendering of the pages
seems to be fine.  Hadn't seen this problem with 1.3; only noticed it after
moving to a 1.4a trunk build. 

Reproducible: Always

Steps to Reproduce:
Hm, there's some Javascript code running. Turn JS off and no CPU usage.
Didn't track it down yet.
I can reproduce this CPU load with 2003040405 on Linux.
And I also can't reproduce it with 1.3 final.

In the function placeNavBar (in ihtEventsWindow.js) a value is assigned to
obj.style.top where obj = document.getElementById("navTop"); This function is
called every 20ms.

If comment the assignments to obj.style.top out and the CPU load is gone.

There must have been a change anywhere which caused this since release of 1.3,
but don't know if it's in JS engine or somewhere else.

Status: UNCONFIRMED → NEW
Ever confirmed: true
This testcase should be helpful though the CPU load produced isn't that high.
But the problem is the same.
no CPU problem on win98 (moz2003040308)
Keywords: regression
Summary: High CPU usage at iht.com → High CPU usage at iht.com (element repositioned continuously by js in very short intervals)
Keywords: testcase
Might be related to layout bug http://bugzilla.mozilla.org/show_bug.cgi?id=172835

Still seems to happen with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.4) Gecko/20030529 [1.4RC1]
Blocks: 202567
I've seen this bug on versions through 1.4.1, but it seems to have gone away in
1.5 on Linux.  Perhaps someone can verify.
wfm per reporter's comment
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
*** Bug 213116 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: