gecko-dev/mobile
Jan Henning 238c91a232 Bug 1484001 - Avoid ending up with a null mRuntime after restoring state in GeckoView. r=snorp
If we don't have a saved session, we do nothing. If somebody called setSession
beforehand, we continue using that session, otherwise we create a fallback
session in onAttachedToWindow().

If we have a saved session and nobody called setSession, we use the saved
session. If the saved session was closed and doesn't have a runtime, we use the
default runtime as a fallback.

If we have both a saved session and somebody already called setSession, we
transfer what can be transferred from the saved session, unless the saved
session is closed and the session from setSession is open.
If the saved session was open, we use its runtime as well going forward (since
transferring the state from an open session transfers the window and the runtime
as well), otherwise we keep the old mRuntime.

Differential Revision: https://phabricator.services.mozilla.com/D4711

--HG--
extra : moz-landing-system : lando
2018-08-30 20:09:02 +00:00
..
android Bug 1484001 - Avoid ending up with a null mRuntime after restoring state in GeckoView. r=snorp 2018-08-30 20:09:02 +00:00
locales Bug 1486211 - Remove unused key browser.search.defaultenginename from region.properties r=mkaply 2018-08-28 13:14:27 +00:00