Name Description Size Coverage
assert.js 678 -
ast.js 1619 -
async-value.js 745 -
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 4731 -
breakpoint -
build-query.js Ignore doing outline matches for less than 3 whitespaces @memberof utils/source-search @static 1911 -
clipboard.js Clipboard function taken from https://searchfox.org/mozilla-central/source/devtools/shared/platform/clipboard.js 634 -
context.js 4609 -
dbg.js 2319 -
DevToolsUtils.js 452 -
editor -
environment.js 419 -
evaluation-result.js 499 -
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. 2204 -
function.js 1174 -
indentation.js 982 -
isMinified.js 1565 -
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. 5083 -
log.js / /** Utils for logging to the console Suppresses logging in non-development environment @module utils/log 672 -
memoizableAction.js memoizableActon is a utility for actions that should only be performed once per key. It is useful for loading sources 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) } ); @param {string} name @param {object} options @param {Function} options.getValue Gets the result from the redux store. @param {Function} options.createKey Creates a key for the requests map. @param {Function} options.action Kicks off the async work for the action. 2542 -
memoize.js 1403 -
memoizeLast.js 600 -
moz.build 1046 -
path.js 564 -
pause -
prefs.js 7832 -
preview.js 288 -
quick-open.js 2738 -
result-list.js 767 -
selected-location.js 535 -
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. 1561 -
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. 3863 -
source-queue.js 1097 -
source.js Utils for working with Source URLs @module utils/source 10713 -
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 3079 -
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 ); 1968 -
test-head.js Utils for Jest @module utils/test-head 6492 -
test-mockup.js This file is for use by unit tests for isolated debugger components that do not need to interact with the redux store. When these tests need to construct debugger objects, these interfaces should be used instead of plain object literals. 4713 -
text.js Utils for keyboard command strings @module utils/text 934 -
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. 1988 -
url.js 2035 -
utils.js Utils for utils, by utils @module utils/utils 1293 -
worker.js @memberof utils/utils @static 1285 -