Name Description Size
AndroidLog.sys.mjs Native Android logging for JavaScript. Lets you specify a priority and tag in addition to the message being logged. Resembles the android.util.Log API <http://developer.android.com/reference/android/util/Log.html>. // Import it as a ESM: let Log = ChromeUtils.importESModule("resource://gre/modules/AndroidLog.sys.mjs") .AndroidLog; // Use Log.i, Log.v, Log.d, Log.w, and Log.e to log verbose, debug, info, // warning, and error messages, respectively. Log.v("MyModule", "This is a verbose message."); Log.d("MyModule", "This is a debug message."); Log.i("MyModule", "This is an info message."); Log.w("MyModule", "This is a warning message."); Log.e("MyModule", "This is an error message."); // Bind a function with a tag to replace a bespoke dump/log/debug function: let debug = Log.d.bind(null, "MyModule"); debug("This is a debug message."); // Outputs "D/GeckoMyModule(#####): This is a debug message." // Or "bind" the module object to a tag to automatically tag messages: Log = Log.bind("MyModule"); Log.d("This is a debug message."); // Outputs "D/GeckoMyModule(#####): This is a debug message." Note: the module automatically prepends "Gecko" to the tag you specify, since all tags used by Fennec code should start with that string; and it truncates tags longer than MAX_TAG_LENGTH characters (not including "Gecko"). 3309
BrowserUsageTelemetry.sys.mjs -*- js-indent-level: 2; indent-tabs-mode: nil -*- 1173
ChildCrashHandler.sys.mjs 3336
DelayedInit.sys.mjs Use DelayedInit to schedule initializers to run some time after startup. Initializers are added to a list of pending inits. Whenever the main thread message loop is idle, DelayedInit will start running initializers from the pending list. To prevent monopolizing the message loop, every idling period has a maximum duration. When that's reached, we give up the message loop and wait for the next idle. DelayedInit is compatible with lazy getters like those from XPCOMUtils. When the lazy getter is first accessed, its corresponding initializer is run automatically if it hasn't been run already. Each initializer also has a maximum wait parameter that specifies a mandatory timeout; when the timeout is reached, the initializer is forced to run. DelayedInit.schedule(() => Foo.init(), null, null, 5000); In the example above, Foo.init will run automatically when the message loop becomes idle, or when 5000ms has elapsed, whichever comes first. DelayedInit.schedule(() => Foo.init(), this, "Foo", 5000); In the example above, Foo.init will run automatically when the message loop becomes idle, when |this.Foo| is accessed, or when 5000ms has elapsed, whichever comes first. It may be simpler to have a wrapper for DelayedInit.schedule. For example, function InitLater(fn, obj, name) { return DelayedInit.schedule(fn, obj, name, 5000); // constant max wait } InitLater(() => Foo.init()); InitLater(() => Bar.init(), this, "Bar"); 5454
GeckoViewActorChild.sys.mjs 721
GeckoViewActorManager.sys.mjs 799
GeckoViewActorParent.sys.mjs 1709
GeckoViewAutocomplete.sys.mjs 20018
GeckoViewAutofill.sys.mjs 2353
GeckoViewChildModule.sys.mjs 2090
GeckoViewClipboardPermission.sys.mjs 2907
GeckoViewConsole.sys.mjs 5081
GeckoViewContent.sys.mjs capture 24262
GeckoViewContentBlocking.sys.mjs 3215
GeckoViewIdentityCredential.sys.mjs 2464
GeckoViewMediaControl.sys.mjs 6130
GeckoViewModule.sys.mjs 4141
GeckoViewNavigation.sys.mjs 20356
GeckoViewProcessHangMonitor.sys.mjs Collection of hang reports that haven't expired or been dismissed by the user. These are nsIHangReports. 5359
GeckoViewProgress.sys.mjs Determines the identity mode corresponding to the icon we show in the urlbar. 17188
GeckoViewPushController.sys.mjs 1875
GeckoViewRemoteDebugger.sys.mjs 3862
GeckoViewSelectionAction.sys.mjs 929
GeckoViewSessionStore.sys.mjs 5552
GeckoViewSettings.sys.mjs 5177
GeckoViewStorageController.sys.mjs 10930
GeckoViewTab.sys.mjs Converts windowId to tabId as in GeckoView every browser window has exactly one tab. @param {number} windowId outerWindowId @returns {number} tabId 6316
GeckoViewTelemetry.sys.mjs 1055
GeckoViewTestUtils.sys.mjs Creates a new tab through service worker delegate. Needs to be ran in a parent process. @param {string} url @returns {Tab} @throws {Error} Throws an error if the tab cannot be created. 1956
GeckoViewTranslations.sys.mjs eslint-disable complexity 18300
GeckoViewUtils.sys.mjs A formatter that does not prepend time/name/level information to messages, because those fields are logged separately when using the Android logger. 16281
GeckoViewWebExtension.sys.mjs Finds and returns a DownloadItem with a certain numeric ID @param {number} id @returns {DownloadItem} download item 41036
LoadURIDelegate.sys.mjs 2926
MediaUtils.sys.mjs 2047
Messaging.sys.mjs Sends a request to Java. @param aMsg Message to send; must be an object with a "type" property 9215
metrics.yaml 5502
moz.build 1593
test