Open Bug 1354873 Opened 8 years ago Updated 3 years ago

don't synchronously restyle a document in response to pref changes when the document is in the bfcache

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: heycam, Unassigned)

Details

From bug 1351286 comment 10. In that bug, it looks like an nsPresContext is being informed of a pref change, which results in a synchronous restyle in nsPresContext::PreferenceChanged when it calls nsViewManager::SetWindowDimensions. We should defer that work somehow if the document is in the bfcache, since it's definitely wasted if the document never comes back out of the bfcache. (dbaron mentions that we should probably avoid doing this for background tabs, too.)
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.