forked from mirrors/gecko-dev
This is one piece of browser-session that we want to keep and moving it out allows more components to not depend on browser-session anymore. Multiple things are in this patch: * Storage related code moved from browser-session to browser-session-storage * BrowserStateSerializer gets split into BrowserStateWriter and BrowserStateReader * SessionManager.Snapshot has been removed and we now save and restore independened from SessionManager. We already saved BrowserState. Now we restore into a generic `BrowsingSession`. * feature-tab-collections no longer depends on browser-session. * All restore code now goes through TabsUseCases instead of SessionManager directly.
652 B
652 B
Android Components > Browser > Session-Storage
This component offers mechanisms for saving and restoring a browsing session.
Usage
Setting up the dependency
Use Gradle to download the library from maven.mozilla.org (Setup repository):
implementation "org.mozilla.components:browser-session-storage:{latest-version}"
License
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/