Name Description Size
assert.js 883
ast.js 1737
async-value.js 1022
bootstrap.js Create and mount the root App component. @param {ReduxStore} store @param {ReduxStore} toolboxStore @param {Object} appComponentAttributes @param {Array} appComponentAttributes.fluentBundles @param {Document} appComponentAttributes.toolboxDoc 6452
breakpoint
build-query.js Ignore doing outline matches for less than 3 whitespaces @memberof utils/source-search @static 2012
clipboard.js Clipboard function taken from https://searchfox.org/mozilla-central/source/devtools/shared/platform/clipboard.js 755
context.js 5181
dbg.js 2491
DevToolsUtils.js 783
editor
environment.js 542
evaluation-result.js 620
expressions.js wrap the expression input in a try/catch so that it can be safely evaluated. NOTE: we add line after the expression to protect against comments. 2583
function.js 1459
indentation.js 1111
isMinified.js 1716
location.js Note that arguments can be created via `createLocation`. But they can also be created via `createPendingLocation` in reducer/pending-breakpoints.js. Both will have similar line and column attributes. 5598
log.js / /** Utils for logging to the console Suppresses logging in non-development environment @module utils/log 823
memoizableAction.js memoizableActon is a utility for actions that should only be performed once per key. It is useful for loading sources @getValue - gets the result from the redux store @createKey - creates a key for the requests map @action - kicks off the async work for the action For Example export const setItem = memoizeableAction( "setItem", { hasValue: ({ a }, { getState }) => hasItem(getState(), a), getValue: ({ a }, { getState }) => getItem(getState(), a), createKey: ({ a }) => a, action: ({ a }, thunkArgs) => doSetItem(a, thunkArgs) } ); 2639
memoize.js 1499
memoizeLast.js 736
path.js 741
pause
prefs.js 8119
preview.js 391
quick-open.js 3043
result-list.js 901
selected-location.js 649
shallow-equal.js Shallow equal will consider equal: - exact same values (strict '===' equality) - distinct array instances having the exact same values in them (same number and strict equality). - distinct object instances having the exact same attributes and values. It will typically consider different array and object whose values aren't strictly equal. You may consider using "deep equality" checks for this scenario. 1693
source-maps.js For any location, return the matching generated location. If this is already a generated location, returns the same location. In additional to `SourceMapLoader.getGeneratedLocation`, this asserts that the related source is still registered in the reducer current state. @param {Object} location @param {Object} thunkArgs Redux action thunk arguments @param {Object} The matching generated location. 4230
source-queue.js 1232
source.js Utils for working with Source URLs @module utils/source 12028
sources-tree
tabs.js Finds the hidden tabs by comparing the tabs' top offset. hidden tabs will have a great top offset. @param tabs Array<reducer's Source object> @param sourceTabEls HTMLCollection @returns Array 3234
telemetry.js Usage: import { recordEvent } from "src/utils/telemetry"; // Event without extra properties recordEvent("add_breakpoint"); // Event with extra properties recordEvent("pause", { "reason": "debugger-statement", "collapsed_callstacks": 1 }); // If the properties are in multiple code paths and you can't send them all // in one go you will need to use the full telemetry API. const Telemetry = require("devtools/client/shared/telemetry"); const telemetry = new Telemetry(); // Prepare the event and define which properties to expect. // // NOTE: You CAN send properties before preparing the event. // telemetry.preparePendingEvent(this, "pause", "debugger", null, [ "reason", "collapsed_callstacks" ]); // Elsewhere in another codepath send the reason property telemetry.addEventProperty( this, "pause", "debugger", null, "reason", "debugger-statement" ); // Elsewhere in another codepath send the collapsed_callstacks property telemetry.addEventProperty( this, "pause", "debugger", null, "collapsed_callstacks", 1 ); 2226
text.js Utils for keyboard command strings @module utils/text 1022
ui.js Checks to see if the root element is available and if the element is visible. We check the width of the element because it is more reliable than either checking a focus state or the visibleState or hidden property. 2236
url.js 2157
utils.js Utils for utils, by utils @module utils/utils 1519
worker.js @memberof utils/utils @static 1513