Closed Bug 577508 Opened 14 years ago Closed 14 years ago

HTML5 parser regresses bug 253951

Categories

(Core :: DOM: HTML Parser, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: bzbarsky, Assigned: hsivonen)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

The HTML5 parser's FlushPendingNotifications doesn't start layout on layout flushes.  As a result, bug 253951 is reintroduced.

I wish we had a way to write a test for this.  :(

Maybe we should think of a better way to fix that bug than flushing?
Not sure yet if this starts layout more often than necessary.
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
Priority: -- → P2
Comment on attachment 457871 [details] [diff] [review]
Make FlushPendingNotifications call nsContentSink::StartLayout

This early layout start is triggered on only two pages in the tp4 pageset, so I guess this code doesn't run too often to be a problem.
Attachment #457871 - Flags: review?(bzbarsky)
Comment on attachment 457871 [details] [diff] [review]
Make FlushPendingNotifications call nsContentSink::StartLayout

Oops. This patch causes unit test badness. :-(
Attachment #457871 - Flags: review?(bzbarsky)
How so?
(In reply to comment #4)
> How so?

The patch starts layout but doesn't flush ops. There are mochitests that want to read colors but get all white data back if layout has started before ops have been flushed.
blocking2.0: ? → final+
The same patch as before but dealing with yet another test that used a data: URL withou onload.
Attachment #457871 - Attachment is obsolete: true
Attachment #472721 - Flags: review?(bzbarsky)
Comment on attachment 472721 [details] [diff] [review]
Make FlushPendingNotifications call nsContentSink::StartLayout, run a test on onload

r=me
Attachment #472721 - Flags: review?(bzbarsky) → review+
http://hg.mozilla.org/mozilla-central/rev/353a0ee16d78
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: