Closed Bug 466756 Opened 16 years ago Closed 16 years ago

"ASSERTION: FlushUserFontSet should have been called first" adding stylesheet and listboxbody

Categories

(Core :: CSS Parsing and Computation, defect)

x86
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9.1b3

People

(Reporter: jruderman, Assigned: dbaron)

References

Details

(4 keywords)

Attachments

(3 files)

Attached file testcase (deleted) —
###!!! ASSERTION: FlushUserFontSet should have been called first: '!mGetUserFontSetCalled', file /Users/jruderman/central/layout/base/nsPresContext.cpp, line 1715

This assertion was added in "patch 2-3-4" of 457821.

I'm hitting this frequently in my testing, but I can ignore it easily.
I suppose my inclination is to remove the assertion.

It's firing when we're constructing frames during a ContentAppended notification, but we're only actually calling FlushUserFontSet when we get a Flush_Layout, which we don't need to do to construct frames.  That said, on entering ContentAppended we don't do any flush at all.

bzbarsky, thoughts?
Attached patch patch (deleted) — Splinter Review
bzbarsky pointed out that I could use IsReflowLocked here...
Assignee: nobody → dbaron
Status: NEW → ASSIGNED
Attachment #350224 - Flags: superreview?(bzbarsky)
Attachment #350224 - Flags: review?(bzbarsky)
Attachment #350224 - Flags: superreview?(bzbarsky)
Attachment #350224 - Flags: superreview+
Attachment #350224 - Flags: review?(bzbarsky)
Attachment #350224 - Flags: review+
Comment on attachment 350224 [details] [diff] [review]
patch

Looks good.
You might want to use "#ifdef DEBUG" to avoid introducing an unused variable in non-debug builds.
Attachment #350224 - Flags: approval1.9.1?
Comment on attachment 350224 [details] [diff] [review]
patch

Fixes up an assertion from a patch landed yesterday.
Comment on attachment 350224 [details] [diff] [review]
patch

a191=beltzner
Attachment #350224 - Flags: approval1.9.1? → approval1.9.1+
http://hg.mozilla.org/mozilla-central/rev/65174df9c1bb
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b3
Keywords: fixed1.9.1
pushed: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/65174df9c1bb

verified FIXED using testcase on builds: 
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090505 Minefield/3.6a1pre ID:20090505030940

and

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b5pre) Gecko/20090505 Shiretoko/3.5b5pre ID:20090505030932
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: