Name Description Size This script parses mozilla-central's WebIDL bindings and writes a JSON-formatted subset of the function bindings to the file "devtools/server/actors/webconsole/webidl-pure-allowlist.js" so that they may be used by the devtools for eager evaluation processing. Run this script via > ./mach python devtools/shared/webconsole/ with a mozconfig that references a built non-artifact build, and then run > ./mach eslint --fix devtools/server/actors/webconsole/webidl-pure-allowlist.js to format the file properly. 2795 1122
js-property-provider.js Provides a list of properties, that are possible matches based on the passed Debugger.Environment/Debugger.Object and inputValue. @param {Object} An object of the following shape: - {Object} dbgObject When the debugger is not paused this Debugger.Object wraps the scope for autocompletion. It is null if the debugger is paused. - {Object} environment When the debugger is paused this Debugger.Environment is the scope for autocompletion. It is null if the debugger is not paused. - {String} inputValue Value that should be completed. - {Number} cursor (defaults to inputValue.length). Optional offset in the input where the cursor is located. If this is omitted then the cursor is assumed to be at the end of the input value. - {Array} authorizedEvaluations (defaults to []). Optional array containing all the different properties access that the engine can execute in order to retrieve its result's properties. ⚠️ This should be set to true *ONLY* on user action as it may cause side-effects in the content page ⚠️ - {WebconsoleActor} webconsoleActor A reference to a webconsole actor which we can use to retrieve the last evaluation result or create a debuggee value. - {String}: selectedNodeActor The actor id of the selected node in the inspector. - {Array<string>}: expressionVars Optional array containing variable defined in the expression. Those variables are extracted from CodeMirror state. @returns null or object If the inputValue is an unsafe getter and invokeUnsafeGetter is false, the following form is returned: { isUnsafeGetter: true, getterPath: {Array<String>} An array of the property chain leading to the getter. Example: ["x", "myGetter"] } If no completion valued could be computed, and the input is not an unsafe getter, null is returned. Otherwise an object with the following form is returned: { matches: Set<string> matchProp: Last part of the inputValue that was used to find the matches-strings. isElementAccess: Boolean set to true if the evaluation is an element access (e.g. `window["addEvent`). } 35028 1187
network-helper.js Creator: Joe Hewitt Contributors John J. Barton (IBM Almaden) Jan Odvarko (Mozilla Corp.) Max Stepanov (Aptana Inc.) Rob Campbell (Mozilla Corp.) Hans Hillen (Paciello Group, Mozilla) Curtis Bartley (Mozilla Corp.) Mike Collins (IBM Almaden) Kevin Decker Mike Ratcliffe (Comartis AG) Hernan Rodríguez Colmeiro Austin Andrews Christoph Dorn Steven Roussey (AppCenter Inc, Network54) Mihai Sucan (Mozilla Corp.) 27369
parser-helper.js Gets a collection of parser methods for a specified source. @param string source The source text content. @param boolean logExceptions 2108
test 3
throttle.js Construct a new nsIStreamListener that buffers data and provides a method to notify another listener when data is available. This is used to throttle network data on a per-channel basis. After construction, @see setOriginalListener must be called on the new object. @param {NetworkThrottleQueue} queue the NetworkThrottleQueue to which status changes should be reported 13507