ExtensionsProcessDisabledPromptObserver.kt |
Observes the [BrowserStore] state for when the extensions process spawning has been disabled and
the user should be prompted. This requires running in both the foreground and background.
@property store the application's [BrowserStore].
@property shouldCancelOnStop If false, this observer will run indefinitely to be able to react
to state changes when the app is either in the foreground or in the background.
Please note to not have any references to Activity or it's context in an observer where this
is false. Defaults to true.
@property onShowExtensionsProcessDisabledPrompt a callback invoked when the application should
open a prompt.
|
2109 |
facts |
|
|
WebExtensionController.kt |
Provides functionality to feature modules that need to interact with a web extension.
@property extensionId the unique ID of the web extension e.g. mozacReaderview.
@property extensionUrl the url pointing to a resources path for locating the
extension within the APK file e.g. resource://android/assets/extensions/my_web_ext.
@property defaultPort the name of the default port used to exchange messages
between extension scripts and the application. Extensions can open multiple ports
so [sendContentMessage] and [sendBackgroundMessage] allow specifying an
alternative port, if needed.
|
7445 |
WebExtensionPopupObserver.kt |
Feature implementation that opens popups for web extensions browser actions.
@property store the application's [BrowserStore].
@property onOpenPopup a callback invoked when the application should open a
popup. This is a lambda accepting the [WebExtensionState] of the extension
that wants to open a popup.
|
1915 |
WebExtensionSupport.kt |
Function to relay the permission request to the app / user.
|
24270 |