Closed Bug 622314 Opened 13 years ago Closed 9 years ago

Hang with multiple <body link> elements

Categories

(Core :: CSS Parsing and Computation, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME
Tracking Status
b2g-v2.5 --- fixed

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: hang, testcase)

Attachments

(3 files)

      No description provided.
Attached file top of the hang sample
Hmm.  So the problem here is that resolving style for a <body> will map its attributes into style, and @link will trigger us to set the link color on the nsHTMLStyleSheet.  Which will notice that the link color is changing, if it is, and post a restyle for the root element.  Then we process that restyle, resolve style for the first body, then for the second... the effect is that we post another restyle for the root element.

So we get stuck in an infinite loop processing restyles.
Testcase no longer hangs on trunk.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: