| BrowserUsageTelemetry.sys.mjs |
|
1117 |
- |
|
| ChildCrashHandler.sys.mjs |
|
3671 |
- |
|
| 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");
|
5578 |
- |
|
| GeckoViewActorChild.sys.mjs |
|
562 |
- |
|
| GeckoViewActorManager.sys.mjs |
|
799 |
- |
|
| GeckoViewActorParent.sys.mjs |
|
1477 |
- |
|
| GeckoViewAIFeatures.sys.mjs |
Android supported AI feature Ids.
Bug 2020367: Ideally, this list will be generated or centralized by toolkit in the future.
|
2411 |
- |
|
| GeckoViewAutocomplete.sys.mjs |
|
28817 |
- |
|
| GeckoViewAutofill.sys.mjs |
|
2989 |
- |
|
| GeckoViewClipboardPermission.sys.mjs |
|
2927 |
- |
|
| GeckoViewConsole.sys.mjs |
|
5011 |
- |
|
| GeckoViewContent.sys.mjs |
capture |
19390 |
- |
|
| GeckoViewContentBlocking.sys.mjs |
|
3203 |
- |
|
| GeckoViewIdentityCredential.sys.mjs |
|
2473 |
- |
|
| GeckoViewIPProtection.sys.mjs |
|
9134 |
- |
|
| GeckoViewMediaControl.sys.mjs |
|
7781 |
- |
|
| GeckoViewModule.sys.mjs |
|
3583 |
- |
|
| GeckoViewNavigation.sys.mjs |
|
22791 |
- |
|
| GeckoViewPageExtractor.sys.mjs |
GeckoViewModule to get the content of a page
|
2169 |
- |
|
| GeckoViewPictureInPicture.sys.mjs |
A request is pending from the moment the launch event is sent until either
its player is set up or a newer request supersedes it, and active from then
until the window closes. The embedder can only show one window, so a request
supersedes whatever came before it, whichever session it came from.
@typedef {object} PiP
@property {"pending"|"active"} state
@property {object} sourceDispatcher
EventDispatcher of the source session.
@property {object} videoRef
ContentDOMReference to the video element, handed to the player actor to
clone. Absent for a placement no request has claimed.
@property {Element} playerBrowser
Active only. Browser of the player session showing the cloned video.
@property {number} bcGroupId
Pending only. Browsing context group of the source, which the player
session is opened in.
@property {string} remoteType
Pending only. Content process the player session has to be opened in, for
the same reason.
@property {?string} token
Pending only. Placement token handed to the embedder, until a session is
opened against it. Null once consumed: a token places a single session.
@property {Function} resolve
Pending only. Settles the promise returned by request() once the player is
set up.
@property {Function} reject
Pending only. Settles that promise if setting the player up failed.
|
11170 |
- |
|
| GeckoViewProcessHangMonitor.sys.mjs |
Collection of hang reports that haven't expired or been dismissed
by the user. These are nsIHangReports.
|
5347 |
- |
|
| GeckoViewProgress.sys.mjs |
Determines the identity mode corresponding to the icon we show in the urlbar.
|
18599 |
- |
|
| GeckoViewPushController.sys.mjs |
|
1876 |
- |
|
| GeckoViewRemoteDebugger.sys.mjs |
|
4070 |
- |
|
| GeckoViewSelectionAction.sys.mjs |
|
929 |
- |
|
| GeckoViewSessionStore.sys.mjs |
|
7536 |
- |
|
| GeckoViewSettings.sys.mjs |
|
5934 |
- |
|
| GeckoViewStorageController.sys.mjs |
|
8416 |
- |
|
| GeckoViewTab.sys.mjs |
Converts windowId to tabId as in GeckoView every browser window has exactly one tab.
@param {number} windowId outerWindowId
@returns {number} tabId
|
6592 |
- |
|
| 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.
|
2008 |
- |
|
| GeckoViewTrackingDB.sys.mjs |
|
2012 |
- |
|
| GeckoViewTranslations.sys.mjs |
reportAsAutoTranslate |
19859 |
- |
|
| GeckoViewUtils.sys.mjs |
Define a lazy getter that loads an object from external code, and
optionally handles observer and/or message manager notifications for the
object, so the object only loads when a notification is received.
@param scope Scope for holding the loaded object.
@param name Name of the object to load.
@param service If specified, load the object from a JS component; the
component must include the line
"this.wrappedJSObject = this;" in its constructor.
@param module If specified, load the object from a JS module.
@param init Optional post-load initialization function.
@param observers If specified, listen to specified observer notifications.
@param ppmm If specified, listen to specified process messages.
@param mm If specified, listen to specified frame messages.
@param ged If specified, listen to specified global EventDispatcher events.
@param once if true, only listen to the specified
events/messages/notifications once.
|
18295 |
- |
|
| GeckoViewWebExtension.sys.mjs |
Finds and returns a DownloadItem with a certain numeric ID
@param {number} id
@returns {DownloadItem} download item
|
43358 |
- |
|
| LoadURIDelegate.sys.mjs |
|
2272 |
- |
|
| MediaUtils.sys.mjs |
|
2051 |
- |
|
| Messaging.sys.mjs |
Register a listener to be notified of event(s).
@param aListener Target listener implementing nsIGeckoViewEventListener.
@param aEvents String or array of strings of events to listen to.
|
3832 |
- |
|
| metrics.yaml |
|
4307 |
- |
|
| moz.build |
|
1685 |
- |
|
| <1% | test |
|
|
- |
|