devtools/shared/specs/moz.build
author Luca Greco <lgreco@mozilla.com>
Tue, 21 Mar 2017 15:55:35 +0100
changeset 579749 c786ebbd4598d836bf3c9347cdf6906b65baa663
parent 556460 846d5472246fd8a28a886e191f91dd287d02c66a
child 579839 293882a12e97b55a3ec1b60cbf1a81d0e9fccc8e
permissions -rw-r--r--
Bug 1302702 - Make WebExtension Addon Debugging oop-compatible. This patch applies all the changes needed to the devtools actors and the toolbox-process-window, to be able to debug a webextension running in an extension child process (as well as a webextension running in the main process). The devtools actor used to debug a webextension is splitted into 3 actors: - the WebExtensionActor is the actor that is created when the "root.listTabs" RDP request is received, it provides the addon metadata (name, icon and addon id) and two RDP methods: - reload: used to reload the addon (e.g. from the "about:debugging#addons" page) - connectAddonDebuggingActor: which provides the actorID of the actor that is connected to the process where the extension is running (used by toolbox-process-window.js to connect the toolbox to the needed devtools actors, e.g. console, inspector etc.) - the WebExtensionParentActor is the actor that connects to the process where the extension is running and ensures that a WebExtensionChildActor instance is created and connected (this actor is only the entrypoint to reach the WebExtensionChildActor, and so it does not provide any RDP request on its own, it only connect itself to its child counterpart and then it returns the RDP "form" of the child actor, and the client is then connected directly to the child actor) - the WebExtensionChildActor is the actor that is running in the same process of the target extension, and it provides the same requestTypes of a tab actor. By splitting the WebExtensionActor from the WebExtensionParentActor, we are able to prevent the RemoteDebuggingServer to connect (and create instances of the WebExtensionChildActor) for every addon listed by a root.listAddons() request. MozReview-Commit-ID: L1vxhA6xQkD

# -*- 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/.

DevToolsModules(
    'actor-registry.js',
    'addons.js',
    'animation.js',
    'breakpoint.js',
    'call-watcher.js',
    'canvas.js',
    'css-properties.js',
    'csscoverage.js',
    'device.js',
    'emulation.js',
    'environment.js',
    'eventlooplag.js',
    'frame.js',
    'framerate.js',
    'gcli.js',
    'heap-snapshot-file.js',
    'highlighters.js',
    'inspector.js',
    'layout.js',
    'memory.js',
    'node.js',
    'performance-entries.js',
    'performance-recording.js',
    'performance.js',
    'preference.js',
    'profiler.js',
    'promises.js',
    'reflow.js',
    'script.js',
    'source.js',
    'storage.js',
    'string.js',
    'styleeditor.js',
    'styles.js',
    'stylesheets.js',
    'timeline.js',
    'webaudio.js',
    'webextension-inspected-window.js',
    'webextension-parent.js',
    'webgl.js',
    'worker.js'
)