Files
tubestation/browser/components/sessionstore/moz.build
Sam Foster 3bc128efc2 Bug 1905958 - Add a JSON schema for browser session state and a way to validate against it. r=sessionstore-reviewers,sidebar-reviewers,nsharpley,dwalker
- Add the schema itself with definitions for the various data structures the serialized browser
  session state contains
- Add means of validating the current state against the schema with a new SessionStore.vaidateState
  method
- Add a smoke test to the schema by validating against sample session restore document
- Fix an issue in SidebaState which was returning undefined for some property values which isn't valid JSON

Differential Revision: https://phabricator.services.mozilla.com/D246163
2025-05-01 15:21:00 +00:00

46 lines
1.3 KiB
Python

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.
XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.toml"]
BROWSER_CHROME_MANIFESTS += ["test/browser.toml", "test/browser_oldformat.toml"]
MARIONETTE_MANIFESTS += ["test/marionette/manifest.toml"]
JAR_MANIFESTS += ["jar.mn"]
EXTRA_JS_MODULES.sessionstore = [
"GlobalState.sys.mjs",
"PageWireframes.sys.mjs",
"RecentlyClosedTabsAndWindowsMenuUtils.sys.mjs",
"RunState.sys.mjs",
"session.schema.json",
"SessionCookies.sys.mjs",
"SessionFile.sys.mjs",
"SessionLogger.sys.mjs",
"SessionMigration.sys.mjs",
"SessionSaver.sys.mjs",
"SessionStartup.sys.mjs",
"SessionStore.sys.mjs",
"SessionStoreFunctions.sys.mjs",
"SessionWriter.sys.mjs",
"StartupPerformance.sys.mjs",
"TabAttributes.sys.mjs",
"TabGroupState.sys.mjs",
"TabState.sys.mjs",
"TabStateCache.sys.mjs",
"TabStateFlusher.sys.mjs",
]
XPCOM_MANIFESTS += [
"components.conf",
]
TESTING_JS_MODULES += [
"test/SessionStoreTestUtils.sys.mjs",
]
with Files("**"):
BUG_COMPONENT = ("Firefox", "Session Restore")