Bug 1412195 - Track all changes to TabChild active state (r=bevis)

MozReview-Commit-ID: 7nQjquaM4sQ
This commit is contained in:
Bill McCloskey
2017-10-27 16:39:57 -07:00
parent ab670a3d3d
commit c5b6a5c394
3 changed files with 23 additions and 13 deletions

View File

@@ -6335,6 +6335,10 @@ nsDocShell::SetIsActive(bool aIsActive)
// Keep track ourselves.
mIsActive = aIsActive;
if (TabChild* tc = TabChild::GetFrom(this)) {
tc->OnDocShellActivated(aIsActive);
}
// Clear prerender flag if necessary.
if (mIsPrerendered && aIsActive) {
MOZ_ASSERT(mPrerenderGlobalHistory.get());