Open Bug 451839 Opened 16 years ago Updated 2 years ago

Closing large html file that does DOM manipulation at startup is very slow - closing errors out with "unresponsive script

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: nicolasweber, Unassigned)

References

()

Details

(Keywords: perf)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

The attached file uses jquery to hide some DOM elements at load time. When the page is closed, Firefox becomes unresponsive until the "Stop script?" dialog appears. However, no script is running when the tab is closed.

Closing the file in Safari is instantaneous (but loading takes much longer).

Furthermore, Firefox needs about 10% cpu when this page is loaded, even if it's just open in the background.

Reproducible: Always

Steps to Reproduce:
1. Open the attached file
2. Wait until it's done loading
3. Hit the tab close button
Actual Results:  
Firefox hangs until the "Stop script?" dialog appears.

Expected Results:  
Firefox should just close the page.
Turns out the testcase is too large to be an attachment. You can find it at http://amnoid.de/tmp/globals.html , but please be gentle to my bandwidth.
I don't know what to make of this, or how to classify it.

But it also happens on Windows and Linux, so it's not just an OS X
bug.

By the way, I downloaded the testcase
(http://amnoid.de/tmp/globals.html) to my computer and had no problems
running all my tests from there ... so there's no need to fry Nico's
bandwidth :-)
OS: Mac OS X → All
Hardware: Macintosh → All
also Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Severity: normal → major
Keywords: perf
Summary: Closing large html file that does DOM manipulation at startup is very slow → Closing large html file that does DOM manipulation at startup is very slow - closing errors out with "unresponsive script
Version: unspecified → Trunk
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100413 Firefox/3.6.4

I still see this.
Carlos, I think this is much improved in newer versions. Do you agree?

using current trunk on windows 7 64 bit, it takes ~9 seconds to load, no unresponsive script message. And about 2 seconds to close
Severity: major → minor
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.