Open Bug 1517850 Opened 3 years ago Updated 2 years ago
ensure layout is initialized soon enough during page load
currently we seem to delay Presshell/layout creation too much, at least because of https://searchfox.org/mozilla-central/rev/fef7f858efb695a76010b4c624da5277c16e95b3/modules/libpref/init/StaticPrefList.h#543-558
Summary: ensure layout is initialize soon enough during page load → ensure layout is initialized soon enough during page load
Can you clarify what the problem is & what change is needed here? A few specific notes below; if you could clarify any/all points, it'd help me better understand what you're getting at & how to triage this bug etc. (My confusion might be simply due to forgetting some details around document/viewer setup process; apologies if the answers seem obvious.) (In reply to Olli Pettay [:smaug] from comment #0) > currently we seem to delay Presshell/layout creation too much Delay them where? Too much for what? > at least because of > https://searchfox.org/mozilla-central/rev/fef7f858efb695a76010b4c624da5277c16e95b3/modules/libpref/init/StaticPrefList.h#543-558 I'm not immediately seeing the connection between those prefs & layout. They seem to be about network<-->parser interactions, right? (and they come from https://hg.mozilla.org/mozilla-central/rev/9732d2b16662 )
This is part of parser stuff and layout. Basically, at some point parser thread creates an op to tell the main thread to start layout for the page (and timers are for flushing ops from parser thread to main thread), then main thread at some point creates PresShell and initializes it (and painting still happens after a timeout, bug 1454529). And since RefreshDriver is needed to trigger all the vsync to happen, that is when vsync is even requested... and then we wait compositor to send the vsync and finally we'll paint.
And the point here is that we do initial paint often too late (something bas and djvj discovered). Bug 1514011 is also related to this, and probably others.
Depends on: 1454529
You need to log in before you can comment on or make changes to this bug.