Name Description Size Coverage
Errors.sys.mjs @param {(string|Error)=} x Optional string describing error situation or Error instance to propagate. 2572 98 %
EventsDispatcher.sys.mjs Helper to listen to events which rely on SessionData. In order to support the EventsDispatcher, a module emitting events should subscribe and unsubscribe to those events based on SessionData updates and should use the "event" SessionData category. 8079 97 %
MessageHandler.sys.mjs A ContextDescriptor object provides information to decide if a broadcast or a session data item should be applied to a specific MessageHandler context. @typedef {object} ContextDescriptor @property {ContextDescriptorType} type The type of context @property {string=} id Unique id of a given context for the provided type. For ContextDescriptorType.All, id can be omitted. For ContextDescriptorType.TopBrowsingContext, the id should be the browserId corresponding to a top-level browsing context. For ContextDescriptorType.UserContext, the id should be the platform user context id. 12564 94 %
MessageHandlerRegistry.sys.mjs Map of MessageHandler type to MessageHandler subclass. 7469 86 %
Module.sys.mjs Create a new module instance. @param {MessageHandler} messageHandler The MessageHandler instance which owns this Module instance. 3789 72 %
ModuleCache.sys.mjs Defines the hierarchy between MessageHandler layers. The keys of this map are a type of MessageHandler, and the value is the type of the parent MessageHandler. For instance at the moment "windowglobal" has "root" as parent, but if we introduce an intermediary "process" layer for performance reasons, we would instead define: - "windowglobal" -> "process" - "process" -> "root" 10537 89 %
RootMessageHandler.sys.mjs A RootMessageHandler is the root node of a MessageHandler network. It lives in the parent process. It can forward commands to MessageHandlers in other layers (at the moment WindowGlobalMessageHandlers in content processes). 7158 97 %
RootMessageHandlerRegistry.sys.mjs In the parent process, only one Root MessageHandlerRegistry should ever be created. All consumers can safely use this singleton to retrieve the Root registry and from there either create or retrieve Root MessageHandler instances for a specific session. 808 100 %
sessiondata 98 %
test -
transports 91 %
WindowGlobalMessageHandler.sys.mjs A WindowGlobalMessageHandler is dedicated to debugging a single window global. It follows the lifecycle of the corresponding window global and will therefore not survive any navigation. This MessageHandler cannot forward commands further to other MessageHandlers and represents a leaf node in a MessageHandler network. 7471 97 %