/* 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/. */ "use strict"; /* * Descriptor Actor that represents a Tab in the parent process. It * launches a WindowGlobalTargetActor in the content process to do the real work and tunnels the * data. * * See devtools/docs/backend/actor-hierarchy.md for more details. */ const { Actor } = require("resource://devtools/shared/protocol.js"); const { tabDescriptorSpec, } = require("resource://devtools/shared/specs/descriptors/tab.js"); const { connectToFrame, } = require("resource://devtools/server/connectors/frame-connector.js"); const lazy = {}; ChromeUtils.defineESModuleGetters(lazy, { PlacesUtils: "resource://gre/modules/PlacesUtils.sys.mjs", }); const { AppConstants } = ChromeUtils.importESModule( "resource://gre/modules/AppConstants.sys.mjs" ); const { createBrowserElementSessionContext, } = require("resource://devtools/server/actors/watcher/session-context.js"); loader.lazyRequireGetter( this, "WatcherActor", "resource://devtools/server/actors/watcher.js", true ); /** * Creates a target actor proxy for handling requests to a single browser frame. * Both and