Name Description Size
actions
browser-menus.js This module inject dynamically menu items into browser UI. Menu definitions are fetched from: - devtools/client/menus for top level entires - devtools/client/definitions for tool-specifics entries 9317
browser-toolbox
commands-from-url.js Construct a commands object for a given URL with various query parameters: - host, port & ws: See the documentation for clientFromURL - type: "tab", "extension", "worker" or "process" {String} The type of target to connect to. If type == "tab": - id: {Number} the tab browserId If type == "extension": - id: {String} the addonID of the webextension to debug. If type == "worker": - id: {String} the unique Worker id of the Worker to debug. If type == "process": - id: {Number} the process id to debug. Default to 0, which is the parent process. @param {URL} url The url to fetch query params from. @return A commands object 5336
components
devtools-browser.js This is the main module loaded in Firefox desktop that handles browser windows and coordinates devtools around each window. This module is loaded lazily by devtools-clhandler.js, once the first browser window is ready (i.e. fired browser-delayed-startup-finished event) 19850
devtools.js DevTools is a class that represents a set of developer tools, it holds a set of tools and keeps track of open toolboxes in the browser. 30767
local-tab-commands-factory.js Functions for creating unique Commands for Local Tabs. 2300
menu-item.js A partial implementation of the MenuItem API provided by electron: https://github.com/electron/electron/blob/master/docs/api/menu-item.md. Missing features: - id String - Unique within a single menu. If defined then it can be used as a reference to this item by the position attribute. - role String - Define the action of the menu item; when specified the click property will be ignored - sublabel String - accelerator Accelerator - position String - This field allows fine-grained definition of the specific location within a given menu. Implemented features: @param Object options String accelerator Text that appears beside the menu label to indicate the shortcut key (accelerator key) to use to invoke the command. Unlike the Electron API, this is a label only and does not actually register a handler for the key. String accesskey [non-standard] A single character used as the shortcut key. This should be one of the characters that appears in the label. Function click Will be called with click(menuItem, browserWindow) when the menu item is clicked String type Can be normal, separator, submenu, checkbox or radio String label String image Boolean enabled If false, the menu item will be greyed out and unclickable. Boolean checked Should only be specified for checkbox or radio type menu items. Menu submenu Should be specified for submenu type menu items. If submenu is specified, the type: 'submenu' can be omitted. If the value is not a Menu then it will be automatically converted to one using Menu.buildFromTemplate. Boolean visible If false, the menu item will be entirely hidden. 2732
menu.js A partial implementation of the Menu API provided by electron: https://github.com/electron/electron/blob/master/docs/api/menu.md. Extra features: - Emits an 'open' and 'close' event when the menu is opened/closed @param String id (non standard) Needed so tests can confirm the XUL implementation is working 6762
metrics.yaml 2427
moz.build 1411
options-panel.css Snap to 50% width once there is not room for 3 columns anymore. This prevents having 2 columns showing in a row, but taking up only ~66% of the available space. 4154
reducers
selection.js Selection is a singleton belonging to the Toolbox that manages the current selected NodeFront. In addition, it provides some helpers about the context of the selected node. API new Selection() destroy() nodeFront (readonly) setNodeFront(node, origin="unknown") Helpers: window document isRoot() isNode() isHTMLNode() Check the nature of the node: isElementNode() isAttributeNode() isTextNode() isCDATANode() isEntityRefNode() isEntityNode() isProcessingInstructionNode() isCommentNode() isDocumentNode() isDocumentTypeNode() isDocumentFragmentNode() isNotationNode() Events: "new-node-front" when the inner node changed "attribute-changed" when an attribute is changed "detached-front" when the node (or one of its parents) is removed from the document "reparented" when the node (or one of its parents) is moved under a different node 9218
source-map-url-service.js A simple service to track source actors and keep a mapping between original URLs and objects holding the source or style actor's ID (which is used as a cookie by the devtools-source-map service) and the source map URL. @param {object} commands The commands object with all interfaces defined from devtools/shared/commands/ @param {SourceMapLoader} sourceMapLoader The source-map-loader implemented in devtools/client/shared/source-map-loader/ 15313
store-provider.js 369
store.js 528
test
toolbox-context-menu.js Lazily load strings for the edit menu. 3005
toolbox-host-manager.js Implement a wrapper on the chrome side to setup a Toolbox within Firefox UI. This component handles iframe creation within Firefox, in which we are loading the toolbox document. Then both the chrome and the toolbox document communicate via "message" events. Messages sent by the toolbox to the chrome: - switch-host: Order to display the toolbox in another host (side, bottom, window, or the previously used one) - raise-host: Focus the tools - set-host-title: When using the window host, update the window title Messages sent by the chrome to the toolbox: - switched-host: The `switch-host` command sent by the toolbox is done 11744
toolbox-hosts.js A host should always allow this much space for the page to be displayed. There is also a min-height on the browser, but we still don't want to set frame.style.height to be larger than that, since it can cause problems with resizing the toolbox and panel layout. 11870
toolbox-init.js eslint-env browser 4539
toolbox-options.html Toolbox option 11265
toolbox-options.js Represents the Options Panel in the Toolbox. 20801
toolbox-tabs-order-manager.js Manage the order of devtools tabs. 10318
toolbox-window.js eslint-disable no-unused-vars 593
toolbox-window.xhtml 822
toolbox.js 155898
toolbox.xhtml 2070