Bug 24749

Summary: Hangs when loading
Product: WebKit Reporter: Morten Norby Larsen <morten.larsen>
Component: Page LoadingAssignee: Cameron Zwarich (cpst) <zwarich>
Status: RESOLVED FIXED    
Severity: Normal CC: emacemac7, zwarich
Priority: P2 Keywords: NeedsReduction
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://www.weekendavisen.dk/artikler/artikel/vi-er-her-alle-sammen-–-endnu
Attachments:
Description Flags
A shark time profile
none
Page source saved from Firefox
none
Partial reduction none

Description Morten Norby Larsen 2009-03-22 12:31:39 PDT
With the progress bar at about 40%, the page hangs and teh cursor turns into a spinning beachball.
Comment 1 Morten Norby Larsen 2009-03-22 12:33:54 PDT
Created attachment 28837 [details]
A shark time profile
Comment 2 Morten Norby Larsen 2009-03-22 12:53:12 PDT
Build: Version 4 Public Beta (5528.16, r41894)
Comment 3 Mark Rowe (bdash) 2009-03-22 21:18:35 PDT
It'd be worth attaching a version of the page in question in case it changes, perhaps by saving it from Firefox.
Comment 4 Morten Norby Larsen 2009-03-22 22:58:26 PDT
Created attachment 28848 [details]
Page source saved from Firefox

Oddly, the problem doesn't seem to manifest itself when read from the source files on disk.
Comment 5 Cameron Zwarich (cpst) 2009-03-22 23:04:13 PDT
The problem doesn't manifest because none of the style files or JS files load. Adding a <base> element makes it reproduce just fine. I'm going to assign this to myself and try to find a reduction. The problem is caused by layout triggered by getting the offsetWidth property of an element. There is a long section of <div> elements with identical styles. I suspect there is some quadratic (or worse) behaviour being triggered by the style.
Comment 6 Cameron Zwarich (cpst) 2009-03-23 00:38:06 PDT
Created attachment 28849 [details]
Partial reduction

Still has way too much JQuery.
Comment 7 Morten Norby Larsen 2009-09-11 09:28:34 PDT
I just tried the last test case, and in WebKit.app Version 4.0.3 (6531.9, r48276) it does not reproduce any more.

Suggest closing this bug.