Open Bug 571959 Opened 11 years ago Updated 10 years ago
"ASSERTION: Why is the root in m
Dirty Roots already?" with audio in iframe
###!!! ASSERTION: Why is the root in mDirtyRoots already?: '!mDirtyRoots.Contains(rootFrame)', file /builds/moz2_slave/mozilla-central-macosx-debug/build/layout/base/nsPresShell.cpp, line 2654
All we need is an <audio controls> element in an iframe in a plain html document to trigger this. In PresShell::InitialReflow for the iframe we run the XBL constructors for the video controls (videocontrols.xml) this causes some frame reconstructs to be posted in the video controls and some flushes and when we do the insert for the reconstruct we get a FrameNeedsReflow for a frame whose reflow root is the rootframe. I don't know if there is anything we can do to stop XBL constructors from making the root frame dirty.
There isn't. Perhaps that assertion is just wrong and should be removed....
I can't reproduce this with the attached test case any more, but I'm still seeing this assertion from time to time.
You need to log in before you can comment on or make changes to this bug.