Bug 802677 - Eats CPU on idle with statically looking page
Eats CPU on idle with statically looking page
Product: Fedora
Classification: Fedora
Component: firefox (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Gecko Maintainer
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-03-13 05:27 EDT by Milan Crha
Modified: 2012-03-28 10:13 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-03-27 09:50:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Milan Crha 2012-03-13 05:27:08 EDT
When I open this URL in firefox
then after it's loaded, and I do not do anything with that page, just looking at it, then firefox eats up to 20% of my CPU. If I change tab, like back to this bug report filling, then firefox calms down and is back idle. Selecting the SDL tab makes firefox back to eating CPU state, even when the firefox itself is not focused window.

I'm wondering what is wrong with that site that it eats my CPU.

This is with firefox-10.0.1-1.fc16.x86_64.
Comment 1 Jan Horak 2012-03-27 09:50:24 EDT
There's a 'game' loop in javascript on this page (game.php):
Main.OnLoop = function() {
  while(Events.HasEvents()) {
    var Event = Events.GetEvent();
    console.log("Event : " + Event.Type + " - " + Event.Key);
  Main.Context.clearRect(0, 0, Main.Width, Main.Height);
  setTimeout(Main.OnLoop, 2);
So this is most likely wanted to make your CPU busy :).
Comment 2 Milan Crha 2012-03-28 10:13:51 EDT
Thanks for looking at it. I'm wondering why they are doing that, but that has definitely nothing to do with firefox.

Note You need to log in before you can comment on or make changes to this bug.