gecko-dev/docshell
Mike Conley b9592e87ec Bug 1423200 - When setting up a new content viewer, if the previous PresShell was active, make the new one active too. r=mystor
It's possible to RenderLayers for a top-level content process DocShell without that DocShell being
active. When we do this, the PresShell for that DocShell becomes active, but the DocShell stays
inactive (to avoid accidentally playing paused video or clearing notifications in that DocShell).

If a DocShell is inactive but rendering its layers, it's possible for that DocShell to navigate.
When this occurs, a new PresShell can be created, which normally reads its active state off of
the DocShell. This means that the PresShell will become inactive even though the tab is supposed
to continue rendering its layers.

This patch checks for PresShell active state when setting up a new content viewer after a navigation,
and if the previous PresShell was active, makes the new PresShell active too.

MozReview-Commit-ID: KX9HvZJKqg2

--HG--
extra : rebase_source : aac1710a64b6e5f93b9874b2a15637d94a8ce5b6
2018-01-17 14:36:08 -08:00
..
base Bug 1423200 - When setting up a new content viewer, if the previous PresShell was active, make the new one active too. r=mystor 2018-01-17 14:36:08 -08:00
build Bug 1408044 - remove the 'about:' page from toolkit, r=dao 2017-11-16 17:16:12 +00:00
resources/content
shistory Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug 2018-01-12 17:52:52 -05:00
test Bug 1383876 - Part 2: Remove GroupedSHistory and Prerendering logic from JS code, r=freesamael 2018-01-12 17:52:54 -05:00
moz.build Bug 1350496 - add BUG_COMPONENT to docshell/* files. r=overholt 2017-04-09 05:43:52 -04:00