Bug 1581868 - Black page sometimes when restoring geckoview_example/fenix with webrender enabled. r=jnicol

Differential Revision: https://phabricator.services.mozilla.com/D55338
This commit is contained in:
Kris Taeleman
2019-12-02 08:01:37 +00:00
parent 7010aa569a
commit b896ac611c

View File

@@ -10452,6 +10452,19 @@ nsresult PresShell::SetIsActive(bool aIsActive) {
presContext->UpdateDynamicToolbarOffset(0);
}
}
// When the PresShell is being reactivated, make sure that we repaint
// This is needed for pages living in the parent process (like about:support).
// Content pages are refreshed by the BrowserHost, which does not exist
// in parent process pages
if (aIsActive) {
if (nsIFrame* root = GetRootFrame()) {
FrameLayerBuilder::InvalidateAllLayersForFrame(
nsLayoutUtils::GetDisplayRootFrame(root));
root->SchedulePaint();
}
}
#endif
return rv;