diff --git a/tools/@types/index.d.ts b/tools/@types/index.d.ts
index f8d3f7ba93a5..ccab118aec14 100644
--- a/tools/@types/index.d.ts
+++ b/tools/@types/index.d.ts
@@ -8,6 +8,12 @@
///
///
///
+///
+
+/// Platform specific XPCOM modules.
+///
+///
+///
/// Order of references matters here, for overriding type signatures.
///
diff --git a/tools/@types/lib.gecko.win32.d.ts b/tools/@types/lib.gecko.win32.d.ts
new file mode 100644
index 000000000000..4119bfd80b36
--- /dev/null
+++ b/tools/@types/lib.gecko.win32.d.ts
@@ -0,0 +1,381 @@
+/**
+ * NOTE: Do not modify this file by hand.
+ * Content was generated from source XPCOM .idl files.
+ * If you're updating some of the sources, see README for instructions.
+ */
+
+declare global {
+
+// https://searchfox.org/mozilla-central/source/toolkit/components/aboutthirdparty/nsIAboutThirdParty.idl
+
+interface nsIInstalledApplication extends nsISupports {
+ readonly name: string;
+ readonly publisher: string;
+}
+
+interface nsIAboutThirdParty extends nsISupports {
+ readonly ModuleType_Unknown: 1;
+ readonly ModuleType_IME: 2;
+ readonly ModuleType_ShellExtension: 4;
+ readonly ModuleType_BlockedByUser: 8;
+ readonly ModuleType_BlockedByUserAtLaunch: 16;
+
+ lookupModuleType(aLeafName: string): u32;
+ lookupApplication(aModulePath: string): nsIInstalledApplication;
+ readonly isDynamicBlocklistAvailable: boolean;
+ readonly isDynamicBlocklistDisabled: boolean;
+ updateBlocklist(aLeafName: string, aNewBlockStatus: boolean): Promise;
+ collectSystemInfo(): Promise;
+ loadModuleForTesting(aModulePath: string): void;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/components/aboutwindowsmessages/nsIAboutWindowsMessages.idl
+
+interface nsIAboutWindowsMessages extends nsISupports {
+ getMessages(currentWindow: mozIDOMWindowProxy, messages: OutParam, windowTitles: OutParam): void;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/components/alerts/nsIWindowsAlertsService.idl
+
+} // global
+
+declare namespace nsIWindowsAlertNotification {
+
+enum ImagePlacement {
+ eInline = 0,
+ eHero = 1,
+ eIcon = 2,
+}
+
+}
+
+declare global {
+
+interface nsIWindowsAlertNotification extends nsIAlertNotification, Enums {
+ handleActions: boolean;
+ imagePlacement: nsIWindowsAlertNotification.ImagePlacement;
+}
+
+interface nsIWindowsAlertsService extends nsIAlertsService {
+ handleWindowsTag(aWindowsTag: string): Promise;
+ getXmlStringForWindowsAlert(aAlert: nsIAlertNotification, aWindowsTag?: string): string;
+ removeAllNotificationsForInstall(): void;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/mozapps/defaultagent/nsIDefaultAgent.idl
+
+interface nsIDefaultAgent extends nsISupports {
+ registerTask(aUniqueToken: string): void;
+ updateTask(aUniqueToken: string): void;
+ unregisterTask(aUniqueToken: string): void;
+ uninstall(aUniqueToken: string): void;
+ secondsSinceLastAppRun(): i64;
+ getDefaultBrowser(): string;
+ getReplacePreviousDefaultBrowser(aCurrentBrowser: string): string;
+ getDefaultPdfHandler(): string;
+ sendPing(aCurrentBrowser: string, aPreviousBrowser: string, aPdfHandler: string, aNotificationShown: string, aNotificationAction: string, daysSinceLastAppLaunch: u32): void;
+ setDefaultBrowserUserChoice(aAumid: string, aExtraFileExtensions: string[]): void;
+ setDefaultBrowserUserChoiceAsync(aAumid: string, aExtraFileExtensions: string[]): Promise;
+ setDefaultExtensionHandlersUserChoice(aAumid: string, aFileExtensions: string[]): void;
+ agentDisabled(): boolean;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/mozapps/defaultagent/nsIWindowsMutex.idl
+
+interface nsIWindowsMutex extends nsISupports {
+ tryLock(): void;
+ isLocked(): boolean;
+ unlock(): void;
+}
+
+interface nsIWindowsMutexFactory extends nsISupports {
+ createMutex(aName: string): nsIWindowsMutex;
+}
+
+// https://searchfox.org/mozilla-central/source/dom/geolocation/nsIGeolocationUIUtilsWin.idl
+
+interface nsIGeolocationUIUtilsWin extends nsISupports {
+ dismissPrompts(aBC: BrowsingContext): void;
+}
+
+// https://searchfox.org/mozilla-central/source/netwerk/socket/nsINamedPipeService.idl
+
+// https://searchfox.org/mozilla-central/source/browser/components/shell/nsIWindowsShellService.idl
+
+} // global
+
+declare namespace nsIWindowsShellService {
+
+enum LaunchOnLoginEnabledEnumerator {
+ LAUNCH_ON_LOGIN_DISABLED_BY_SETTINGS = 0,
+ LAUNCH_ON_LOGIN_DISABLED = 1,
+ LAUNCH_ON_LOGIN_ENABLED = 2,
+ LAUNCH_ON_LOGIN_ENABLED_BY_POLICY = 3,
+}
+
+}
+
+declare global {
+
+interface nsIWindowsShellService extends nsIShellService, Enums {
+ createShortcut(aBinary: nsIFile, aArguments: string[], aDescription: string, aIconFile: nsIFile, aIconIndex: u16, aAppUserModelId: string, aShortcutFolder: string, aShortcutName: string): Promise;
+ getLaunchOnLoginShortcuts(): string[];
+ pinCurrentAppToStartMenuAsync(aCheckOnly: boolean): Promise;
+ isCurrentAppPinnedToStartMenuAsync(): Promise;
+ enableLaunchOnLoginMSIXAsync(aTaskId: string): Promise;
+ disableLaunchOnLoginMSIXAsync(aTaskId: string): Promise;
+ getLaunchOnLoginEnabledMSIXAsync(aTaskId: string): Promise;
+ pinCurrentAppToTaskbarAsync(aPrivateBrowsing: boolean): Promise;
+ checkPinCurrentAppToTaskbarAsync(aPrivateBrowsing: boolean): Promise;
+ isCurrentAppPinnedToTaskbarAsync(aumid: string): Promise;
+ pinShortcutToTaskbar(aAppUserModelId: string, aShortcutPath: string): Promise;
+ createWindowsIcon(aFile: nsIFile, aContainer: imgIContainer): Promise;
+ unpinShortcutFromTaskbar(aShortcutPath: string): void;
+ getTaskbarTabShortcutPath(aShortcutName: string): string;
+ getTaskbarTabPins(): string[];
+ classifyShortcut(aPath: string): string;
+ hasPinnableShortcut(aAUMID: string, aPrivateBrowsing: boolean): Promise;
+ canSetDefaultBrowserUserChoice(): boolean;
+ checkAllProgIDsExist(): boolean;
+ checkBrowserUserChoiceHashes(): boolean;
+ isDefaultHandlerFor(aFileExtensionOrProtocol: string): boolean;
+ queryCurrentDefaultHandlerFor(aFileExtensionOrProtocol: string): string;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/components/taskscheduler/nsIWinTaskSchedulerService.idl
+
+interface nsIWinTaskSchedulerService extends nsISupports {
+ registerTask(aFolderName: string, aTaskName: string, aDefinitionXML: string, aUpdateExisting?: boolean): void;
+ validateTaskDefinition(aDefinitionXML: string): i32;
+ getTaskXML(aFolderName: string, aTaskName: string): string;
+ getCurrentUserSid(): string;
+ deleteTask(aFolderName: string, aTaskName: string): void;
+ getFolderTasks(aFolderName: string): string[];
+ createFolder(aParentFolderName: string, aSubFolderName: string): void;
+ deleteFolder(aParentFolderName: string, aSubFolderName: string): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsIJumpListBuilder.idl
+
+interface nsIJumpListBuilder extends nsISupports {
+ obtainAndCacheFavicon(faviconURL: nsIURI): string;
+ obtainAndCacheFaviconAsync(faviconURL: nsIURI): Promise;
+ isAvailable(): Promise;
+ checkForRemovals(): Promise;
+ populateJumpList(aTaskDescriptions: any, aCustomTitle: string, aCustomDescriptions: any): Promise;
+ clearJumpList(): Promise;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsIPrintSettingsWin.idl
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarOverlayIconController.idl
+
+interface nsITaskbarOverlayIconController extends nsISupports {
+ setOverlayIcon(statusIcon: imgIContainer, statusDescription: string, paintContext?: nsISVGPaintContext): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarPreview.idl
+
+interface nsITaskbarPreview extends nsISupports {
+ controller: nsITaskbarPreviewController;
+ tooltip: string;
+ visible: boolean;
+ active: boolean;
+ invalidate(): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarPreviewButton.idl
+
+interface nsITaskbarPreviewButton extends nsISupports {
+ tooltip: string;
+ dismissOnClick: boolean;
+ hasBorder: boolean;
+ disabled: boolean;
+ image: imgIContainer;
+ visible: boolean;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarPreviewController.idl
+
+type nsITaskbarPreviewCallback = Callable<{
+ done(aCanvas: nsISupports, aDrawBorder: boolean): void;
+}>
+
+interface nsITaskbarPreviewController extends nsISupports {
+ readonly width: u32;
+ readonly height: u32;
+ readonly thumbnailAspectRatio: float;
+ requestPreview(aCallback: nsITaskbarPreviewCallback): void;
+ requestThumbnail(aCallback: nsITaskbarPreviewCallback, width: u32, height: u32): void;
+ onClose(): void;
+ onActivate(): boolean;
+ onClick(button: nsITaskbarPreviewButton): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarProgress.idl
+
+interface nsITaskbarProgress extends nsISupports {
+ readonly STATE_NO_PROGRESS: 0;
+ readonly STATE_INDETERMINATE: 1;
+ readonly STATE_NORMAL: 2;
+ readonly STATE_ERROR: 3;
+ readonly STATE_PAUSED: 4;
+
+ setProgressState(state: nsTaskbarProgressState, currentValue?: u64, maxValue?: u64): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarTabPreview.idl
+
+interface nsITaskbarTabPreview extends nsITaskbarPreview {
+ title: string;
+ icon: imgIContainer;
+ move(aNext: nsITaskbarTabPreview): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsITaskbarWindowPreview.idl
+
+interface nsITaskbarWindowPreview extends nsITaskbarPreview {
+ readonly NUM_TOOLBAR_BUTTONS: 7;
+
+ getButton(index: u32): nsITaskbarPreviewButton;
+ enableCustomDrawing: boolean;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsIWinTaskbar.idl
+
+interface nsIWinTaskbar extends nsISupports {
+ readonly available: boolean;
+ readonly defaultGroupId: string;
+ readonly defaultPrivateGroupId: string;
+ createTaskbarTabPreview(shell: nsIDocShell, controller: nsITaskbarPreviewController): nsITaskbarTabPreview;
+ getTaskbarWindowPreview(shell: nsIDocShell): nsITaskbarWindowPreview;
+ getTaskbarProgress(shell: nsIDocShell): nsITaskbarProgress;
+ getOverlayIconController(shell: nsIDocShell): nsITaskbarOverlayIconController;
+ createJumpListBuilder(aPrivateBrowsing: boolean): nsIJumpListBuilder;
+ getGroupIdForWindow(aParent: mozIDOMWindow): string;
+ setGroupIdForWindow(aParent: mozIDOMWindow, aIdentifier: string): void;
+}
+
+// https://searchfox.org/mozilla-central/source/widget/nsIWindowsUIUtils.idl
+
+interface nsIWindowsUIUtils extends nsISupports {
+ readonly systemSmallIconSize: i32;
+ readonly systemLargeIconSize: i32;
+ setWindowIcon(aWindow: mozIDOMWindowProxy, aSmallIcon: imgIContainer, aLargeIcon: imgIContainer): void;
+ setWindowIconFromExe(aWindow: mozIDOMWindowProxy, aExe: string, aIndex: u16): void;
+ setWindowIconNoData(aWindow: mozIDOMWindowProxy): void;
+ readonly inWin10TabletMode: boolean;
+ readonly inWin11TabletMode: boolean;
+ shareUrl(shareTitle: string, urlToShare: string): void;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/system/windowsPackageManager/nsIWindowsPackageManager.idl
+
+interface nsIWindowsPackageManager extends nsISupports {
+ findUserInstalledPackages(prefix: string[]): string[];
+ getInstalledDate(): u64;
+ campaignId(): Promise;
+}
+
+// https://searchfox.org/mozilla-central/source/xpcom/ds/nsIWindowsRegKey.idl
+
+interface nsIWindowsRegKey extends nsISupports {
+ readonly ROOT_KEY_CLASSES_ROOT: 2147483648;
+ readonly ROOT_KEY_CURRENT_USER: 2147483649;
+ readonly ROOT_KEY_LOCAL_MACHINE: 2147483650;
+ readonly ACCESS_BASIC: 131072;
+ readonly ACCESS_QUERY_VALUE: 1;
+ readonly ACCESS_SET_VALUE: 2;
+ readonly ACCESS_CREATE_SUB_KEY: 4;
+ readonly ACCESS_ENUMERATE_SUB_KEYS: 8;
+ readonly ACCESS_NOTIFY: 16;
+ readonly ACCESS_READ: 131097;
+ readonly ACCESS_WRITE: 131078;
+ readonly ACCESS_ALL: 131103;
+ readonly WOW64_32: 512;
+ readonly WOW64_64: 256;
+ readonly TYPE_NONE: 0;
+ readonly TYPE_STRING: 1;
+ readonly TYPE_BINARY: 3;
+ readonly TYPE_INT: 4;
+ readonly TYPE_INT64: 11;
+
+ close(): void;
+ open(rootKey: u32, relPath: string, mode: u32): void;
+ create(rootKey: u32, relPath: string, mode: u32): void;
+ openChild(relPath: string, mode: u32): nsIWindowsRegKey;
+ createChild(relPath: string, mode: u32): nsIWindowsRegKey;
+ readonly childCount: u32;
+ getChildName(index: u32): string;
+ hasChild(name: string): boolean;
+ readonly valueCount: u32;
+ getValueName(index: u32): string;
+ hasValue(name: string): boolean;
+ removeChild(relPath: string): void;
+ removeValue(name: string): void;
+ getValueType(name: string): u32;
+ readStringValue(name: string): string;
+ readIntValue(name: string): u32;
+ readInt64Value(name: string): u64;
+ readBinaryValue(name: string): string;
+ writeStringValue(name: string, data: string): void;
+ writeIntValue(name: string, data: u32): void;
+ writeInt64Value(name: string, data: u64): void;
+ writeBinaryValue(name: string, data: string): void;
+}
+
+// https://searchfox.org/mozilla-central/source/toolkit/xre/nsIWinAppHelper.idl
+
+interface nsIWinAppHelper extends nsISupports {
+ readonly userCanElevate: boolean;
+}
+
+interface nsIXPCComponents_Interfaces {
+ nsIInstalledApplication: nsJSIID;
+ nsIAboutThirdParty: nsJSIID;
+ nsIAboutWindowsMessages: nsJSIID;
+ nsIWindowsAlertNotification: nsJSIID;
+ nsIWindowsAlertsService: nsJSIID;
+ nsIDefaultAgent: nsJSIID;
+ nsIWindowsMutex: nsJSIID;
+ nsIWindowsMutexFactory: nsJSIID;
+ nsIGeolocationUIUtilsWin: nsJSIID;
+ nsIWindowsShellService: nsJSIID;
+ nsIWinTaskSchedulerService: nsJSIID;
+ nsIJumpListBuilder: nsJSIID;
+ nsITaskbarOverlayIconController: nsJSIID;
+ nsITaskbarPreview: nsJSIID;
+ nsITaskbarPreviewButton: nsJSIID;
+ nsITaskbarPreviewCallback: nsJSIID;
+ nsITaskbarPreviewController: nsJSIID;
+ nsITaskbarProgress: nsJSIID;
+ nsITaskbarTabPreview: nsJSIID;
+ nsITaskbarWindowPreview: nsJSIID;
+ nsIWinTaskbar: nsJSIID;
+ nsIWindowsUIUtils: nsJSIID;
+ nsIWindowsPackageManager: nsJSIID;
+ nsIWindowsRegKey: nsJSIID;
+ nsIWinAppHelper: nsJSIID;
+}
+
+} // global
+
+// Typedefs from xpidl.
+type PRTime = i64;
+type nsTaskbarProgressState = i32;
+
+// XPCOM internal utility types.
+
+/** XPCOM inout param is passed in as a js object with a value property. */
+type InOutParam = { value: T };
+
+/** XPCOM out param is written to the passed in object's value property. */
+type OutParam = { value?: T };
+
+/** A named type to enable interfaces to inherit from enums. */
+type Enums = enums;
+
+/** Callable accepts either form of a [function] interface. */
+type Callable = iface | Extract
+
+export {};
diff --git a/tools/@types/lib.gecko.xpcom.d.ts b/tools/@types/lib.gecko.xpcom.d.ts
index 6cfdff88ce15..d6976a6fb5bd 100644
--- a/tools/@types/lib.gecko.xpcom.d.ts
+++ b/tools/@types/lib.gecko.xpcom.d.ts
@@ -6,4439 +6,786 @@
declare global {
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageAsyncConnection.idl
+// https://searchfox.org/mozilla-central/source/toolkit/components/bitsdownload/nsIBits.idl
-interface mozIStorageAsyncConnection extends nsISupports {
- readonly TRANSACTION_DEFAULT: -1;
- readonly TRANSACTION_DEFERRED: 0;
- readonly TRANSACTION_IMMEDIATE: 1;
- readonly TRANSACTION_EXCLUSIVE: 2;
+interface nsIBits extends nsISupports {
+ readonly ERROR_TYPE_SUCCESS: 0;
+ readonly ERROR_TYPE_UNKNOWN: 1;
+ readonly ERROR_TYPE_METHOD_THREW: 2;
+ readonly ERROR_TYPE_METHOD_TIMEOUT: 3;
+ readonly ERROR_TYPE_NULL_ARGUMENT: 4;
+ readonly ERROR_TYPE_INVALID_ARGUMENT: 5;
+ readonly ERROR_TYPE_NOT_INITIALIZED: 6;
+ readonly ERROR_TYPE_NO_UTF8_CONVERSION: 7;
+ readonly ERROR_TYPE_INVALID_GUID: 8;
+ readonly ERROR_TYPE_PIPE_NOT_CONNECTED: 9;
+ readonly ERROR_TYPE_PIPE_TIMEOUT: 10;
+ readonly ERROR_TYPE_PIPE_BAD_WRITE_COUNT: 11;
+ readonly ERROR_TYPE_PIPE_API_ERROR: 12;
+ readonly ERROR_TYPE_FAILED_TO_CREATE_BITS_JOB: 13;
+ readonly ERROR_TYPE_FAILED_TO_ADD_FILE_TO_JOB: 14;
+ readonly ERROR_TYPE_FAILED_TO_APPLY_BITS_JOB_SETTINGS: 15;
+ readonly ERROR_TYPE_FAILED_TO_RESUME_BITS_JOB: 16;
+ readonly ERROR_TYPE_OTHER_BITS_ERROR: 17;
+ readonly ERROR_TYPE_OTHER_BITS_CLIENT_ERROR: 18;
+ readonly ERROR_TYPE_BITS_JOB_NOT_FOUND: 19;
+ readonly ERROR_TYPE_FAILED_TO_GET_BITS_JOB: 20;
+ readonly ERROR_TYPE_FAILED_TO_SUSPEND_BITS_JOB: 21;
+ readonly ERROR_TYPE_FAILED_TO_COMPLETE_BITS_JOB: 22;
+ readonly ERROR_TYPE_PARTIALLY_COMPLETED_BITS_JOB: 23;
+ readonly ERROR_TYPE_FAILED_TO_CANCEL_BITS_JOB: 24;
+ readonly ERROR_TYPE_MISSING_RESULT_DATA: 25;
+ readonly ERROR_TYPE_MISSING_CALLBACK: 26;
+ readonly ERROR_TYPE_CALLBACK_ON_WRONG_THREAD: 27;
+ readonly ERROR_TYPE_MISSING_BITS_SERVICE: 28;
+ readonly ERROR_TYPE_BITS_SERVICE_ON_WRONG_THREAD: 29;
+ readonly ERROR_TYPE_MISSING_BITS_REQUEST: 30;
+ readonly ERROR_TYPE_BITS_REQUEST_ON_WRONG_THREAD: 31;
+ readonly ERROR_TYPE_MISSING_OBSERVER: 32;
+ readonly ERROR_TYPE_OBSERVER_ON_WRONG_THREAD: 33;
+ readonly ERROR_TYPE_MISSING_CONTEXT: 34;
+ readonly ERROR_TYPE_CONTEXT_ON_WRONG_THREAD: 35;
+ readonly ERROR_TYPE_FAILED_TO_START_THREAD: 36;
+ readonly ERROR_TYPE_FAILED_TO_CONSTRUCT_TASK_RUNNABLE: 37;
+ readonly ERROR_TYPE_FAILED_TO_DISPATCH_RUNNABLE: 38;
+ readonly ERROR_TYPE_TRANSFER_ALREADY_COMPLETE: 39;
+ readonly ERROR_TYPE_OPERATION_ALREADY_IN_PROGRESS: 40;
+ readonly ERROR_TYPE_MISSING_BITS_CLIENT: 41;
+ readonly ERROR_TYPE_FAILED_TO_GET_JOB_STATUS: 42;
+ readonly ERROR_TYPE_BITS_STATE_ERROR: 43;
+ readonly ERROR_TYPE_BITS_STATE_TRANSIENT_ERROR: 44;
+ readonly ERROR_TYPE_BITS_STATE_CANCELLED: 45;
+ readonly ERROR_TYPE_BITS_STATE_UNEXPECTED: 46;
+ readonly ERROR_TYPE_VERIFICATION_FAILURE: 47;
+ readonly ERROR_TYPE_ACCESS_DENIED_EXPECTED: 48;
+ readonly ERROR_TYPE_FAILED_TO_CONNECT_TO_BCM: 49;
+ readonly ERROR_TYPE_USE_AFTER_REQUEST_SHUTDOWN: 50;
+ readonly ERROR_TYPE_BROWSER_SHUTTING_DOWN: 51;
+ readonly ERROR_ACTION_UNKNOWN: 1;
+ readonly ERROR_ACTION_NONE: 2;
+ readonly ERROR_ACTION_START_DOWNLOAD: 3;
+ readonly ERROR_ACTION_MONITOR_DOWNLOAD: 4;
+ readonly ERROR_ACTION_CHANGE_MONITOR_INTERVAL: 5;
+ readonly ERROR_ACTION_CANCEL: 6;
+ readonly ERROR_ACTION_SET_PRIORITY: 7;
+ readonly ERROR_ACTION_COMPLETE: 8;
+ readonly ERROR_ACTION_SUSPEND: 9;
+ readonly ERROR_ACTION_RESUME: 10;
+ readonly ERROR_ACTION_SET_NO_PROGRESS_TIMEOUT: 11;
+ readonly ERROR_STAGE_UNKNOWN: 1;
+ readonly ERROR_STAGE_PRETASK: 2;
+ readonly ERROR_STAGE_COMMAND_THREAD: 3;
+ readonly ERROR_STAGE_AGENT_COMMUNICATION: 4;
+ readonly ERROR_STAGE_BITS_CLIENT: 5;
+ readonly ERROR_STAGE_MAIN_THREAD: 6;
+ readonly ERROR_STAGE_MONITOR: 7;
+ readonly ERROR_STAGE_VERIFICATION: 8;
+ readonly ERROR_CODE_TYPE_NONE: 1;
+ readonly ERROR_CODE_TYPE_NSRESULT: 2;
+ readonly ERROR_CODE_TYPE_HRESULT: 3;
+ readonly ERROR_CODE_TYPE_STRING: 4;
+ readonly ERROR_CODE_TYPE_EXCEPTION: 5;
+ readonly PROXY_NONE: 1;
+ readonly PROXY_PRECONFIG: 2;
+ readonly PROXY_AUTODETECT: 3;
- defaultTransactionType: i32;
- variableLimit: i32;
- readonly transactionInProgress: boolean;
- asyncClose(aCallback?: mozIStorageCompletionCallback): void;
- asyncClone(aReadOnly: boolean, aCallback: mozIStorageCompletionCallback): void;
- readonly databaseFile: nsIFile;
- interrupt(): void;
- asyncVacuum(aCallback?: mozIStorageCompletionCallback, aUseIncremental?: boolean, aSetPageSize?: i32): void;
- createAsyncStatement(aSQLStatement: string): mozIStorageAsyncStatement;
- executeAsync(aStatements: mozIStorageBaseStatement[], aCallback?: mozIStorageStatementCallback): mozIStoragePendingStatement;
- executeSimpleSQLAsync(aSQLStatement: string, aCallback?: mozIStorageStatementCallback): mozIStoragePendingStatement;
- loadExtension(aExtensionName: string, aCallback?: mozIStorageCompletionCallback): void;
- createFunction(aFunctionName: string, aNumArguments: i32, aFunction: mozIStorageFunction): void;
- removeFunction(aFunctionName: string): void;
- setProgressHandler(aGranularity: i32, aHandler: mozIStorageProgressHandler): mozIStorageProgressHandler;
- removeProgressHandler(): mozIStorageProgressHandler;
- backupToFileAsync(aDestinationFile: nsIFile, aCallback: mozIStorageCompletionCallback, aPagesPerStep?: u32, aStepDelayMs?: u32): void;
+ readonly initialized: boolean;
+ init(jobName: string, savePathPrefix: string, monitorTimeoutMs: u32): void;
+ startDownload(downloadURL: string, saveRelativePath: string, proxy: nsProxyUsage, noProgressTimeoutSecs: u32, monitorIntervalMs: u32, customHeaders: string, observer: nsIRequestObserver, context: nsISupports, callback: nsIBitsNewRequestCallback): void;
+ monitorDownload(id: string, monitorIntervalMs: u32, observer: nsIRequestObserver, context: nsISupports, callback: nsIBitsNewRequestCallback): void;
}
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageAsyncStatement.idl
-
-interface mozIStorageAsyncStatement extends mozIStorageBaseStatement {
+interface nsIBitsNewRequestCallback extends nsISupports {
+ success(request: nsIBitsRequest): void;
+ failure(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage): void;
+ failureNsresult(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage, errorCode: nsresult): void;
+ failureHresult(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage, errorCode: i32): void;
+ failureString(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage, errorMessage: string): void;
}
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageBaseStatement.idl
-
-interface mozIStorageBaseStatement extends mozIStorageBindingParams {
- readonly MOZ_STORAGE_STATEMENT_INVALID: 0;
- readonly MOZ_STORAGE_STATEMENT_READY: 1;
- readonly MOZ_STORAGE_STATEMENT_EXECUTING: 2;
-
- finalize(): void;
- bindParameters(aParameters: mozIStorageBindingParamsArray): void;
- newBindingParamsArray(): mozIStorageBindingParamsArray;
- executeAsync(aCallback?: mozIStorageStatementCallback): mozIStoragePendingStatement;
- readonly state: i32;
- escapeStringForLIKE(aValue: string, aEscapeChar: string): string;
- escapeUTF8StringForLIKE(aValue: string, aEscapeChar: string): string;
+interface nsIBitsRequest extends nsIRequest {
+ readonly bitsId: string;
+ readonly transferError: nsBitsErrorType;
+ changeMonitorInterval(monitorIntervalMs: u32, callback: nsIBitsCallback): void;
+ cancelAsync(status: nsresult, callback: nsIBitsCallback): void;
+ setPriorityHigh(callback: nsIBitsCallback): void;
+ setPriorityLow(callback: nsIBitsCallback): void;
+ setNoProgressTimeout(timeoutSecs: u32, callback: nsIBitsCallback): void;
+ complete(callback: nsIBitsCallback): void;
+ suspendAsync(callback: nsIBitsCallback): void;
+ resumeAsync(callback: nsIBitsCallback): void;
}
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageBindingParams.idl
-
-interface mozIStorageBindingParams extends nsISupports {
- bindByName(aName: string, aValue: nsIVariant): void;
- bindBlobByName(aName: string, aValue: u8[]): void;
- bindStringAsBlobByName(aName: string, aValue: string): void;
- bindUTF8StringAsBlobByName(aName: string, aValue: string): void;
- bindArrayOfIntegersByName(aName: string, aValue: i64[]): void;
- bindArrayOfDoublesByName(aName: string, aValue: double[]): void;
- bindArrayOfStringsByName(aName: string, aValue: string[]): void;
- bindArrayOfUTF8StringsByName(aName: string, aValue: string[]): void;
- bindByIndex(aIndex: u32, aValue: nsIVariant): void;
- bindBlobByIndex(aIndex: u32, aValue: u8[]): void;
- bindStringAsBlobByIndex(aIndex: u32, aValue: string): void;
- bindUTF8StringAsBlobByIndex(aIndex: u32, aValue: string): void;
- bindArrayOfIntegersByIndex(aIndex: u32, aValue: i64[]): void;
- bindArrayOfDoublesByIndex(aIndex: u32, aValue: double[]): void;
- bindArrayOfStringsByIndex(aIndex: u32, aValue: string[]): void;
- bindArrayOfUTF8StringsByIndex(aIndex: u32, aValue: string[]): void;
+interface nsIBitsCallback extends nsISupports {
+ success(): void;
+ failure(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage): void;
+ failureNsresult(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage, errorCode: nsresult): void;
+ failureHresult(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage, errorCode: i32): void;
+ failureString(errorType: nsBitsErrorType, errorAction: nsBitsErrorAction, errorStage: nsBitsErrorStage, errorMessage: string): void;
}
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageBindingParamsArray.idl
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibilityService.idl
-interface mozIStorageBindingParamsArray extends nsISupports {
- newBindingParams(): mozIStorageBindingParams;
- addParams(aParameters: mozIStorageBindingParams): void;
- readonly length: u32;
+interface nsIAccessibilityService extends nsISupports {
+ getApplicationAccessible(): nsIAccessible;
+ getAccessibleFor(aNode: Node): nsIAccessible;
+ getAccessibleDescendantFor(aNode: Node): nsIAccessible;
+ getStringRole(aRole: u32): string;
+ getStringStates(aStates: u32, aExtraStates: u32): nsISupports;
+ getStringEventType(aEventType: u32): string;
+ getStringRelationType(aRelationType: u32): string;
+ getAccessibleFromCache(aNode: Node): nsIAccessible;
+ setCacheDomains(aCacheDomains: u64): void;
+ createAccessiblePivot(aRoot: nsIAccessible): nsIAccessiblePivot;
+ createTextLeafPoint(aAccessible: nsIAccessible, aOffset: i32): nsIAccessibleTextLeafPoint;
+ setLogging(aModules: string): void;
+ isLogged(aModule: string): boolean;
+ getConsumers(): string;
}
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageCompletionCallback.idl
-
-type mozIStorageCompletionCallback = Callable<{
- complete(status: nsresult, value?: nsISupports): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageConnection.idl
-
-interface mozIStorageConnection extends mozIStorageAsyncConnection {
- close(): void;
- clone(aReadOnly?: boolean): mozIStorageConnection;
- readonly defaultPageSize: i32;
- readonly connectionReady: boolean;
- readonly lastInsertRowID: i64;
- readonly affectedRows: i32;
- readonly lastError: i32;
- readonly lastErrorString: string;
- schemaVersion: i32;
- createStatement(aSQLStatement: string): mozIStorageStatement;
- executeSimpleSQL(aSQLStatement: string): void;
- tableExists(aTableName: string): boolean;
- indexExists(aIndexName: string): boolean;
- beginTransaction(): void;
- commitTransaction(): void;
- rollbackTransaction(): void;
- createTable(aTableName: string, aTableSchema: string): void;
- setGrowthIncrement(aIncrement: i32, aDatabaseName: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageError.idl
-
-interface mozIStorageError extends nsISupports {
- readonly ERROR: 1;
- readonly INTERNAL: 2;
- readonly PERM: 3;
- readonly ABORT: 4;
- readonly BUSY: 5;
- readonly LOCKED: 6;
- readonly NOMEM: 7;
- readonly READONLY: 8;
- readonly INTERRUPT: 9;
- readonly IOERR: 10;
- readonly CORRUPT: 11;
- readonly FULL: 13;
- readonly CANTOPEN: 14;
- readonly EMPTY: 16;
- readonly SCHEMA: 17;
- readonly TOOBIG: 18;
- readonly CONSTRAINT: 19;
- readonly MISMATCH: 20;
- readonly MISUSE: 21;
- readonly NOLFS: 22;
- readonly AUTH: 23;
- readonly FORMAT: 24;
- readonly RANGE: 25;
- readonly NOTADB: 26;
-
- readonly result: i32;
- readonly message: string;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageFunction.idl
-
-type mozIStorageFunction = Callable<{
- onFunctionCall(aFunctionArguments: mozIStorageValueArray): nsIVariant;
-}>
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStoragePendingStatement.idl
-
-interface mozIStoragePendingStatement extends nsISupports {
- cancel(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageProgressHandler.idl
-
-interface mozIStorageProgressHandler extends nsISupports {
- onProgress(aConnection: mozIStorageConnection): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageResultSet.idl
-
-interface mozIStorageResultSet extends nsISupports {
- getNextRow(): mozIStorageRow;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageRow.idl
-
-interface mozIStorageRow extends mozIStorageValueArray {
- getResultByIndex(aIndex: u32): nsIVariant;
- getResultByName(aName: string): nsIVariant;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageService.idl
-
-interface mozIStorageService extends nsISupports {
- readonly OPEN_DEFAULT: 0;
- readonly OPEN_SHARED: 1;
- readonly OPEN_READONLY: 2;
- readonly OPEN_IGNORE_LOCKING_MODE: 4;
- readonly OPEN_NOT_EXCLUSIVE: 8;
- readonly CONNECTION_DEFAULT: 0;
- readonly CONNECTION_INTERRUPTIBLE: 1;
-
- openAsyncDatabase(aDatabaseStore: nsIVariant, aOpenFlags: u32, aConnectionFlags: u32, aCallback: mozIStorageCompletionCallback): void;
- openSpecialDatabase(aStorageKey: string, aName?: string, aConnectionFlags?: u32): mozIStorageConnection;
- openDatabase(aDatabaseFile: nsIFile, aConnectionFlags?: u32): mozIStorageConnection;
- openUnsharedDatabase(aDatabaseFile: nsIFile, aConnectionFlags?: u32): mozIStorageConnection;
- openDatabaseWithFileURL(aFileURL: nsIFileURL, aTelemetryFilename?: string, aConnectionFlags?: u32): mozIStorageConnection;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageStatement.idl
-
-interface mozIStorageStatement extends mozIStorageBaseStatement {
- readonly VALUE_TYPE_NULL: 0;
- readonly VALUE_TYPE_INTEGER: 1;
- readonly VALUE_TYPE_FLOAT: 2;
- readonly VALUE_TYPE_TEXT: 3;
- readonly VALUE_TYPE_BLOB: 4;
-
- clone(): mozIStorageStatement;
- readonly parameterCount: u32;
- getParameterName(aParamIndex: u32): string;
- getParameterIndex(aName: string): u32;
- readonly columnCount: u32;
- getColumnName(aColumnIndex: u32): string;
- getColumnIndex(aName: string): u32;
- reset(): void;
- execute(): void;
- executeStep(): boolean;
- readonly numEntries: u32;
- getTypeOfIndex(aIndex: u32): i32;
- getVariant(aIndex: u32): nsIVariant;
- getInt32(aIndex: u32): i32;
- getInt64(aIndex: u32): i64;
- getDouble(aIndex: u32): double;
- getUTF8String(aIndex: u32): string;
- getString(aIndex: u32): string;
- getBlob(aIndex: u32, aDataSize: OutParam, aData: OutParam): void;
- getBlobAsString(aIndex: u32): string;
- getBlobAsUTF8String(aIndex: u32): string;
- getIsNull(aIndex: u32): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageStatementCallback.idl
-
-interface mozIStorageStatementCallback extends nsISupports {
- readonly REASON_FINISHED: 0;
- readonly REASON_CANCELED: 1;
- readonly REASON_ERROR: 2;
-
- handleResult(aResultSet: mozIStorageResultSet): void;
- handleError(aError: mozIStorageError): void;
- handleCompletion(aReason: u16): void;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageVacuumParticipant.idl
-
-interface mozIStorageVacuumParticipant extends nsISupports {
- readonly expectedDatabasePageSize: i32;
- readonly useIncrementalVacuum: boolean;
- readonly databaseConnection: mozIStorageAsyncConnection;
- onBeginVacuum(): boolean;
- onEndVacuum(aSucceeded: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/storage/mozIStorageValueArray.idl
-
-interface mozIStorageValueArray extends nsISupports {
- readonly VALUE_TYPE_NULL: 0;
- readonly VALUE_TYPE_INTEGER: 1;
- readonly VALUE_TYPE_FLOAT: 2;
- readonly VALUE_TYPE_TEXT: 3;
- readonly VALUE_TYPE_BLOB: 4;
-
- readonly numEntries: u32;
- getTypeOfIndex(aIndex: u32): i32;
- getInt32(aIndex: u32): i32;
- getInt64(aIndex: u32): i64;
- getDouble(aIndex: u32): double;
- getUTF8String(aIndex: u32): string;
- getString(aIndex: u32): string;
- getBlob(aIndex: u32, aDataSize: OutParam, aData: OutParam): void;
- getBlobAsString(aIndex: u32): string;
- getBlobAsUTF8String(aIndex: u32): string;
- getIsNull(aIndex: u32): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/remote/nsIRemoteService.idl
-
-interface nsIRemoteService extends nsISupports {
- sendCommandLine(aProfile: string, aArgs: string[], aRaise?: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsCURILoader.idl
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIContentHandler.idl
-
-interface nsIContentHandler extends nsISupports {
- handleContent(aContentType: string, aWindowContext: nsIInterfaceRequestor, aRequest: nsIRequest): void;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIDocumentLoader.idl
-
-interface nsIDocumentLoader extends nsISupports {
- stop(): void;
- readonly container: nsISupports;
- readonly loadGroup: nsILoadGroup;
- readonly documentChannel: nsIChannel;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsITransfer.idl
-
-interface nsITransfer extends nsIWebProgressListener2 {
- readonly DOWNLOAD_ACCEPTABLE: 0;
- readonly DOWNLOAD_FORBIDDEN: 1;
- readonly DOWNLOAD_POTENTIALLY_UNSAFE: 2;
-
- init(aSource: nsIURI, aSourceOriginalURI: nsIURI, aTarget: nsIURI, aDisplayName: string, aMIMEInfo: nsIMIMEInfo, startTime: PRTime, aTempFile: nsIFile, aCancelable: nsICancelable, aIsPrivate: boolean, aDownloadClassification: i32, aReferrerInfo: nsIReferrerInfo, aOpenDownloadsListOnStart?: boolean): void;
- initWithBrowsingContext(aSource: nsIURI, aTarget: nsIURI, aDisplayName: string, aMIMEInfo: nsIMIMEInfo, startTime: PRTime, aTempFile: nsIFile, aCancelable: nsICancelable, aIsPrivate: boolean, aDownloadClassification: i32, aReferrerInfo: nsIReferrerInfo, aOpenDownloadsListOnStart: boolean, aBrowsingContext: BrowsingContext, aHandleInternally: boolean, aHttpChannel: nsIHttpChannel): void;
- setSha256Hash(aHash: string): void;
- setSignatureInfo(aSignatureInfo: u8[][][]): void;
- setRedirects(aRedirects: nsIArray): void;
- readonly downloadPromise: Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIURIContentListener.idl
-
-interface nsIURIContentListener extends nsISupports {
- doContent(aContentType: string, aIsContentPreferred: boolean, aRequest: nsIRequest, aContentHandler: OutParam): boolean;
- isPreferred(aContentType: string, aDesiredContentType: OutParam): boolean;
- canHandleContent(aContentType: string, aIsContentPreferred: boolean, aDesiredContentType: OutParam): boolean;
- loadCookie: nsISupports;
- parentContentListener: nsIURIContentListener;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIURILoader.idl
-
-interface nsIURILoader extends nsISupports {
- readonly IS_CONTENT_PREFERRED: 1;
- readonly DONT_RETARGET: 2;
-
- registerContentListener(aContentListener: nsIURIContentListener): void;
- unRegisterContentListener(aContentListener: nsIURIContentListener): void;
- openURI(aChannel: nsIChannel, aFlags: u32, aWindowContext: nsIInterfaceRequestor): void;
- openChannel(aChannel: nsIChannel, aFlags: u32, aWindowContext: nsIInterfaceRequestor): nsIStreamListener;
- stop(aLoadCookie: nsISupports): void;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIWebProgress.idl
-
-interface nsIWebProgress extends nsISupports {
- readonly NOTIFY_STATE_REQUEST: 1;
- readonly NOTIFY_STATE_DOCUMENT: 2;
- readonly NOTIFY_STATE_NETWORK: 4;
- readonly NOTIFY_STATE_WINDOW: 8;
- readonly NOTIFY_STATE_ALL: 15;
- readonly NOTIFY_PROGRESS: 16;
- readonly NOTIFY_STATUS: 32;
- readonly NOTIFY_SECURITY: 64;
- readonly NOTIFY_LOCATION: 128;
- readonly NOTIFY_REFRESH: 256;
- readonly NOTIFY_CONTENT_BLOCKING: 512;
- readonly NOTIFY_ALL: 1023;
-
- addProgressListener(aListener: nsIWebProgressListener, aNotifyMask: u32): void;
- removeProgressListener(aListener: nsIWebProgressListener): void;
- readonly browsingContext: BrowsingContext;
- readonly DOMWindow: mozIDOMWindowProxy;
- readonly isTopLevel: boolean;
- readonly isLoadingDocument: boolean;
- readonly loadType: u32;
- target: nsIEventTarget;
- readonly documentRequest: nsIRequest;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIWebProgressListener.idl
-
-interface nsIWebProgressListener extends nsISupports {
- readonly STATE_START: 1;
- readonly STATE_REDIRECTING: 2;
- readonly STATE_TRANSFERRING: 4;
- readonly STATE_NEGOTIATING: 8;
- readonly STATE_STOP: 16;
- readonly STATE_IS_REQUEST: 65536;
- readonly STATE_IS_DOCUMENT: 131072;
- readonly STATE_IS_NETWORK: 262144;
- readonly STATE_IS_WINDOW: 524288;
- readonly STATE_IS_REDIRECTED_DOCUMENT: 1048576;
- readonly STATE_RESTORING: 16777216;
- readonly STATE_IS_INSECURE: 4;
- readonly STATE_IS_BROKEN: 1;
- readonly STATE_IS_SECURE: 2;
- readonly STATE_BLOCKED_MIXED_ACTIVE_CONTENT: 16;
- readonly STATE_LOADED_MIXED_ACTIVE_CONTENT: 32;
- readonly STATE_BLOCKED_MIXED_DISPLAY_CONTENT: 256;
- readonly STATE_LOADED_MIXED_DISPLAY_CONTENT: 512;
- readonly STATE_IDENTITY_EV_TOPLEVEL: 1048576;
- readonly STATE_IDENTITY_ASSOCIATED: 2097152;
- readonly STATE_USES_SSL_3: 16777216;
- readonly STATE_USES_WEAK_CRYPTO: 33554432;
- readonly STATE_CERT_USER_OVERRIDDEN: 67108864;
- readonly STATE_BLOCKED_TRACKING_CONTENT: 4096;
- readonly STATE_LOADED_LEVEL_1_TRACKING_CONTENT: 8192;
- readonly STATE_LOADED_LEVEL_2_TRACKING_CONTENT: 1048576;
- readonly STATE_BLOCKED_FINGERPRINTING_CONTENT: 64;
- readonly STATE_LOADED_FINGERPRINTING_CONTENT: 1024;
- readonly STATE_REPLACED_FINGERPRINTING_CONTENT: 134217728;
- readonly STATE_ALLOWED_FINGERPRINTING_CONTENT: 512;
- readonly STATE_BLOCKED_CRYPTOMINING_CONTENT: 2048;
- readonly STATE_LOADED_CRYPTOMINING_CONTENT: 2097152;
- readonly STATE_BLOCKED_UNSAFE_CONTENT: 16384;
- readonly STATE_COOKIES_LOADED: 32768;
- readonly STATE_COOKIES_LOADED_TRACKER: 262144;
- readonly STATE_COOKIES_LOADED_SOCIALTRACKER: 524288;
- readonly STATE_COOKIES_BLOCKED_BY_PERMISSION: 268435456;
- readonly STATE_COOKIES_BLOCKED_TRACKER: 536870912;
- readonly STATE_COOKIES_BLOCKED_SOCIALTRACKER: 16777216;
- readonly STATE_COOKIES_BLOCKED_ALL: 1073741824;
- readonly STATE_COOKIES_PARTITIONED_TRACKER: 2;
- readonly STATE_COOKIES_PARTITIONED_FOREIGN: 2147483648;
- readonly STATE_COOKIES_BLOCKED_FOREIGN: 128;
- readonly STATE_BLOCKED_SOCIALTRACKING_CONTENT: 65536;
- readonly STATE_LOADED_SOCIALTRACKING_CONTENT: 131072;
- readonly STATE_REPLACED_TRACKING_CONTENT: 16;
- readonly STATE_ALLOWED_TRACKING_CONTENT: 32;
- readonly STATE_BLOCKED_EMAILTRACKING_CONTENT: 4194304;
- readonly STATE_LOADED_EMAILTRACKING_LEVEL_1_CONTENT: 8388608;
- readonly STATE_LOADED_EMAILTRACKING_LEVEL_2_CONTENT: 256;
- readonly STATE_ALLOWED_CANVAS_FINGERPRINTING: 33554432;
- readonly STATE_ALLOWED_FONT_FINGERPRINTING: 67108864;
- readonly STATE_BLOCKED_SUSPICIOUS_FINGERPRINTING: 4;
- readonly STATE_PURGED_BOUNCETRACKER: 8;
- readonly STATE_HTTPS_ONLY_MODE_UPGRADED: 4194304;
- readonly STATE_HTTPS_ONLY_MODE_UPGRADE_FAILED: 8388608;
- readonly STATE_HTTPS_ONLY_MODE_UPGRADED_FIRST: 134217728;
- readonly LOCATION_CHANGE_SAME_DOCUMENT: 1;
- readonly LOCATION_CHANGE_ERROR_PAGE: 2;
- readonly LOCATION_CHANGE_RELOAD: 4;
- readonly LOCATION_CHANGE_HASHCHANGE: 8;
- readonly LOCATION_CHANGE_SESSION_STORE: 16;
-
- onStateChange(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aStateFlags: u32, aStatus: nsresult): void;
- onProgressChange(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aCurSelfProgress: i32, aMaxSelfProgress: i32, aCurTotalProgress: i32, aMaxTotalProgress: i32): void;
- onLocationChange(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aLocation: nsIURI, aFlags?: u32): void;
- onStatusChange(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aStatus: nsresult, aMessage: string): void;
- onSecurityChange(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aState: u32): void;
- onContentBlockingEvent(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aEvent: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/uriloader/base/nsIWebProgressListener2.idl
-
-interface nsIWebProgressListener2 extends nsIWebProgressListener {
- onProgressChange64(aWebProgress: nsIWebProgress, aRequest: nsIRequest, aCurSelfProgress: i64, aMaxSelfProgress: i64, aCurTotalProgress: i64, aMaxTotalProgress: i64): void;
- onRefreshAttempted(aWebProgress: nsIWebProgress, aRefreshURI: nsIURI, aMillis: u32, aSameURI: boolean): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/mime/nsIMIMEHeaderParam.idl
-
-interface nsIMIMEHeaderParam extends nsISupports {
- getParameter(aHeaderVal: string, aParamName: string, aFallbackCharset: string, aTryLocaleCharset: boolean, aLang: OutParam): string;
- getParameterHTTP(aHeaderVal: string, aParamName: string, aFallbackCharset: string, aTryLocaleCharset: boolean, aLang: OutParam): string;
- decodeRFC5987Param(aParamVal: string, aLang: OutParam): string;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/mime/nsIMIMEInfo.idl
-
-interface nsIHandlerInfo extends nsISupports {
- readonly saveToDisk: 0;
- readonly alwaysAsk: 1;
- readonly useHelperApp: 2;
- readonly handleInternally: 3;
- readonly useSystemDefault: 4;
-
- readonly type: string;
- description: string;
- preferredApplicationHandler: nsIHandlerApp;
- readonly possibleApplicationHandlers: nsIMutableArray;
- readonly hasDefaultHandler: boolean;
- readonly defaultDescription: string;
- readonly defaultExecutable: nsIFile;
- launchWithURI(aURI: nsIURI, aBrowsingContext?: BrowsingContext): void;
- preferredAction: nsHandlerInfoAction;
- alwaysAskBeforeHandling: boolean;
-}
-
-interface nsIMIMEInfo extends nsIHandlerInfo {
- getFileExtensions(): nsIUTF8StringEnumerator;
- setFileExtensions(aExtensions: string): void;
- extensionExists(aExtension: string): boolean;
- appendExtension(aExtension: string): void;
- primaryExtension: string;
- readonly MIMEType: string;
- equals(aMIMEInfo: nsIMIMEInfo): boolean;
- readonly possibleLocalHandlers: nsIArray;
- launchWithFile(aFile: nsIFile): void;
- isCurrentAppOSDefault(): boolean;
-}
-
-interface nsIHandlerApp extends nsISupports {
- name: string;
- detailedDescription: string;
- equals(aHandlerApp: nsIHandlerApp): boolean;
- launchWithURI(aURI: nsIURI, aBrowsingContext?: BrowsingContext): void;
-}
-
-interface nsILocalHandlerApp extends nsIHandlerApp {
- executable: nsIFile;
- readonly parameterCount: u32;
- prettyNameAsync(): Promise;
- clearParameters(): void;
- appendParameter(param: string): void;
- getParameter(parameterIndex: u32): string;
- parameterExists(param: string): boolean;
-}
-
-interface nsIWebHandlerApp extends nsIHandlerApp {
- uriTemplate: string;
-}
-
-interface nsIDBusHandlerApp extends nsIHandlerApp {
- service: string;
- objectPath: string;
- dBusInterface: string;
- method: string;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/mime/nsIMIMEService.idl
-
-interface nsIMIMEService extends nsISupports {
- readonly VALIDATE_DEFAULT: 0;
- readonly VALIDATE_SANITIZE_ONLY: 1;
- readonly VALIDATE_DONT_COLLAPSE_WHITESPACE: 2;
- readonly VALIDATE_DONT_TRUNCATE: 4;
- readonly VALIDATE_GUESS_FROM_EXTENSION: 8;
- readonly VALIDATE_ALLOW_EMPTY: 16;
- readonly VALIDATE_NO_DEFAULT_FILENAME: 32;
- readonly VALIDATE_FORCE_APPEND_EXTENSION: 64;
- readonly VALIDATE_ALLOW_INVALID_FILENAMES: 128;
- readonly VALIDATE_ALLOW_DIRECTORY_NAMES: 256;
-
- getFromTypeAndExtension(aMIMEType: string, aFileExt: string): nsIMIMEInfo;
- getTypeFromExtension(aFileExt: string): string;
- getTypeFromURI(aURI: nsIURI): string;
- getDefaultTypeFromURI(aURI: nsIURI): string;
- getTypeFromFile(aFile: nsIFile): string;
- getPrimaryExtension(aMIMEType: string, aFileExt: string): string;
- getMIMEInfoFromOS(aType: string, aFileExtension: string, aFound: OutParam): nsIMIMEInfo;
- updateDefaultAppInfo(aMIMEInfo: nsIMIMEInfo): void;
- getValidFileName(aChannel: nsIChannel, aType: string, aOriginalURI: nsIURI, aFlags: u32): string;
- validateFileNameForSaving(aFileName: string, aType: string, aFlags: u32): string;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsICookie.idl
-
-} // global
-
-declare namespace nsICookie {
-
-enum schemeType {
- SCHEME_UNSET = 0,
- SCHEME_HTTP = 1,
- SCHEME_HTTPS = 2,
- SCHEME_FILE = 4,
-}
-
-}
-
-declare global {
-
-interface nsICookie extends nsISupports, Enums {
- readonly SAMESITE_NONE: 0;
- readonly SAMESITE_LAX: 1;
- readonly SAMESITE_STRICT: 2;
-
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessible.idl
+
+interface nsIAccessible extends nsISupports {
+ readonly parent: nsIAccessible;
+ readonly nextSibling: nsIAccessible;
+ readonly previousSibling: nsIAccessible;
+ readonly firstChild: nsIAccessible;
+ readonly lastChild: nsIAccessible;
+ readonly children: nsIArray;
+ readonly childCount: i32;
+ readonly indexInParent: i32;
+ readonly uniqueID: i64;
+ readonly DOMNode: Node;
+ readonly id: string;
+ readonly document: nsIAccessibleDocument;
+ readonly rootDocument: nsIAccessibleDocument;
+ readonly language: string;
readonly name: string;
readonly value: string;
- readonly isDomain: boolean;
- readonly host: string;
- readonly rawHost: string;
- readonly path: string;
- readonly isSecure: boolean;
- readonly expires: u64;
- readonly expiry: i64;
- readonly originAttributes: any;
- readonly isSession: boolean;
- readonly isHttpOnly: boolean;
- readonly creationTime: i64;
- readonly lastAccessed: i64;
- readonly sameSite: i32;
- readonly schemeMap: nsICookie.schemeType;
- readonly isPartitioned: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsICookieJarSettings.idl
-
-interface nsICookieJarSettings extends nsISerializable {
- readonly cookieBehavior: u32;
- readonly isFirstPartyIsolated: boolean;
- readonly shouldResistFingerprinting: boolean;
- readonly rejectThirdPartyContexts: boolean;
- readonly limitForeignContexts: boolean;
- readonly blockingAllThirdPartyContexts: boolean;
- readonly blockingAllContexts: boolean;
- partitionForeign: boolean;
- readonly isOnContentBlockingAllowList: boolean;
- readonly partitionKey: string;
- readonly fingerprintingRandomizationKey: u8[];
- cookiePermission(aPrincipal: nsIPrincipal): u32;
- initWithURI(aURI: nsIURI, aIsPrivate: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsICookieManager.idl
-
-interface nsICookieManager extends nsISupports {
- removeAll(): void;
- readonly cookies: nsICookie[];
- readonly sessionCookies: nsICookie[];
- getCookieBehavior(aIsPrivate: boolean): u32;
- remove(aHost: string, aName: string, aPath: string, aOriginAttributes: any): void;
- add(aHost: string, aPath: string, aName: string, aValue: string, aIsSecure: boolean, aIsHttpOnly: boolean, aIsSession: boolean, aExpiry: i64, aOriginAttributes: any, aSameSite: i32, aSchemeMap: nsICookie.schemeType, aIsPartitioned?: boolean): void;
- cookieExists(aHost: string, aPath: string, aName: string, aOriginAttributes: any): boolean;
- countCookiesFromHost(aHost: string): u32;
- getCookiesFromHost(aHost: string, aOriginAttributes: any, aSorted?: boolean): nsICookie[];
- getCookiesWithOriginAttributes(aPattern: string, aHost?: string, aSorted?: boolean): nsICookie[];
- removeCookiesWithOriginAttributes(aPattern: string, aHost?: string): void;
- removeCookiesFromExactHost(aHost: string, aPattern: string): void;
- removeAllSince(aSinceWhen: i64): Promise;
- getCookiesSince(aSinceWhen: i64): nsICookie[];
- addThirdPartyCookieBlockingExceptions(aExcpetions: nsIThirdPartyCookieExceptionEntry[]): void;
- removeThirdPartyCookieBlockingExceptions(aExceptions: nsIThirdPartyCookieExceptionEntry[]): void;
- testGet3PCBExceptions(): string[];
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsICookieNotification.idl
-
-} // global
-
-declare namespace nsICookieNotification {
-
-enum Action {
- COOKIE_DELETED = 0,
- COOKIE_ADDED = 1,
- COOKIE_CHANGED = 2,
- ALL_COOKIES_CLEARED = 3,
- COOKIES_BATCH_DELETED = 4,
-}
-
-}
-
-declare global {
-
-interface nsICookieNotification extends nsISupports, Enums {
- readonly action: nsICookieNotification.Action;
- readonly cookie: nsICookie;
- readonly baseDomain: string;
- readonly isThirdParty: boolean;
- readonly batchDeletedCookies: nsIArray;
- readonly browsingContextId: u64;
- readonly browsingContext: BrowsingContext;
- readonly operationID: nsID;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsICookiePermission.idl
-
-interface nsICookiePermission extends nsISupports {
- readonly ACCESS_DEFAULT: 0;
- readonly ACCESS_ALLOW: 1;
- readonly ACCESS_DENY: 2;
- readonly ACCESS_SESSION: 8;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsICookieService.idl
-
-type nsICookieTransactionCallback = Callable<{
- callback(): void;
-}>
-
-interface nsICookieService extends nsISupports {
- readonly BEHAVIOR_ACCEPT: 0;
- readonly BEHAVIOR_REJECT_FOREIGN: 1;
- readonly BEHAVIOR_REJECT: 2;
- readonly BEHAVIOR_LIMIT_FOREIGN: 3;
- readonly BEHAVIOR_REJECT_TRACKER: 4;
- readonly BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN: 5;
- readonly BEHAVIOR_LAST: 5;
-
- getCookieStringFromHttp(aURI: nsIURI, aChannel: nsIChannel): string;
- setCookieStringFromHttp(aURI: nsIURI, aCookie: string, aChannel: nsIChannel): void;
- runInTransaction(aCallback: nsICookieTransactionCallback): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cookie/nsIThirdPartyCookieBlockingExceptionListService.idl
-
-interface nsIThirdPartyCookieBlockingExceptionListService extends nsISupports {
- init(): Promise;
- shutdown(): void;
-}
-
-interface nsIThirdPartyCookieExceptionEntry extends nsISupports {
- readonly firstPartySite: string;
- readonly thirdPartySite: string;
- serialize(): string;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/asyncshutdown/nsIAsyncShutdown.idl
-
-interface nsIAsyncShutdownBlocker extends nsISupports {
- readonly name: string;
- blockShutdown(aBarrierClient: nsIAsyncShutdownClient): void;
- readonly state: nsIPropertyBag;
-}
-
-interface nsIAsyncShutdownClient extends nsISupports {
- readonly name: string;
- readonly isClosed: boolean;
- addBlocker(aBlocker: nsIAsyncShutdownBlocker, aFileName: string, aLineNumber: i32, aStack: string): void;
- removeBlocker(aBlocker: nsIAsyncShutdownBlocker): void;
- readonly jsclient: any;
-}
-
-type nsIAsyncShutdownCompletionCallback = Callable<{
- done(): void;
-}>
-
-interface nsIAsyncShutdownBarrier extends nsISupports {
- readonly client: nsIAsyncShutdownClient;
- readonly state: nsIPropertyBag;
- wait(aOnReady: nsIAsyncShutdownCompletionCallback): void;
-}
-
-interface nsIAsyncShutdownService extends nsISupports {
- makeBarrier(aName: string): nsIAsyncShutdownBarrier;
- readonly profileBeforeChange: nsIAsyncShutdownClient;
- readonly profileChangeTeardown: nsIAsyncShutdownClient;
- readonly quitApplicationGranted: nsIAsyncShutdownClient;
- readonly sendTelemetry: nsIAsyncShutdownClient;
- readonly webWorkersShutdown: nsIAsyncShutdownClient;
- readonly xpcomWillShutdown: nsIAsyncShutdownClient;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/terminator/nsITerminatorTest.idl
-
-interface nsITerminatorTest extends nsISupports {
- getTicksForShutdownPhases(): any;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/browser/nsIWebBrowser.idl
-
-interface nsIWebBrowser extends nsISupports {
- containerWindow: nsIWebBrowserChrome;
- readonly contentDOMWindow: mozIDOMWindowProxy;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/browser/nsIWebBrowserChrome.idl
-
-interface nsIWebBrowserChrome extends nsISupports {
- readonly CHROME_DEFAULT: 1;
- readonly CHROME_WINDOW_BORDERS: 2;
- readonly CHROME_WINDOW_CLOSE: 4;
- readonly CHROME_WINDOW_RESIZE: 8;
- readonly CHROME_MENUBAR: 16;
- readonly CHROME_TOOLBAR: 32;
- readonly CHROME_LOCATIONBAR: 64;
- readonly CHROME_STATUSBAR: 128;
- readonly CHROME_PERSONAL_TOOLBAR: 256;
- readonly CHROME_SCROLLBARS: 512;
- readonly CHROME_TITLEBAR: 1024;
- readonly CHROME_EXTRA: 2048;
- readonly CHROME_ALL: 4094;
- readonly CHROME_WINDOW_MINIMIZE: 16384;
- readonly CHROME_ALERT: 32768;
- readonly CHROME_PRIVATE_WINDOW: 65536;
- readonly CHROME_NON_PRIVATE_WINDOW: 131072;
- readonly CHROME_PRIVATE_LIFETIME: 262144;
- readonly CHROME_ALWAYS_ON_TOP: 524288;
- readonly CHROME_REMOTE_WINDOW: 1048576;
- readonly CHROME_FISSION_WINDOW: 2097152;
- readonly CHROME_SUPPRESS_ANIMATION: 16777216;
- readonly CHROME_CENTER_SCREEN: 134217728;
- readonly CHROME_DEPENDENT: 268435456;
- readonly CHROME_MODAL: 536870912;
- readonly CHROME_OPENAS_DIALOG: 1073741824;
- readonly CHROME_OPENAS_CHROME: 2147483648;
- readonly CHROME_MINIMAL_POPUP: 18126;
-
- setLinkStatus(status: string): void;
- chromeFlags: u32;
- showAsModal(): void;
- isWindowModal(): boolean;
- blur(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/browser/nsIWebBrowserPrint.idl
-
-interface nsIWebBrowserPrint extends nsISupports {
- readonly PRINTPREVIEW_GOTO_PAGENUM: 0;
- readonly PRINTPREVIEW_PREV_PAGE: 1;
- readonly PRINTPREVIEW_NEXT_PAGE: 2;
- readonly PRINTPREVIEW_HOME: 3;
- readonly PRINTPREVIEW_END: 4;
-
- readonly doingPrint: boolean;
- readonly doingPrintPreview: boolean;
- readonly rawNumPages: i32;
- readonly printPreviewNumPages: i32;
- readonly printPreviewCurrentPageNumber: i32;
- closeWindowAfterPrint: boolean;
- printPreviewScrollToPage(aNavType: i16, aPageNum: i32): void;
- exitPrintPreview(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIAppShell.idl
-
-// https://searchfox.org/mozilla-central/source/widget/nsIBaseWindow.idl
-
-interface nsIBaseWindow extends nsISupports {
- readonly eRepaint: 1;
- readonly eDelayResize: 2;
-
- destroy(): void;
- setPosition(x: i32, y: i32): void;
- setPositionDesktopPix(x: i32, y: i32): void;
- getPosition(x: OutParam, y: OutParam): void;
- setSize(cx: i32, cy: i32, fRepaint: boolean): void;
- getSize(cx: OutParam, cy: OutParam): void;
- setPositionAndSize(x: i32, y: i32, cx: i32, cy: i32, flags: u32): void;
- getPositionAndSize(x: OutParam, y: OutParam, cx: OutParam, cy: OutParam): void;
- repaint(force: boolean): void;
- readonly nativeHandle: string;
- visibility: boolean;
- enabled: boolean;
- readonly devicePixelsPerDesktopPixel: double;
- title: string;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIBidiKeyboard.idl
-
-interface nsIBidiKeyboard extends nsISupports {
- reset(): void;
- isLangRTL(): boolean;
- readonly haveBidiKeyboards: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIClipboard.idl
-
-interface nsIAsyncSetClipboardData extends nsISupports {
- setData(aTransferable: nsITransferable, aOwner?: nsIClipboardOwner): void;
- abort(aReason: nsresult): void;
-}
-
-type nsIAsyncClipboardRequestCallback = Callable<{
- onComplete(aResult: nsresult): void;
-}>
-
-interface nsIClipboardDataSnapshot extends nsISupports {
- readonly valid: boolean;
- readonly flavorList: string[];
- getData(aTransferable: nsITransferable, aCallback: nsIAsyncClipboardRequestCallback): void;
- getDataSync(aTransferable: nsITransferable): void;
-}
-
-interface nsIClipboardGetDataSnapshotCallback extends nsISupports {
- onSuccess(aClipboardDataSnapshot: nsIClipboardDataSnapshot): void;
- onError(aResult: nsresult): void;
-}
-
-} // global
-
-declare namespace nsIClipboard {
-
-enum ClipboardType {
- kSelectionClipboard = 0,
- kGlobalClipboard = 1,
- kFindClipboard = 2,
- kSelectionCache = 3,
-}
-
-}
-
-declare global {
-
-interface nsIClipboard extends nsISupports, Enums {
- setData(aTransferable: nsITransferable, anOwner: nsIClipboardOwner, aWhichClipboard: nsIClipboard.ClipboardType, aSettingWindowContext?: WindowContext): void;
- asyncSetData(aWhichClipboard: nsIClipboard.ClipboardType, aSettingWindowContext?: WindowContext, aCallback?: nsIAsyncClipboardRequestCallback): nsIAsyncSetClipboardData;
- getData(aTransferable: nsITransferable, aWhichClipboard: nsIClipboard.ClipboardType, aRequestingWindowContext?: WindowContext): void;
- getDataSnapshot(aFlavorList: string[], aWhichClipboard: nsIClipboard.ClipboardType, aRequestingWindowContext: WindowContext, aRequestingPrincipal: nsIPrincipal, aCallback: nsIClipboardGetDataSnapshotCallback): void;
- getDataSnapshotSync(aFlavorList: string[], aWhichClipboard: nsIClipboard.ClipboardType, aRequestingWindowContext?: WindowContext): nsIClipboardDataSnapshot;
- emptyClipboard(aWhichClipboard: nsIClipboard.ClipboardType): void;
- hasDataMatchingFlavors(aFlavorList: string[], aWhichClipboard: nsIClipboard.ClipboardType): boolean;
- isClipboardTypeSupported(aWhichClipboard: nsIClipboard.ClipboardType): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIClipboardHelper.idl
-
-} // global
-
-declare namespace nsIClipboardHelper {
-
-enum SensitiveData {
- NotSensitive = 0,
- Sensitive = 1,
-}
-
-}
-
-declare global {
-
-interface nsIClipboardHelper extends nsISupports, Enums {
- copyStringToClipboard(aString: string, aClipboardID: nsIClipboard.ClipboardType, aSettingWindowContext?: WindowContext, aSensitive?: nsIClipboardHelper.SensitiveData): void;
- copyString(aString: string, aSettingWindowContext?: WindowContext, aSensitive?: nsIClipboardHelper.SensitiveData): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIClipboardOwner.idl
-
-interface nsIClipboardOwner extends nsISupports {
- LosingOwnership(aTransferable: nsITransferable): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIColorPicker.idl
-
-interface nsIColorPickerShownCallback extends nsISupports {
- update(color: string): void;
- done(color: string): void;
-}
-
-interface nsIColorPicker extends nsISupports {
- init(browsingContext: BrowsingContext, title: string, initialColor: string, defaultColors: string[]): void;
- open(aColorPickerShownCallback: nsIColorPickerShownCallback): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIDisplayInfo.idl
-
-interface nsIDisplayInfo extends nsISupports {
- readonly id: i32;
- readonly connected: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIDragService.idl
-
-interface nsIDragService extends nsISupports {
- readonly DRAGDROP_ACTION_NONE: 0;
- readonly DRAGDROP_ACTION_COPY: 1;
- readonly DRAGDROP_ACTION_MOVE: 2;
- readonly DRAGDROP_ACTION_LINK: 4;
- readonly DRAGDROP_ACTION_UNINITIALIZED: 64;
-
- getCurrentSession(aWidgetProvider?: nsISupports): nsIDragSession;
- startDragSessionForTests(aWidgetProvider: nsISupports, aAllowedEffect: u32): void;
- suppress(): void;
- unsuppress(): void;
- getMockDragController(): nsIMockDragServiceController;
- readonly isMockService: boolean;
- neverAllowSessionIsSynthesizedForTests: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIDragSession.idl
-
-interface nsIDragSession extends nsISupports {
- canDrop: boolean;
- onlyChromeDrop: boolean;
- dragAction: u32;
- readonly numDropItems: u32;
- sourceWindowContext: WindowContext;
- sourceTopWindowContext: WindowContext;
- readonly sourceNode: Node;
- triggeringPrincipal: nsIPrincipal;
- csp: nsIContentSecurityPolicy;
- dataTransfer: DataTransfer;
- getData(aTransferable: nsITransferable, aItemIndex: u32): void;
- isDataFlavorSupported(aDataFlavor: string): boolean;
- userCancelled(): void;
- dragEventDispatchedToChildProcess(): void;
- updateDragEffect(): void;
- updateDragImage(aImage: Node, aImageX: i32, aImageY: i32): void;
- setDragEndPoint(aScreenX: i32, aScreenY: i32): void;
- setDragEndPointForTests(aScreenX: i32, aScreenY: i32): void;
- endDragSession(aDoneDrag: boolean, aKeyModifiers?: u32): void;
- sendStoreDropTargetAndDelayEndDragSession(aEvent: DragEvent): void;
- sendDispatchToDropTargetAndResumeEndDragSession(aShouldDrop: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIFilePicker.idl
-
-} // global
-
-declare namespace nsIFilePicker {
-
-enum Mode {
- modeOpen = 0,
- modeSave = 1,
- modeGetFolder = 2,
- modeOpenMultiple = 3,
-}
-
-enum ResultCode {
- returnOK = 0,
- returnCancel = 1,
- returnReplace = 2,
-}
-
-enum CaptureTarget {
- captureNone = 0,
- captureDefault = 1,
- captureUser = 2,
- captureEnv = 3,
-}
-
-}
-
-declare global {
-
-interface nsIFilePicker extends nsISupports, Enums {
- readonly filterAll: 1;
- readonly filterHTML: 2;
- readonly filterText: 4;
- readonly filterImages: 8;
- readonly filterXML: 16;
- readonly filterXUL: 32;
- readonly filterApps: 64;
- readonly filterAllowURLs: 128;
- readonly filterAudio: 256;
- readonly filterVideo: 512;
- readonly filterPDF: 1024;
-
- init(browsingContext: BrowsingContext, title: string, mode: nsIFilePicker.Mode): void;
- isModeSupported(mode: nsIFilePicker.Mode): Promise;
- appendFilters(filterMask: i32): void;
- appendFilter(title: string, filter: string): void;
- appendRawFilter(filter: string): void;
- defaultString: string;
- defaultExtension: string;
- filterIndex: i32;
- displayDirectory: nsIFile;
- displaySpecialDirectory: string;
- readonly file: nsIFile;
- readonly fileURL: nsIURI;
- readonly files: nsISimpleEnumerator;
- readonly domFileOrDirectory: nsISupports;
- readonly domFileOrDirectoryEnumerator: nsISimpleEnumerator;
- addToRecentDocs: boolean;
- open(aFilePickerShownCallback: nsIFilePickerShownCallback): void;
- readonly mode: nsIFilePicker.Mode;
- okButtonLabel: string;
- capture: nsIFilePicker.CaptureTarget;
-}
-
-type nsIFilePickerShownCallback = Callable<{
- done(aResult: nsIFilePicker.ResultCode): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/widget/nsIFormatConverter.idl
-
-interface nsIFormatConverter extends nsISupports {
- getInputDataFlavors(): string[];
- getOutputDataFlavors(): string[];
- canConvert(aFromDataFlavor: string, aToDataFlavor: string): boolean;
- convert(aFromDataFlavor: string, aFromData: nsISupports, aToDataFlavor: string, aToData: OutParam): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIGfxInfo.idl
-
-} // global
-
-declare namespace nsIGfxInfo {
-
-enum FontVisibilityDeviceDetermination {
- Unassigned = 0,
- Unknown_Platform = 1,
- Windows_Platform = 2,
- MacOS_Unknown = 3,
- Android_Unknown_Release_Version = 4,
- Android_Unknown_Peloton = 5,
- Android_Unknown_vbox = 6,
- Android_Unknown_mitv = 7,
- Android_Chromebook = 8,
- Android_Amazon = 9,
- Android_sub_9 = 10,
- Android_9_11 = 11,
- Android_12_plus = 12,
- Linux_Unknown = 13,
- Linux_Ubuntu_any = 14,
- Linux_Ubuntu_20 = 15,
- Linux_Ubuntu_22 = 16,
- Linux_Fedora_any = 17,
- Linux_Fedora_38 = 18,
- Linux_Fedora_39 = 19,
- MacOS_13_plus = 20,
- MacOS_sub_13 = 21,
-}
-
-}
-
-declare global {
-
-interface nsIGfxInfo extends nsISupports, Enums {
- readonly D2DEnabled: boolean;
- readonly DWriteEnabled: boolean;
- readonly EmbeddedInFirefoxReality: boolean;
- readonly AzureCanvasBackend: string;
- readonly AzureContentBackend: string;
- readonly usingGPUProcess: boolean;
- readonly usingRemoteCanvas: boolean;
- readonly usingAcceleratedCanvas: boolean;
- readonly hasBattery: boolean;
- readonly DWriteVersion: string;
- readonly cleartypeParameters: string;
- readonly textScaleFactor: float;
- readonly windowProtocol: string;
- readonly testType: string;
- readonly ContentBackend: string;
- readonly isHeadless: boolean;
- readonly TargetFrameRate: u32;
- readonly CodecSupportInfo: string;
- readonly fontVisibilityDetermination: nsIGfxInfo.FontVisibilityDeviceDetermination;
- readonly fontVisibilityDeterminationStr: string;
- readonly adapterDescription: string;
- readonly adapterDescription2: string;
- readonly adapterDriver: string;
- readonly adapterDriver2: string;
- readonly adapterVendorID: string;
- readonly adapterVendorID2: string;
- readonly adapterDeviceID: string;
- readonly adapterDeviceID2: string;
- readonly adapterSubsysID: string;
- readonly adapterSubsysID2: string;
- readonly adapterRAM: u32;
- readonly adapterRAM2: u32;
- readonly adapterDriverVendor: string;
- readonly adapterDriverVendor2: string;
- readonly adapterDriverVersion: string;
- readonly adapterDriverVersion2: string;
- readonly adapterDriverDate: string;
- readonly adapterDriverDate2: string;
- readonly isGPU2Active: boolean;
- readonly drmRenderDevice: string;
- getMonitors(): any;
- getFailures(indices: OutParam): string[];
- getFeatureStatus(aFeature: i32, aFailureId?: OutParam): i32;
- getFeatureStatusStr(aFeature: string, aFailureId?: OutParam): string;
- getFeatureSuggestedDriverVersion(aFeature: i32): string;
- getFeatureSuggestedDriverVersionStr(aFeature: string): string;
- getInfo(): any;
- getFeatureLog(): any;
- getFeatures(): any;
- getActiveCrashGuards(): any;
- controlGPUProcessForXPCShell(aEnable: boolean): boolean;
- killGPUProcessForTests(): void;
- crashGPUProcessForTests(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIGfxInfoDebug.idl
-
-interface nsIGfxInfoDebug extends nsISupports {
- spoofVendorID(aVendorID: string): void;
- spoofDeviceID(aDeviceID: string): void;
- spoofDriverVersion(aDriverVersion: string): void;
- spoofOSVersion(aVersion: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIMacDockSupport.idl
-
-interface nsIMacDockSupport extends nsISupports {
- dockMenu: nsIStandaloneNativeMenu;
- activateApplication(aIgnoreOtherApplications: boolean): void;
- badgeText: string;
- setBadgeImage(aBadgeImage: imgIContainer, aPaintContext?: nsISVGPaintContext): void;
- readonly isAppInDock: boolean;
- ensureAppIsPinnedToDock(aAppPath?: string, aAppToReplacePath?: string): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIMacFinderProgress.idl
-
-type nsIMacFinderProgressCanceledCallback = Callable<{
- canceled(): void;
-}>
-
-interface nsIMacFinderProgress extends nsISupports {
- init(path: string, canceledCallback: nsIMacFinderProgressCanceledCallback): void;
- updateProgress(currentProgress: u64, totalProgress: u64): void;
- end(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIMacSharingService.idl
-
-interface nsIMacSharingService extends nsISupports {
- getSharingProviders(pageUrl: string): any;
- shareUrl(serviceName: string, pageUrl: string, pageTitle: string): void;
- openSharingPreferences(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIMacUserActivityUpdater.idl
-
-interface nsIMacUserActivityUpdater extends nsISupports {
- updateLocation(pageUrl: string, pageTitle: string, window: nsIBaseWindow): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIMacWebAppUtils.idl
-
-type nsITrashAppCallback = Callable<{
- trashAppFinished(rv: nsresult): void;
-}>
-
-interface nsIMacWebAppUtils extends nsISupports {
- pathForAppWithIdentifier(bundleIdentifier: string): string;
- launchAppWithIdentifier(bundleIdentifier: string): void;
- trashApp(path: string, callback: nsITrashAppCallback): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIMockDragServiceController.idl
-
-} // global
-
-declare namespace nsIMockDragServiceController {
-
-enum EventType {
- eDragEnter = 0,
- eDragOver = 1,
- eDragExit = 2,
- eDrop = 3,
- eMouseDown = 4,
- eMouseMove = 5,
- eMouseUp = 6,
-}
-
-}
-
-declare global {
-
-interface nsIMockDragServiceController extends nsISupports, Enums {
- readonly mockDragService: nsIDragService;
- sendEvent(aBC: BrowsingContext, aEventType: nsIMockDragServiceController.EventType, aScreenX: i32, aScreenY: i32, aKeyModifiers?: u32): void;
- cancelDrag(aKeyModifiers?: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPaper.idl
-
-interface nsIPaper extends nsISupports {
- readonly id: string;
- readonly name: string;
- readonly width: double;
- readonly height: double;
- readonly unwriteableMargin: Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPaperMargin.idl
-
-interface nsIPaperMargin extends nsISupports {
- readonly top: double;
- readonly right: double;
- readonly bottom: double;
- readonly left: double;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPrintDialogService.idl
-
-interface nsIPrintDialogService extends nsISupports {
- init(): void;
- showPrintDialog(aParent: mozIDOMWindowProxy, aHaveSelection: boolean, aPrintSettings: nsIPrintSettings): void;
- showPageSetupDialog(aParent: mozIDOMWindowProxy, aPrintSettings: nsIPrintSettings): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPrintSettings.idl
-
-} // global
-
-declare namespace nsIPrintSettings {
-
-enum OutputDestinationType {
- kOutputDestinationPrinter = 0,
- kOutputDestinationFile = 1,
- kOutputDestinationStream = 2,
-}
-
-}
-
-declare global {
-
-interface nsIPrintSettings extends nsISupports, Enums {
- readonly kInitSaveHeaderLeft: 2;
- readonly kInitSaveHeaderCenter: 4;
- readonly kInitSaveHeaderRight: 8;
- readonly kInitSaveFooterLeft: 16;
- readonly kInitSaveFooterCenter: 32;
- readonly kInitSaveFooterRight: 64;
- readonly kInitSaveBGColors: 128;
- readonly kInitSaveBGImages: 256;
- readonly kInitSavePaperSize: 512;
- readonly kInitSaveDuplex: 2048;
- readonly kInitSaveUnwriteableMargins: 16384;
- readonly kInitSaveEdges: 32768;
- readonly kInitSaveReversed: 65536;
- readonly kInitSaveInColor: 131072;
- readonly kInitSaveOrientation: 262144;
- readonly kInitSavePrinterName: 1048576;
- readonly kInitSavePrintToFile: 2097152;
- readonly kInitSaveToFileName: 4194304;
- readonly kInitSavePageDelay: 8388608;
- readonly kInitSaveMargins: 16777216;
- readonly kInitSaveShrinkToFit: 134217728;
- readonly kInitSaveScaling: 268435456;
- readonly kInitSaveAll: 4294967295;
- readonly kGlobalSettings: 134447614;
- readonly kPrintDialogPersistSettings: 428313598;
- readonly kJustLeft: 0;
- readonly kJustCenter: 1;
- readonly kJustRight: 2;
- readonly kPaperSizeInches: 0;
- readonly kPaperSizeMillimeters: 1;
- readonly kPortraitOrientation: 0;
- readonly kLandscapeOrientation: 1;
- readonly kOutputFormatNative: 0;
- readonly kOutputFormatPDF: 2;
- readonly kDuplexNone: 0;
- readonly kDuplexFlipOnLongEdge: 1;
- readonly kDuplexFlipOnShortEdge: 2;
-
- GetEffectivePageSize(aWidth: OutParam, aHeight: OutParam): void;
- clone(): nsIPrintSettings;
- assign(aPS: nsIPrintSettings): void;
- equivalentTo(aPrintSettings: nsIPrintSettings): boolean;
- edgeTop: double;
- edgeLeft: double;
- edgeBottom: double;
- edgeRight: double;
- marginTop: double;
- marginLeft: double;
- marginBottom: double;
- marginRight: double;
- unwriteableMarginTop: double;
- unwriteableMarginLeft: double;
- unwriteableMarginBottom: double;
- unwriteableMarginRight: double;
- scaling: double;
- printBGColors: boolean;
- printBGImages: boolean;
- honorPageRuleMargins: boolean;
- usePageRuleSizeAsPaperSize: boolean;
- ignoreUnwriteableMargins: boolean;
- showMarginGuides: boolean;
- printSelectionOnly: boolean;
- title: string;
- docURL: string;
- headerStrLeft: string;
- headerStrCenter: string;
- headerStrRight: string;
- footerStrLeft: string;
- footerStrCenter: string;
- footerStrRight: string;
- printSilent: boolean;
- shrinkToFit: boolean;
- paperId: string;
- paperWidth: double;
- paperHeight: double;
- paperSizeUnit: i16;
- printReversed: boolean;
- printInColor: boolean;
- orientation: i32;
- numCopies: i32;
- numPagesPerSheet: i32;
- outputDestination: nsIPrintSettings.OutputDestinationType;
- outputFormat: i16;
- printerName: string;
- toFileName: string;
- outputStream: nsIOutputStream;
- printPageDelay: i32;
- resolution: i32;
- duplex: i32;
- isInitializedFromPrinter: boolean;
- isInitializedFromPrefs: boolean;
- pageRanges: i32[];
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPrintSettingsService.idl
-
-interface nsIPrintSettingsService extends nsISupports {
- createNewPrintSettings(): nsIPrintSettings;
- readonly lastUsedPrinterName: string;
- initPrintSettingsFromPrinter(aPrinterName: string, aPrintSettings: nsIPrintSettings): void;
- initPrintSettingsFromPrefs(aPrintSettings: nsIPrintSettings, aUsePrinterNamePrefix: boolean, aFlags: u32): void;
- maybeSavePrintSettingsToPrefs(aPrintSettings: nsIPrintSettings, aFlags: u32): void;
- maybeSaveLastUsedPrinterNameToPrefs(aPrinterName: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPrinter.idl
-
-interface nsIPrinterInfo extends nsISupports {
- readonly paperList: nsIPaper[];
- readonly defaultSettings: nsIPrintSettings;
-}
-
-interface nsIPrinter extends nsISupports {
- readonly name: string;
- readonly systemName: string;
- readonly printerInfo: Promise;
- copyFromWithValidation(aSettingsToCopyFrom: nsIPrintSettings): Promise;
- readonly supportsDuplex: Promise;
- readonly supportsColor: Promise;
- readonly supportsMonochrome: Promise;
- readonly supportsCollation: Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIPrinterList.idl
-
-interface nsIPrinterList extends nsISupports {
- initPrintSettingsFromPrinter(aPrinterName: string, aPrintSettings: nsIPrintSettings): void;
- readonly systemDefaultPrinterName: string;
- getPrinterByName(aPrinterName: string): Promise;
- getPrinterBySystemName(aPrinterName: string): Promise;
- getNamedOrDefaultPrinter(aPrinterName: string): Promise;
- readonly printers: Promise;
- readonly fallbackPaperList: Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIScreen.idl
-
-interface nsIScreen extends nsISupports {
- GetRect(left: OutParam, top: OutParam, width: OutParam, height: OutParam): void;
- GetAvailRect(left: OutParam, top: OutParam, width: OutParam, height: OutParam): void;
- GetRectDisplayPix(left: OutParam, top: OutParam, width: OutParam, height: OutParam): void;
- GetAvailRectDisplayPix(left: OutParam, top: OutParam, width: OutParam, height: OutParam): void;
- readonly pixelDepth: i32;
- readonly colorDepth: i32;
- readonly contentsScaleFactor: double;
- readonly defaultCSSScaleFactor: double;
- readonly dpi: float;
- readonly refreshRate: i32;
- readonly isPseudoDisplay: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIScreenManager.idl
-
-interface nsIScreenManager extends nsISupports {
- screenForRect(left: i32, top: i32, width: i32, height: i32): nsIScreen;
- readonly primaryScreen: nsIScreen;
- readonly totalScreenPixels: i64;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsISharePicker.idl
-
-interface nsISharePicker extends nsISupports {
- init(openerWindow: mozIDOMWindowProxy): void;
- readonly openerWindow: mozIDOMWindowProxy;
- share(title: string, text: string, url: nsIURI): Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsISound.idl
-
-interface nsISound extends nsISupports {
- readonly EVENT_NEW_MAIL_RECEIVED: 0;
- readonly EVENT_ALERT_DIALOG_OPEN: 1;
- readonly EVENT_CONFIRM_DIALOG_OPEN: 2;
- readonly EVENT_PROMPT_DIALOG_OPEN: 3;
- readonly EVENT_SELECT_DIALOG_OPEN: 4;
- readonly EVENT_MENU_EXECUTE: 5;
- readonly EVENT_MENU_POPUP: 6;
- readonly EVENT_EDITOR_MAX_LEN: 7;
-
- play(aURL: nsIURL): void;
- beep(): void;
- init(): void;
- playEventSound(aEventId: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIStandaloneNativeMenu.idl
-
-interface nsIStandaloneNativeMenu extends nsISupports {
- init(aElement: Element): void;
- menuWillOpen(): boolean;
- activateNativeMenuItemAt(anIndexString: string): void;
- forceUpdateNativeMenuAt(anIndexString: string): void;
- dump(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsISystemStatusBar.idl
-
-interface nsISystemStatusBar extends nsISupports {
- addItem(aMenuElement: Element): void;
- removeItem(aMenuElement: Element): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsITaskbarProgress.idl
-
-interface nsITaskbarProgress extends nsISupports {
- readonly STATE_NO_PROGRESS: 0;
- readonly STATE_INDETERMINATE: 1;
- readonly STATE_NORMAL: 2;
- readonly STATE_ERROR: 3;
- readonly STATE_PAUSED: 4;
-
- setProgressState(state: nsTaskbarProgressState, currentValue?: u64, maxValue?: u64): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsITouchBarHelper.idl
-
-interface nsITouchBarHelper extends nsISupports {
- readonly activeUrl: string;
- readonly activeTitle: string;
- readonly isUrlbarFocused: boolean;
- toggleFocusUrlbar(): void;
- unfocusUrlbar(): void;
- allItems: nsIArray;
- readonly document: Document;
- getTouchBarInput(aInputName: string): nsITouchBarInput;
- insertRestrictionInUrlbar(aToken: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsITouchBarInput.idl
-
-type nsITouchBarInputCallback = Callable<{
- onCommand(): void;
-}>
-
-interface nsITouchBarInput extends nsISupports {
- readonly key: string;
- title: string;
- image: nsIURI;
- type: string;
- callback: nsITouchBarInputCallback;
- color: u32;
- disabled: boolean;
- children: nsIArray;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsITouchBarUpdater.idl
-
-interface nsITouchBarUpdater extends nsISupports {
- updateTouchBarInputs(aWindow: nsIBaseWindow, aInputs: nsITouchBarInput[]): void;
- enterCustomizeMode(): void;
- isTouchBarInitialized(): boolean;
- setTouchBarInitialized(aIsInitialized: boolean): void;
- showPopover(aWindow: nsIBaseWindow, aPopover: nsITouchBarInput, aShowing: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsITransferable.idl
-
-interface nsIFlavorDataProvider extends nsISupports {
- getFlavorData(aTransferable: nsITransferable, aFlavor: string, aData: OutParam): void;
-}
-
-interface nsITransferable extends nsISupports {
- init(aContext: nsILoadContext): void;
- flavorsTransferableCanExport(): string[];
- getTransferData(aFlavor: string, aData: OutParam): void;
- getAnyTransferData(aFlavor: OutParam, aData: OutParam): void;
- flavorsTransferableCanImport(): string[];
- setTransferData(aFlavor: string, aData: nsISupports): void;
- clearAllData(): void;
- addDataFlavor(aDataFlavor: string): void;
- removeDataFlavor(aDataFlavor: string): void;
- converter: nsIFormatConverter;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIUserIdleService.idl
-
-interface nsIUserIdleService extends nsISupports {
- readonly idleTime: u32;
- addIdleObserver(observer: nsIObserver, time: u32): void;
- removeIdleObserver(observer: nsIObserver, time: u32): void;
- disabled: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/widget/nsIUserIdleServiceInternal.idl
-
-interface nsIUserIdleServiceInternal extends nsIUserIdleService {
- resetIdleTimeOut(idleDeltaInMS: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/about/nsIAboutModule.idl
-
-interface nsIAboutModule extends nsISupports {
- readonly URI_SAFE_FOR_UNTRUSTED_CONTENT: 1;
- readonly ALLOW_SCRIPT: 2;
- readonly HIDE_FROM_ABOUTABOUT: 4;
- readonly ENABLE_INDEXED_DB: 8;
- readonly URI_CAN_LOAD_IN_CHILD: 16;
- readonly URI_MUST_LOAD_IN_CHILD: 32;
- readonly MAKE_UNLINKABLE: 64;
- readonly MAKE_LINKABLE: 128;
- readonly URI_CAN_LOAD_IN_PRIVILEGEDABOUT_PROCESS: 256;
- readonly URI_MUST_LOAD_IN_EXTENSION_PROCESS: 512;
- readonly IS_SECURE_CHROME_UI: 1024;
-
- newChannel(aURI: nsIURI, aLoadInfo: nsILoadInfo): nsIChannel;
- getURIFlags(aURI: nsIURI): u32;
- getChromeURI(aURI: nsIURI): nsIURI;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/xslt/xslt/txIEXSLTFunctions.idl
-
-interface txIEXSLTFunctions extends nsISupports {
- match(str: string, regex: string, flags: string, doc: Document): DocumentFragment;
- replace(str: string, regex: string, flags: string, replace: string): string;
- test(str: string, regex: string, flags: string): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/webauthn/nsIWebAuthnArgs.idl
-
-// https://searchfox.org/mozilla-central/source/dom/webauthn/nsIWebAuthnAttObj.idl
-
-// https://searchfox.org/mozilla-central/source/dom/webauthn/nsIWebAuthnPromise.idl
-
-// https://searchfox.org/mozilla-central/source/dom/webauthn/nsIWebAuthnResult.idl
-
-// https://searchfox.org/mozilla-central/source/dom/webauthn/nsIWebAuthnService.idl
-
-interface nsICredentialParameters extends nsISupports {
- readonly credentialId: string;
- readonly isResidentCredential: boolean;
- readonly rpId: string;
- readonly privateKey: string;
- readonly userHandle: string;
- readonly signCount: u32;
-}
-
-interface nsIWebAuthnAutoFillEntry extends nsISupports {
- readonly PROVIDER_UNKNOWN: 0;
- readonly PROVIDER_TEST_TOKEN: 1;
- readonly PROVIDER_PLATFORM_WINDOWS: 2;
- readonly PROVIDER_PLATFORM_MACOS: 3;
- readonly PROVIDER_PLATFORM_ANDROID: 4;
-
- readonly provider: u8;
- readonly userName: string;
- readonly rpId: string;
- readonly credentialId: u8[];
-}
-
-interface nsIWebAuthnService extends nsISupports {
- readonly isUVPAA: boolean;
- cancel(aTransactionId: u64): void;
- hasPendingConditionalGet(aBrowsingContextId: u64, aOrigin: string): u64;
- getAutoFillEntries(aTransactionId: u64): nsIWebAuthnAutoFillEntry[];
- selectAutoFillEntry(aTransactionId: u64, aCredentialId: u8[]): void;
- resumeConditionalGet(aTransactionId: u64): void;
- pinCallback(aTransactionId: u64, aPin: string): void;
- setHasAttestationConsent(aTransactionId: u64, aHasConsent: boolean): void;
- selectionCallback(aTransactionId: u64, aIndex: u64): void;
- addVirtualAuthenticator(protocol: string, transport: string, hasResidentKey: boolean, hasUserVerification: boolean, isUserConsenting: boolean, isUserVerified: boolean): u64;
- removeVirtualAuthenticator(authenticatorId: u64): void;
- addCredential(authenticatorId: u64, credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: u32): void;
- getCredentials(authenticatorId: u64): nsICredentialParameters[];
- removeCredential(authenticatorId: u64, credentialId: string): void;
- removeAllCredentials(authenticatorId: u64): void;
- setUserVerified(authenticatorId: u64, isUserVerified: boolean): void;
- listen(): void;
- runCommand(aCommand: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgICache.idl
-
-interface imgICache extends nsISupports {
- clearCache(chrome: boolean): void;
- removeEntriesFromPrincipalInAllProcesses(aPrincipal: nsIPrincipal): void;
- removeEntriesFromSiteInAllProcesses(aBaseDomain: string, OriginAttributesPattern: any): void;
- findEntryProperties(uri: nsIURI, doc?: Document): nsIProperties;
- respectPrivacyNotifications(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgIContainer.idl
-
-} // global
-
-declare namespace imgIContainer {
-
-enum DecodeResult {
- DECODE_SURFACE_AVAILABLE = 0,
- DECODE_REQUESTED = 1,
- DECODE_REQUEST_FAILED = 2,
-}
-
-}
-
-declare global {
-
-interface imgIContainer extends nsISupports, Enums {
- readonly TYPE_RASTER: 0;
- readonly TYPE_VECTOR: 1;
- readonly TYPE_REQUEST: 2;
- readonly FLAG_NONE: 0;
- readonly FLAG_SYNC_DECODE: 1;
- readonly FLAG_SYNC_DECODE_IF_FAST: 2;
- readonly FLAG_ASYNC_NOTIFY: 4;
- readonly FLAG_DECODE_NO_PREMULTIPLY_ALPHA: 8;
- readonly FLAG_DECODE_NO_COLORSPACE_CONVERSION: 16;
- readonly FLAG_CLAMP: 32;
- readonly FLAG_HIGH_QUALITY_SCALING: 64;
- readonly FLAG_BYPASS_SURFACE_CACHE: 128;
- readonly FLAG_FORCE_PRESERVEASPECTRATIO_NONE: 256;
- readonly FLAG_FORCE_UNIFORM_SCALING: 512;
- readonly FLAG_AVOID_REDECODE_FOR_SIZE: 1024;
- readonly FLAG_DECODE_TO_SRGB_COLORSPACE: 2048;
- readonly FLAG_RECORD_BLOB: 4096;
- readonly DECODE_FLAGS_DEFAULT: 0;
- readonly DECODE_FLAGS_FOR_REENCODE: 2056;
- readonly FRAME_FIRST: 0;
- readonly FRAME_CURRENT: 1;
- readonly FRAME_MAX_VALUE: 1;
- readonly kNormalAnimMode: 0;
- readonly kDontAnimMode: 1;
- readonly kLoopOnceAnimMode: 2;
-
- readonly width: i32;
- readonly height: i32;
- readonly hotspotX: i32;
- readonly hotspotY: i32;
- readonly type: u16;
- readonly animated: boolean;
- readonly providerId: u32;
- lockImage(): void;
- unlockImage(): void;
- requestDiscard(): void;
- animationMode: u16;
- resetAnimation(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgIContainerDebug.idl
-
-interface imgIContainerDebug extends nsISupports {
- readonly framesNotified: u32;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgIEncoder.idl
-
-interface imgIEncoder extends nsIAsyncInputStream {
- readonly INPUT_FORMAT_RGB: 0;
- readonly INPUT_FORMAT_RGBA: 1;
- readonly INPUT_FORMAT_HOSTARGB: 2;
-
- initFromData(data: u8[], length: u32, width: u32, height: u32, stride: u32, inputFormat: u32, outputOptions: string): void;
- startImageEncode(width: u32, height: u32, inputFormat: u32, outputOptions: string): void;
- addImageFrame(data: u8[], length: u32, width: u32, height: u32, stride: u32, frameFormat: u32, frameOptions: string): void;
- endImageEncode(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgILoader.idl
-
-interface imgILoader extends nsISupports {
- readonly LOAD_CORS_ANONYMOUS: 65536;
- readonly LOAD_CORS_USE_CREDENTIALS: 131072;
-
- loadImageXPCOM(aURI: nsIURI, aInitialDocumentURL: nsIURI, aReferrerInfo: nsIReferrerInfo, aLoadingPrincipal: nsIPrincipal, aLoadGroup: nsILoadGroup, aObserver: imgINotificationObserver, aLoadingDocument: Document, aLoadFlags: nsLoadFlags, cacheKey: nsISupports, aContentPolicyType?: nsContentPolicyType): imgIRequest;
- loadImageWithChannelXPCOM(aChannel: nsIChannel, aObserver: imgINotificationObserver, aLoadingDocument: Document, aListener: OutParam): imgIRequest;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgINotificationObserver.idl
-
-interface imgINotificationObserver extends nsISupports {
- readonly SIZE_AVAILABLE: 1;
- readonly FRAME_UPDATE: 2;
- readonly FRAME_COMPLETE: 3;
- readonly LOAD_COMPLETE: 4;
- readonly DECODE_COMPLETE: 5;
- readonly DISCARD: 6;
- readonly UNLOCKED_DRAW: 7;
- readonly IS_ANIMATED: 8;
- readonly HAS_TRANSPARENCY: 9;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgIRequest.idl
-
-interface imgIRequest extends nsIRequest {
- readonly STATUS_NONE: 0;
- readonly STATUS_SIZE_AVAILABLE: 1;
- readonly STATUS_LOAD_COMPLETE: 2;
- readonly STATUS_ERROR: 4;
- readonly STATUS_FRAME_COMPLETE: 8;
- readonly STATUS_DECODE_COMPLETE: 16;
- readonly STATUS_IS_ANIMATED: 32;
- readonly STATUS_HAS_TRANSPARENCY: 64;
- readonly CATEGORY_FRAME_INIT: 1;
- readonly CATEGORY_FRAME_STYLE: 2;
- readonly CATEGORY_SIZE_QUERY: 4;
- readonly CATEGORY_DISPLAY: 8;
-
- readonly image: imgIContainer;
- readonly providerId: u32;
- readonly triggeringPrincipal: nsIPrincipal;
- readonly imageStatus: u32;
- readonly URI: nsIURI;
- readonly finalURI: nsIURI;
- readonly notificationObserver: imgINotificationObserver;
- readonly mimeType: string;
- readonly fileName: string;
- clone(aObserver: imgINotificationObserver): imgIRequest;
- readonly imagePrincipal: nsIPrincipal;
- readonly hadCrossOriginRedirects: boolean;
- readonly multipart: boolean;
- readonly CORSMode: i32;
- readonly referrerInfo: nsIReferrerInfo;
- cancelAndForgetObserver(aStatus: nsresult): void;
- startDecoding(aFlags: u32): void;
- lockImage(): void;
- unlockImage(): void;
- requestDiscard(): void;
- getStaticRequest(): imgIRequest;
- incrementAnimationConsumers(): void;
- decrementAnimationConsumers(): void;
- boostPriority(aCategory: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgIScriptedNotificationObserver.idl
-
-interface imgIScriptedNotificationObserver extends nsISupports {
- sizeAvailable(aRequest: imgIRequest): void;
- frameUpdate(aRequest: imgIRequest): void;
- frameComplete(aRequest: imgIRequest): void;
- loadComplete(aRequest: imgIRequest): void;
- decodeComplete(aRequest: imgIRequest): void;
- discard(aRequest: imgIRequest): void;
- isAnimated(aRequest: imgIRequest): void;
- hasTransparency(aRequest: imgIRequest): void;
-}
-
-// https://searchfox.org/mozilla-central/source/image/imgITools.idl
-
-interface imgITools extends nsISupports {
- decodeImageFromBuffer(aBuffer: string, aSize: u32, aMimeType: string): imgIContainer;
- decodeImageFromArrayBuffer(aArrayBuffer: any, aMimeType: string): imgIContainer;
- decodeImageFromChannelAsync(aURI: nsIURI, aChannel: nsIChannel, aCallback: imgIContainerCallback, aObserver: imgINotificationObserver): void;
- decodeImageAsync(aStream: nsIInputStream, aMimeType: string, aCallback: imgIContainerCallback, aEventTarget: nsIEventTarget): void;
- encodeImage(aContainer: imgIContainer, aMimeType: string, outputOptions?: string): nsIInputStream;
- encodeScaledImage(aContainer: imgIContainer, aMimeType: string, aWidth: i32, aHeight: i32, outputOptions?: string): nsIInputStream;
- getImgLoaderForDocument(doc: Document): imgILoader;
- getImgCacheForDocument(doc: Document): imgICache;
- encodeCroppedImage(aContainer: imgIContainer, aMimeType: string, aOffsetX: i32, aOffsetY: i32, aWidth: i32, aHeight: i32, outputOptions?: string): nsIInputStream;
- createScriptedObserver(aObserver: imgIScriptedNotificationObserver): imgINotificationObserver;
-}
-
-type imgIContainerCallback = Callable<{
- onImageReady(aImage: imgIContainer, aStatus: nsresult): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/image/nsIIconURI.idl
-
-interface nsIMozIconURI extends nsIURI {
- readonly iconURL: nsIURL;
- readonly imageSize: u32;
- readonly stockIcon: string;
- readonly iconSize: string;
- readonly iconState: string;
- readonly contentType: string;
- readonly fileExtension: string;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/socket/nsISocketProvider.idl
-
-interface nsISocketProvider extends nsISupports {
- readonly PROXY_RESOLVES_HOST: 1;
- readonly ANONYMOUS_CONNECT: 2;
- readonly NO_PERMANENT_STORAGE: 4;
- readonly BE_CONSERVATIVE: 8;
- readonly ANONYMOUS_CONNECT_ALLOW_CLIENT_CERT: 16;
- readonly IS_SPECULATIVE_CONNECTION: 32;
- readonly DONT_TRY_ECH: 1024;
- readonly IS_RETRY: 2048;
- readonly USED_PRIVATE_DNS: 4096;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/socket/nsISocketProviderService.idl
-
-interface nsISocketProviderService extends nsISupports {
- getSocketProvider(socketType: string): nsISocketProvider;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/simpledb/nsISDBCallbacks.idl
-
-type nsISDBCallback = Callable<{
- onComplete(aRequest: nsISDBRequest): void;
-}>
-
-type nsISDBCloseCallback = Callable<{
- onClose(aConnection: nsISDBConnection): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/dom/simpledb/nsISDBConnection.idl
-
-interface nsISDBConnection extends nsISupports {
- init(aPrincipal: nsIPrincipal, aPersistenceType?: string): void;
- open(aName: string): nsISDBRequest;
- seek(offset: u64): nsISDBRequest;
- read(size: u64): nsISDBRequest;
- write(value: any): nsISDBRequest;
- close(): nsISDBRequest;
- closeCallback: nsISDBCloseCallback;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/simpledb/nsISDBRequest.idl
-
-interface nsISDBRequest extends nsISupports {
- readonly result: nsIVariant;
- readonly resultCode: nsresult;
- readonly resultName: string;
- callback: nsISDBCallback;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/simpledb/nsISDBResults.idl
-
-interface nsISDBResult extends nsISupports {
- getAsArray(): u8[];
- getAsArrayBuffer(): any;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/captivedetect/nsICaptivePortalDetector.idl
-
-interface nsICaptivePortalCallback extends nsISupports {
- prepare(): void;
- complete(success: boolean): void;
-}
-
-interface nsICaptivePortalDetector extends nsISupports {
- checkCaptivePortal(ifname: string, callback: nsICaptivePortalCallback): void;
- abort(ifname: string): void;
- cancelLogin(eventId: string): void;
- finishPreparation(ifname: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/media/bridge/IPeerConnection.idl
-
-interface IPeerConnectionObserver extends nsISupports {
-}
-
-interface IPeerConnection extends nsISupports {
- readonly kHintAudio: 1;
- readonly kHintVideo: 2;
- readonly kActionNone: -1;
- readonly kActionOffer: 0;
- readonly kActionAnswer: 1;
- readonly kActionPRAnswer: 2;
- readonly kActionRollback: 3;
- readonly kIceGathering: 0;
- readonly kIceWaiting: 1;
- readonly kIceChecking: 2;
- readonly kIceConnected: 3;
- readonly kIceFailed: 4;
- readonly kNew: 0;
- readonly kNegotiating: 1;
- readonly kActive: 2;
- readonly kClosing: 3;
- readonly kClosed: 4;
- readonly kDataChannelReliable: 0;
- readonly kDataChannelPartialReliableRexmit: 1;
- readonly kDataChannelPartialReliableTimed: 2;
- readonly kNoError: 0;
- readonly kInvalidCandidate: 2;
- readonly kInvalidMediastreamTrack: 3;
- readonly kInvalidState: 4;
- readonly kInvalidSessionDescription: 5;
- readonly kIncompatibleSessionDescription: 6;
- readonly kIncompatibleMediaStreamTrack: 8;
- readonly kInternalError: 9;
- readonly kTypeError: 10;
- readonly kOperationError: 11;
- readonly kMaxErrorType: 11;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/events/nsIEventListenerService.idl
-
-interface nsIEventListenerChange extends nsISupports {
- readonly target: EventTarget;
-}
-
-type nsIListenerChangeListener = Callable<{
- listenersChanged(aEventListenerChanges: nsIArray): void;
-}>
-
-interface nsIEventListenerInfo extends nsISupports {
- readonly type: string;
- readonly capturing: boolean;
- readonly allowsUntrusted: boolean;
- readonly inSystemEventGroup: boolean;
- enabled: boolean;
- readonly listenerObject: any;
- toSource(): string;
-}
-
-interface nsIEventListenerService extends nsISupports {
- getListenerInfoFor(aEventTarget: EventTarget): nsIEventListenerInfo[];
- hasListenersFor(aEventTarget: EventTarget, aType: string): boolean;
- addListenerForAllEvents(target: EventTarget, listener: any, aUseCapture?: boolean, aWantsUntrusted?: boolean, aSystemEventGroup?: boolean): void;
- removeListenerForAllEvents(target: EventTarget, listener: any, aUseCapture?: boolean, aSystemEventGroup?: boolean): void;
- addListenerChangeListener(aListener: nsIListenerChangeListener): void;
- removeListenerChangeListener(aListener: nsIListenerChangeListener): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/webtransport/nsIWebTransport.idl
-
-} // global
-
-declare namespace nsIWebTransport {
-
-enum WebTransportError {
- UNKNOWN_ERROR = 0,
- INVALID_STATE_ERROR = 1,
-}
-
-}
-
-declare global {
-
-interface nsIWebTransport extends nsISupports, Enums {
- asyncConnect(aURI: nsIURI, aDedicated: boolean, aServerCertHashes: nsIWebTransportHash[], aLoadingPrincipal: nsIPrincipal, aSecurityFlags: u32, aListener: WebTransportSessionEventListener): void;
- getStats(): void;
- closeSession(aErrorCode: u32, aReason: string): void;
- createOutgoingBidirectionalStream(aListener: nsIWebTransportStreamCallback): void;
- createOutgoingUnidirectionalStream(aListener: nsIWebTransportStreamCallback): void;
- sendDatagram(aData: u8[], aTrackingId: u64): void;
- getMaxDatagramSize(): void;
-}
-
-} // global
-
-declare namespace WebTransportSessionEventListener {
-
-enum DatagramOutcome {
- UNKNOWN = 0,
- DROPPED_TOO_MUCH_DATA = 1,
- SENT = 2,
-}
-
-}
-
-declare global {
-
-interface WebTransportSessionEventListener extends nsISupports, Enums {
- onSessionReady(aSessionId: u64): void;
- onSessionClosed(aCleanly: boolean, aErrorCode: u32, aReason: string): void;
- onIncomingBidirectionalStreamAvailable(aStream: nsIWebTransportBidirectionalStream): void;
- onIncomingUnidirectionalStreamAvailable(aStream: nsIWebTransportReceiveStream): void;
- onStopSending(aStreamId: u64, aError: nsresult): void;
- onResetReceived(aStreamId: u64, aError: nsresult): void;
- onDatagramReceived(aData: u8[]): void;
- onMaxDatagramSize(aSize: u64): void;
- onOutgoingDatagramOutCome(aId: u64, aOutCome: WebTransportSessionEventListener.DatagramOutcome): void;
-}
-
-interface nsIWebTransportStreamCallback extends nsISupports {
- onBidirectionalStreamReady(aStream: nsIWebTransportBidirectionalStream): void;
- onUnidirectionalStreamReady(aStream: nsIWebTransportSendStream): void;
- onError(aError: u8): void;
-}
-
-interface nsIWebTransportHash extends nsISupports {
- readonly algorithm: string;
- readonly value: u8[];
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/webtransport/nsIWebTransportStream.idl
-
-interface nsIWebTransportSendStreamStats extends nsISupports {
- readonly bytesSent: u64;
- readonly bytesAcknowledged: u64;
-}
-
-interface nsIWebTransportReceiveStreamStats extends nsISupports {
- readonly bytesReceived: u64;
-}
-
-interface nsIWebTransportStreamStatsCallback extends nsISupports {
- onSendStatsAvailable(aStats: nsIWebTransportSendStreamStats): void;
- onReceiveStatsAvailable(aStats: nsIWebTransportReceiveStreamStats): void;
-}
-
-interface nsIWebTransportReceiveStream extends nsISupports {
- sendStopSending(aError: u8): void;
- getReceiveStreamStats(aCallback: nsIWebTransportStreamStatsCallback): void;
- readonly hasReceivedFIN: boolean;
- readonly inputStream: nsIAsyncInputStream;
- readonly streamId: u64;
-}
-
-interface nsIWebTransportSendStream extends nsISupports {
- sendFin(): void;
- reset(aErrorCode: u8): void;
- getSendStreamStats(aCallback: nsIWebTransportStreamStatsCallback): void;
- readonly outputStream: nsIAsyncOutputStream;
- readonly streamId: u64;
-}
-
-interface nsIWebTransportBidirectionalStream extends nsISupports {
- sendStopSending(aError: u8): void;
- sendFin(): void;
- reset(aErrorCode: u8): void;
- readonly hasReceivedFIN: boolean;
- readonly inputStream: nsIAsyncInputStream;
- readonly outputStream: nsIAsyncOutputStream;
- readonly streamId: u64;
-}
-
-// https://searchfox.org/mozilla-central/source/ipc/glue/test/utility_process_xpcom/nsIUtilityProcessTest.idl
-
-interface nsIUtilityProcessTest extends nsISupports {
- startProcess(actorsToAdd?: string[]): Promise;
- untilChildProcessDead(pid: u32): Promise;
- noteIntentionalCrash(pid: u32): void;
- stopProcess(utilityActorName?: string): void;
- testTelemetryProbes(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheEntry.idl
-
-interface nsICacheEntry extends nsISupports {
- readonly CONTENT_TYPE_UNKNOWN: 0;
- readonly CONTENT_TYPE_OTHER: 1;
- readonly CONTENT_TYPE_JAVASCRIPT: 2;
- readonly CONTENT_TYPE_IMAGE: 3;
- readonly CONTENT_TYPE_MEDIA: 4;
- readonly CONTENT_TYPE_STYLESHEET: 5;
- readonly CONTENT_TYPE_WASM: 6;
- readonly CONTENT_TYPE_LAST: 7;
- readonly NO_EXPIRATION_TIME: 4294967295;
-
- readonly key: string;
- readonly cacheEntryId: u64;
- readonly persistent: boolean;
- readonly fetchCount: u32;
- readonly lastFetched: u32;
- readonly lastModified: u32;
- readonly expirationTime: u32;
- setExpirationTime(expirationTime: u32): void;
- readonly onStartTime: u64;
- readonly onStopTime: u64;
- setNetworkTimes(onStartTime: u64, onStopTime: u64): void;
- setContentType(contentType: u8): void;
- forceValidFor(aSecondsToTheFuture: u32): void;
- readonly isForcedValid: boolean;
- markForcedValidUse(): void;
- openInputStream(offset: i64): nsIInputStream;
- openOutputStream(offset: i64, predictedSize: i64): nsIOutputStream;
- securityInfo: nsITransportSecurityInfo;
- readonly storageDataSize: u32;
- asyncDoom(listener: nsICacheEntryDoomCallback): void;
- getMetaDataElement(key: string): string;
- setMetaDataElement(key: string, value: string): void;
- visitMetaData(visitor: nsICacheEntryMetaDataVisitor): void;
- metaDataReady(): void;
- setValid(): void;
- dismiss(): void;
- readonly diskStorageSizeInKB: u32;
- recreate(aMemoryOnly?: boolean): nsICacheEntry;
- readonly dataSize: i64;
- readonly altDataSize: i64;
- readonly altDataType: string;
- openAlternativeOutputStream(type: string, predictedSize: i64): nsIAsyncOutputStream;
- openAlternativeInputStream(type: string): nsIInputStream;
- readonly loadContextInfo: nsILoadContextInfo;
-}
-
-interface nsICacheEntryMetaDataVisitor extends nsISupports {
- onMetaDataElement(key: string, value: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheEntryDoomCallback.idl
-
-interface nsICacheEntryDoomCallback extends nsISupports {
- onCacheEntryDoomed(aResult: nsresult): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheEntryOpenCallback.idl
-
-interface nsICacheEntryOpenCallback extends nsISupports {
- readonly ENTRY_WANTED: 0;
- readonly RECHECK_AFTER_WRITE_FINISHED: 1;
- readonly ENTRY_NEEDS_REVALIDATION: 2;
- readonly ENTRY_NOT_WANTED: 3;
-
- onCacheEntryCheck(aEntry: nsICacheEntry): u32;
- onCacheEntryAvailable(aEntry: nsICacheEntry, aNew: boolean, aResult: nsresult): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICachePurgeLock.idl
-
-interface nsICachePurgeLock extends nsISupports {
- lock(profileName: string): void;
- isOtherInstanceRunning(): boolean;
- unlock(): void;
- getLockFile(profileName: string): nsIFile;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheStorage.idl
-
-interface nsICacheStorage extends nsISupports {
- readonly OPEN_NORMALLY: 0;
- readonly OPEN_TRUNCATE: 1;
- readonly OPEN_READONLY: 2;
- readonly OPEN_PRIORITY: 4;
- readonly OPEN_BYPASS_IF_BUSY: 8;
- readonly CHECK_MULTITHREADED: 16;
- readonly OPEN_SECRETLY: 32;
- readonly OPEN_INTERCEPTED: 64;
-
- asyncOpenURI(aURI: nsIURI, aIdExtension: string, aFlags: u32, aCallback: nsICacheEntryOpenCallback): void;
- openTruncate(aURI: nsIURI, aIdExtension: string): nsICacheEntry;
- exists(aURI: nsIURI, aIdExtension: string): boolean;
- getCacheIndexEntryAttrs(aURI: nsIURI, aIdExtension: string, aHasAltData: OutParam, aSizeInKB: OutParam): void;
- asyncDoomURI(aURI: nsIURI, aIdExtension: string, aCallback: nsICacheEntryDoomCallback): void;
- asyncEvictStorage(aCallback: nsICacheEntryDoomCallback): void;
- asyncVisitStorage(aVisitor: nsICacheStorageVisitor, aVisitEntries: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheStorageService.idl
-
-interface nsICacheStorageService extends nsISupports {
- readonly PURGE_DISK_DATA_ONLY: 1;
- readonly PURGE_DISK_ALL: 2;
- readonly PURGE_EVERYTHING: 3;
-
- memoryCacheStorage(aLoadContextInfo: nsILoadContextInfo): nsICacheStorage;
- diskCacheStorage(aLoadContextInfo: nsILoadContextInfo): nsICacheStorage;
- pinningCacheStorage(aLoadContextInfo: nsILoadContextInfo): nsICacheStorage;
- clearOrigin(aPrincipal: nsIPrincipal): void;
- clearBaseDomain(aBaseDomain: string): void;
- clearOriginAttributes(aOriginAttributes: string): void;
- clear(): void;
- purgeFromMemory(aWhat: u32): void;
- readonly ioTarget: nsIEventTarget;
- asyncGetDiskConsumption(aObserver: nsICacheStorageConsumptionObserver): void;
- asyncVisitAllStorages(aVisitor: nsICacheStorageVisitor, aVisitEntries: boolean): void;
-}
-
-interface nsICacheStorageConsumptionObserver extends nsISupports {
- onNetworkCacheDiskConsumption(aDiskSize: i64): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheStorageVisitor.idl
-
-interface nsICacheStorageVisitor extends nsISupports {
- onCacheStorageInfo(aEntryCount: u32, aConsumption: u64, aCapacity: u64, aDiskDirectory: nsIFile): void;
- onCacheEntryInfo(aURI: nsIURI, aIdEnhance: string, aDataSize: i64, aAltDataSize: i64, aFetchCount: u32, aLastModifiedTime: u32, aExpirationTime: u32, aPinned: boolean, aInfo: nsILoadContextInfo): void;
- onCacheEntryVisitCompleted(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/cache2/nsICacheTesting.idl
-
-interface nsICacheTesting extends nsISupports {
- suspendCacheIOThread(aLevel: u32): void;
- resumeCacheIOThread(): void;
- flush(aObserver: nsIObserver): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/find/nsIFind.idl
-
-interface nsIFind extends nsISupports {
- findBackwards: boolean;
- caseSensitive: boolean;
- entireWord: boolean;
- matchDiacritics: boolean;
- Find(aPatText: string, aSearchRange: Range, aStartPoint: Range, aEndPoint: Range): Range;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/find/nsIFindService.idl
-
-interface nsIFindService extends nsISupports {
- searchString: string;
- replaceString: string;
- findBackwards: boolean;
- wrapFind: boolean;
- entireWord: boolean;
- matchCase: boolean;
- matchDiacritics: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/find/nsIWebBrowserFind.idl
-
-interface nsIWebBrowserFind extends nsISupports {
- findNext(): boolean;
- searchString: string;
- findBackwards: boolean;
- wrapFind: boolean;
- entireWord: boolean;
- matchCase: boolean;
- matchDiacritics: boolean;
- searchFrames: boolean;
-}
-
-interface nsIWebBrowserFindInFrames extends nsISupports {
- currentSearchFrame: mozIDOMWindowProxy;
- rootSearchFrame: mozIDOMWindowProxy;
- searchSubframes: boolean;
- searchParentFrames: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIAvailableMemoryWatcherBase.idl
-
-interface nsITabUnloader extends nsISupports {
- unloadTabAsync(): void;
-}
-
-interface nsIAvailableMemoryWatcherBase extends nsISupports {
- registerTabUnloader(aTabUnloader: nsITabUnloader): void;
- onUnloadAttemptCompleted(aResult: nsresult): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIConsoleListener.idl
-
-type nsIConsoleListener = Callable<{
- observe(aMessage: nsIConsoleMessage): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIConsoleMessage.idl
-
-interface nsIConsoleMessage extends nsISupports {
- readonly debug: 0;
- readonly info: 1;
- readonly warn: 2;
- readonly error: 3;
-
- readonly logLevel: u32;
- readonly timeStamp: i64;
- readonly microSecondTimeStamp: i64;
- readonly message: string;
- isForwardedFromContentProcess: boolean;
- toString(): string;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIConsoleService.idl
-
-} // global
-
-declare namespace nsIConsoleService {
-
-enum OutputMode {
- SuppressLog = 0,
- OutputToLog = 1,
-}
-
-}
-
-declare global {
-
-interface nsIConsoleService extends nsISupports, Enums {
- logMessage(message: nsIConsoleMessage): void;
- callFunctionAndLogException(targetGlobal: any, func: any): any;
- logMessageWithMode(message: nsIConsoleMessage, mode: nsIConsoleService.OutputMode): void;
- logStringMessage(message: string): void;
- getMessageArray(): nsIConsoleMessage[];
- registerListener(listener: nsIConsoleListener): void;
- unregisterListener(listener: nsIConsoleListener): void;
- reset(): void;
- resetWindow(windowInnerId: u64): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsICycleCollectorListener.idl
-
-interface nsICycleCollectorHandler extends nsISupports {
- noteRefCountedObject(aAddress: string, aRefCount: u32, aObjectDescription: string): void;
- noteGCedObject(aAddress: string, aMarked: boolean, aObjectDescription: string, aCompartmentAddress: string): void;
- noteEdge(aFromAddress: string, aToAddress: string, aEdgeName: string): void;
- describeRoot(aAddress: string, aKnownEdges: u32): void;
- describeGarbage(aAddress: string): void;
-}
-
-interface nsICycleCollectorLogSink extends nsISupports {
- closeGCLog(): void;
- closeCCLog(): void;
- filenameIdentifier: string;
- processIdentifier: i32;
- readonly gcLog: nsIFile;
- readonly ccLog: nsIFile;
-}
-
-interface nsICycleCollectorListener extends nsISupports {
- allTraces(): nsICycleCollectorListener;
- readonly wantAllTraces: boolean;
- disableLog: boolean;
- logSink: nsICycleCollectorLogSink;
- wantAfterProcessing: boolean;
- processNext(aHandler: nsICycleCollectorHandler): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIDebug2.idl
-
-interface nsIDebug2 extends nsISupports {
- readonly isDebugBuild: boolean;
- readonly assertionCount: i32;
- readonly isDebuggerAttached: boolean;
- assertion(aStr: string, aExpr: string, aFile: string, aLine: i32): void;
- warning(aStr: string, aFile: string, aLine: i32): void;
- break(aFile: string, aLine: i32): void;
- abort(aFile: string, aLine: i32): void;
- rustPanic(aMessage: string): void;
- rustLog(aTarget: string, aMessage: string): void;
- crashWithOOM(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIException.idl
-
-interface nsIStackFrame extends nsISupports {
- readonly filename: string;
- readonly name: string;
- readonly sourceId: i32;
- readonly lineNumber: i32;
- readonly columnNumber: i32;
- readonly asyncCause: string;
- readonly asyncCaller: nsIStackFrame;
- readonly caller: nsIStackFrame;
- readonly formattedStack: string;
- readonly nativeSavedFrame: any;
- toString(): string;
-}
-
-interface nsIException extends nsISupports {
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIInterfaceRequestor.idl
-
-interface nsIInterfaceRequestor extends nsISupports {
- getInterface(uuid: T): nsQIResult;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIMacPreferencesReader.idl
-
-interface nsIMacPreferencesReader extends nsISupports {
- policiesEnabled(): boolean;
- readPreferences(): any;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIMemoryInfoDumper.idl
-
-type nsIFinishDumpingCallback = Callable<{
- callback(data: nsISupports): void;
-}>
-
-interface nsIDumpGCAndCCLogsCallback extends nsISupports {
- onDump(aGCLog: nsIFile, aCCLog: nsIFile, aIsParent: boolean): void;
- onFinish(): void;
-}
-
-interface nsIMemoryInfoDumper extends nsISupports {
- dumpMemoryReportsToNamedFile(aFilename: string, aFinishDumping: nsIFinishDumpingCallback, aFinishDumpingData: nsISupports, aAnonymize: boolean, aMinimizeMemoryUsage: boolean): void;
- dumpMemoryInfoToTempDir(aIdentifier: string, aAnonymize: boolean, aMinimizeMemoryUsage: boolean): void;
- dumpGCAndCCLogsToFile(aIdentifier: string, aDumpAllTraces: boolean, aDumpChildProcesses: boolean, aCallback: nsIDumpGCAndCCLogsCallback): void;
- dumpGCAndCCLogsToSink(aDumpAllTraces: boolean, aSink: nsICycleCollectorLogSink): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIMemoryReporter.idl
-
-type nsIHandleReportCallback = Callable<{
- callback(process: string, path: string, kind: i32, units: i32, amount: i64, description: string, data: nsISupports): void;
-}>
-
-interface nsIMemoryReporter extends nsISupports {
- readonly KIND_NONHEAP: 0;
- readonly KIND_HEAP: 1;
- readonly KIND_OTHER: 2;
- readonly UNITS_BYTES: 0;
- readonly UNITS_COUNT: 1;
- readonly UNITS_COUNT_CUMULATIVE: 2;
- readonly UNITS_PERCENTAGE: 3;
-
- collectReports(callback: nsIHandleReportCallback, data: nsISupports, anonymize: boolean): void;
-}
-
-type nsIFinishReportingCallback = Callable<{
- callback(data: nsISupports): void;
-}>
-
-type nsIHeapAllocatedCallback = Callable<{
- callback(bytesAllocated: i64): void;
-}>
-
-interface nsIMemoryReporterManager extends nsISupports {
- init(): void;
- registerStrongReporter(reporter: nsIMemoryReporter): void;
- registerStrongAsyncReporter(reporter: nsIMemoryReporter): void;
- registerWeakReporter(reporter: nsIMemoryReporter): void;
- registerWeakAsyncReporter(reporter: nsIMemoryReporter): void;
- unregisterStrongReporter(reporter: nsIMemoryReporter): void;
- unregisterWeakReporter(reporter: nsIMemoryReporter): void;
- blockRegistrationAndHideExistingReporters(): void;
- unblockRegistrationAndRestoreOriginalReporters(): void;
- registerStrongReporterEvenIfBlocked(aReporter: nsIMemoryReporter): void;
- getReports(handleReport: nsIHandleReportCallback, handleReportData: nsISupports, finishReporting: nsIFinishReportingCallback, finishReportingData: nsISupports, anonymize: boolean): void;
- getReportsExtended(handleReport: nsIHandleReportCallback, handleReportData: nsISupports, finishReporting: nsIFinishReportingCallback, finishReportingData: nsISupports, anonymize: boolean, minimizeMemoryUsage: boolean, DMDDumpIdent: string): void;
- readonly vsize: i64;
- readonly vsizeMaxContiguous: i64;
- readonly resident: i64;
- readonly residentFast: i64;
- readonly residentPeak: i64;
- readonly residentUnique: i64;
- readonly heapAllocated: i64;
- readonly heapOverheadFraction: i64;
- readonly JSMainRuntimeGCHeap: i64;
- readonly JSMainRuntimeTemporaryPeak: i64;
- readonly JSMainRuntimeCompartmentsSystem: i64;
- readonly JSMainRuntimeCompartmentsUser: i64;
- readonly JSMainRuntimeRealmsSystem: i64;
- readonly JSMainRuntimeRealmsUser: i64;
- readonly imagesContentUsedUncompressed: i64;
- readonly storageSQLite: i64;
- readonly lowMemoryEventsPhysical: i64;
- readonly ghostWindows: i64;
- readonly pageFaultsHard: i64;
- readonly hasMozMallocUsableSize: boolean;
- readonly isDMDEnabled: boolean;
- readonly isDMDRunning: boolean;
- minimizeMemoryUsage(callback: nsIRunnable): void;
- sizeOfTab(window: mozIDOMWindowProxy, jsObjectsSize: OutParam, jsStringsSize: OutParam, jsOtherSize: OutParam, domSize: OutParam, styleSize: OutParam, otherSize: OutParam, totalSize: OutParam, jsMilliseconds: OutParam, nonJSMilliseconds: OutParam): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsISecurityConsoleMessage.idl
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsISupports.idl
-
-interface nsISupports {
- QueryInterface?(aIID: T): nsQIResult;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIUUIDGenerator.idl
-
-interface nsIUUIDGenerator extends nsISupports {
- generateUUID(): nsID;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIVersionComparator.idl
-
-interface nsIVersionComparator extends nsISupports {
- compare(A: string, B: string): i32;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsIWeakReference.idl
-
-interface nsIWeakReference extends nsISupports {
- QueryReferent(uuid: T): nsQIResult;
-}
-
-interface nsISupportsWeakReference extends nsISupports {
- GetWeakReference(): nsIWeakReference;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/base/nsrootidl.idl
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/xulstore/nsIXULStore.idl
-
-interface nsIXULStore extends nsISupports {
- persist(aNode: Node, attr: string): void;
- setValue(doc: string, id: string, attr: string, value: string): void;
- hasValue(doc: string, id: string, attr: string): boolean;
- getValue(doc: string, id: string, attr: string): string;
- removeValue(doc: string, id: string, attr: string): void;
- removeDocument(doc: string): void;
- getIDsEnumerator(doc: string): nsIStringEnumerator;
- getAttributeEnumerator(doc: string, id: string): nsIStringEnumerator;
-}
-
-// https://searchfox.org/mozilla-central/source/editor/txmgr/nsITransaction.idl
-
-interface nsITransaction extends nsISupports {
- doTransaction(): void;
- undoTransaction(): void;
- redoTransaction(): void;
- readonly isTransient: boolean;
- merge(aTransaction: nsITransaction): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/editor/txmgr/nsITransactionManager.idl
-
-interface nsITransactionManager extends nsISupports {
- doTransaction(aTransaction: nsITransaction): void;
- undoTransaction(): void;
- redoTransaction(): void;
- clear(): void;
- clearUndoStack(): void;
- clearRedoStack(): void;
- beginBatch(aData: nsISupports): void;
- endBatch(aAllowEmpty: boolean): void;
- readonly numberOfUndoItems: i32;
- readonly numberOfRedoItems: i32;
- maxTransactionCount: i32;
- batchTopUndo(): void;
- removeTopUndo(): void;
- peekUndoStack(): nsITransaction;
- peekRedoStack(): nsITransaction;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/data/nsIDataChannel.idl
-
-interface nsIDataChannel extends nsISupports {
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIBackgroundChannelRegistrar.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIBinaryHttp.idl
-
-interface nsIBinaryHttpRequest extends nsISupports {
- readonly method: string;
- readonly scheme: string;
- readonly authority: string;
- readonly path: string;
- readonly headerNames: string[];
- readonly headerValues: string[];
- readonly content: u8[];
-}
-
-interface nsIBinaryHttpResponse extends nsISupports {
- readonly status: u16;
- readonly headerNames: string[];
- readonly headerValues: string[];
- readonly content: u8[];
-}
-
-interface nsIBinaryHttp extends nsISupports {
- encodeRequest(request: nsIBinaryHttpRequest): u8[];
- decodeRequest(request: u8[]): nsIBinaryHttpRequest;
- decodeResponse(response: u8[]): nsIBinaryHttpResponse;
- encodeResponse(response: nsIBinaryHttpResponse): u8[];
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIEarlyHintObserver.idl
-
-interface nsIEarlyHintObserver extends nsISupports {
- earlyHint(linkHeader: string, referrerPolicy: string, cspHeader: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpActivityObserver.idl
-
-interface nsIHttpActivityObserver extends nsISupports {
- readonly ACTIVITY_TYPE_SOCKET_TRANSPORT: 1;
- readonly ACTIVITY_TYPE_HTTP_TRANSACTION: 2;
- readonly ACTIVITY_TYPE_HTTP_CONNECTION: 3;
- readonly ACTIVITY_SUBTYPE_REQUEST_HEADER: 20481;
- readonly ACTIVITY_SUBTYPE_REQUEST_BODY_SENT: 20482;
- readonly ACTIVITY_SUBTYPE_RESPONSE_START: 20483;
- readonly ACTIVITY_SUBTYPE_RESPONSE_HEADER: 20484;
- readonly ACTIVITY_SUBTYPE_RESPONSE_COMPLETE: 20485;
- readonly ACTIVITY_SUBTYPE_TRANSACTION_CLOSE: 20486;
- readonly ACTIVITY_SUBTYPE_PROXY_RESPONSE_HEADER: 20487;
- readonly ACTIVITY_SUBTYPE_DNSANDSOCKET_CREATED: 20488;
- readonly ACTIVITY_SUBTYPE_SPECULATIVE_DNSANDSOCKET_CREATED: 20489;
- readonly ACTIVITY_SUBTYPE_ECH_SET: 20490;
- readonly ACTIVITY_SUBTYPE_CONNECTION_CREATED: 20491;
- readonly ACTIVITY_SUBTYPE_EARLYHINT_RESPONSE_HEADER: 20492;
-
- observeActivity(aHttpChannel: nsISupports, aActivityType: u32, aActivitySubtype: u32, aTimestamp: PRTime, aExtraSizeData: u64, aExtraStringData: string): void;
- readonly isActive: boolean;
- observeConnectionActivity(aHost: string, aPort: i32, aSSL: boolean, aHasECH: boolean, aIsHttp3: boolean, aActivityType: u32, aActivitySubtype: u32, aTimestamp: PRTime, aExtraStringData: string): void;
-}
-
-interface nsIHttpActivityDistributor extends nsIHttpActivityObserver {
- addObserver(aObserver: nsIHttpActivityObserver): void;
- removeObserver(aObserver: nsIHttpActivityObserver): void;
- observeProxyResponse: boolean;
- observeConnection: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpAuthManager.idl
-
-interface nsIHttpAuthManager extends nsISupports {
- getAuthIdentity(aScheme: string, aHost: string, aPort: i32, aAuthType: string, aRealm: string, aPath: string, aUserDomain: OutParam, aUserName: OutParam, aUserPassword: OutParam, aIsPrivate?: boolean, aPrincipal?: nsIPrincipal): void;
- setAuthIdentity(aScheme: string, aHost: string, aPort: i32, aAuthType: string, aRealm: string, aPath: string, aUserDomain: string, aUserName: string, aUserPassword: string, aIsPrivate?: boolean, aPrincipal?: nsIPrincipal): void;
- clearAll(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpAuthenticableChannel.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpAuthenticator.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpChannel.idl
-
-interface nsIHttpChannel extends nsIIdentChannel {
- requestMethod: string;
- referrerInfo: nsIReferrerInfo;
- readonly protocolVersion: string;
- readonly transferSize: u64;
- readonly requestSize: u64;
- readonly decodedBodySize: u64;
- readonly encodedBodySize: u64;
- getRequestHeader(aHeader: string): string;
- setRequestHeader(aHeader: string, aValue: string, aMerge: boolean): void;
- setNewReferrerInfo(aUrl: string, aPolicy: nsIReferrerInfo.ReferrerPolicyIDL, aSendReferrer: boolean): void;
- setEmptyRequestHeader(aHeader: string): void;
- visitRequestHeaders(aVisitor: nsIHttpHeaderVisitor): void;
- visitNonDefaultRequestHeaders(aVisitor: nsIHttpHeaderVisitor): void;
- ShouldStripRequestBodyHeader(aMethod: string): boolean;
- allowSTS: boolean;
- redirectionLimit: u32;
- readonly responseStatus: u32;
- readonly responseStatusText: string;
- readonly requestSucceeded: boolean;
- isMainDocumentChannel: boolean;
- getResponseHeader(header: string): string;
- setResponseHeader(header: string, value: string, merge: boolean): void;
- visitResponseHeaders(aVisitor: nsIHttpHeaderVisitor): void;
- getOriginalResponseHeader(aHeader: string, aVisitor: nsIHttpHeaderVisitor): void;
- visitOriginalResponseHeaders(aVisitor: nsIHttpHeaderVisitor): void;
- isNoStoreResponse(): boolean;
- isNoCacheResponse(): boolean;
- isPrivateResponse(): boolean;
- redirectTo(aTargetURI: nsIURI): void;
- upgradeToSecure(): void;
- topLevelContentWindowId: u64;
- browserId: u64;
- logBlockedCORSRequest(aMessage: string, aCategory: string, aIsWarning: boolean): void;
- logMimeTypeMismatch(aMessageName: string, aWarning: boolean, aURL: string, aContentType: string): void;
- classicScriptHintCharset: string;
- documentCharacterSet: string;
- requestObserversCalled: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpChannelAuthProvider.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpChannelChild.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpChannelInternal.idl
-
-interface nsIHttpUpgradeListener extends nsISupports {
- onTransportAvailable(aTransport: nsISocketTransport, aSocketIn: nsIAsyncInputStream, aSocketOut: nsIAsyncOutputStream): void;
- onUpgradeFailed(aErrorCode: nsresult): void;
-}
-
-interface nsIHttpChannelInternal extends nsISupports {
- readonly THIRD_PARTY_FORCE_ALLOW: 1;
- readonly TLS_FLAG_CONFIGURE_AS_RETRY: 65536;
- readonly REDIRECT_MODE_FOLLOW: 0;
- readonly REDIRECT_MODE_ERROR: 1;
- readonly REDIRECT_MODE_MANUAL: 2;
- readonly FETCH_CACHE_MODE_DEFAULT: 0;
- readonly FETCH_CACHE_MODE_NO_STORE: 1;
- readonly FETCH_CACHE_MODE_RELOAD: 2;
- readonly FETCH_CACHE_MODE_NO_CACHE: 3;
- readonly FETCH_CACHE_MODE_FORCE_CACHE: 4;
- readonly FETCH_CACHE_MODE_ONLY_IF_CACHED: 5;
-
- documentURI: nsIURI;
- getRequestVersion(major: OutParam, minor: OutParam): void;
- getResponseVersion(major: OutParam, minor: OutParam): void;
- setCookieHeaders(aCookieHeaders: string[]): void;
- thirdPartyFlags: u32;
- forceAllowThirdPartyCookie: boolean;
- channelIsForDownload: boolean;
- readonly localAddress: string;
- readonly localPort: i32;
- readonly remoteAddress: string;
- readonly remotePort: i32;
- HTTPUpgrade(aProtocolName: string, aListener: nsIHttpUpgradeListener): void;
- setConnectOnly(tlsTunnel: boolean): void;
- readonly onlyConnect: boolean;
- allowSpdy: boolean;
- allowHttp3: boolean;
- responseTimeoutEnabled: boolean;
- initialRwin: u32;
- readonly apiRedirectToURI: nsIURI;
- allowAltSvc: boolean;
- beConservative: boolean;
- bypassProxy: boolean;
- readonly isResolvedByTRR: boolean;
- readonly effectiveTRRMode: nsIRequest.TRRMode;
- readonly trrSkipReason: nsITRRSkipReason.value;
- readonly isLoadedBySocketProcess: boolean;
- isOCSP: boolean;
- tlsFlags: u32;
- readonly lastModifiedTime: PRTime;
- corsIncludeCredentials: boolean;
- redirectMode: u32;
- fetchCacheMode: u32;
- readonly topWindowURI: nsIURI;
- setTopWindowURIIfUnknown(topWindowURI: nsIURI): void;
- readonly proxyURI: nsIURI;
- blockAuthPrompt: boolean;
- integrityMetadata: string;
- readonly connectionInfoHashKey: string;
- setIPv4Disabled(): void;
- setIPv6Disabled(): void;
- readonly crossOriginOpenerPolicy: nsILoadInfo.CrossOriginOpenerPolicy;
- readonly supportsHTTP3: boolean;
- readonly hasHTTPSRR: boolean;
- setEarlyHintObserver(aObserver: nsIEarlyHintObserver): void;
- earlyHintPreloaderId: u64;
- readonly isProxyUsed: boolean;
- setWebTransportSessionEventListener(aListener: WebTransportSessionEventListener): void;
- earlyHintLinkType: u32;
- isUserAgentHeaderModified: boolean;
- setResponseOverride(aReplacedHttpResponse: nsIReplacedHttpResponse): void;
- setResponseStatus(aStatus: u32, aStatusText: string): void;
- readonly lastTransportStatus: nsresult;
- transparentRedirectTo(aTargetURI: nsIURI): void;
- readonly caps: u32;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpHeaderVisitor.idl
-
-type nsIHttpHeaderVisitor = Callable<{
- visitHeader(aHeader: string, aValue: string): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIHttpProtocolHandler.idl
-
-interface nsIHttpProtocolHandler extends nsIProxiedProtocolHandler {
- readonly userAgent: string;
- readonly rfpUserAgent: string;
+ readonly description: string;
+ readonly accessKey: string;
+ readonly keyboardShortcut: string;
+ readonly role: u32;
+ getState(aState: OutParam, aExtraState: OutParam): void;
+ readonly focusedChild: nsIAccessible;
+ readonly attributes: nsIPersistentProperties;
+ readonly cache: nsIPersistentProperties;
+ readonly nativeInterface: nsISupports;
+ groupPosition(aGroupLevel: OutParam, aSimilarItemsInGroup: OutParam, aPositionInGroup: OutParam): void;
+ getChildAtPoint(x: i32, y: i32): nsIAccessible;
+ getDeepestChildAtPoint(x: i32, y: i32): nsIAccessible;
+ getDeepestChildAtPointInProcess(x: i32, y: i32): nsIAccessible;
+ getChildAt(aChildIndex: i32): nsIAccessible;
+ getRelationByType(aRelationType: u32): nsIAccessibleRelation;
+ getRelations(): nsIArray;
+ getBounds(x: OutParam, y: OutParam, width: OutParam, height: OutParam): void;
+ getBoundsInCSSPixels(aX: OutParam, aY: OutParam, aWidth: OutParam, aHeight: OutParam): void;
+ setSelected(isSelected: boolean): void;
+ takeSelection(): void;
+ takeFocus(): void;
+ readonly actionCount: u8;
+ getActionName(index: u8): string;
+ getActionDescription(aIndex: u8): string;
+ doAction(index: u8): void;
+ scrollTo(aScrollType: u32): void;
+ scrollToPoint(coordinateType: u32, x: i32, y: i32): void;
+ announce(announcement: string, priority: u16): void;
+ readonly computedARIARole: string;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleAnnouncementEvent.idl
+
+interface nsIAccessibleAnnouncementEvent extends nsIAccessibleEvent {
+ readonly POLITE: 0;
+ readonly ASSERTIVE: 1;
+
+ readonly announcement: string;
+ readonly priority: u16;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleApplication.idl
+
+interface nsIAccessibleApplication extends nsISupports {
readonly appName: string;
readonly appVersion: string;
- readonly platform: string;
- readonly oscpu: string;
- readonly misc: string;
- readonly altSvcCacheKeys: string[];
- readonly authCacheKeys: string[];
- EnsureHSTSDataReady(): Promise;
- clearCORSPreflightCache(): void;
+ readonly platformName: string;
+ readonly platformVersion: string;
}
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsINetworkErrorLogging.idl
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleCaretMoveEvent.idl
-interface nsINetworkErrorLogging extends nsISupports {
- registerPolicy(aChannel: nsIHttpChannel): void;
- generateNELReport(aChannel: nsIHttpChannel): void;
+interface nsIAccessibleCaretMoveEvent extends nsIAccessibleEvent {
+ readonly caretOffset: i32;
+ readonly isSelectionCollapsed: boolean;
+ readonly isAtEndOfLine: boolean;
+ readonly granularity: i32;
}
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIObliviousHttp.idl
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleDocument.idl
-interface nsIObliviousHttpClientResponse extends nsISupports {
- decapsulate(encResponse: u8[]): u8[];
+interface nsIAccessibleDocument extends nsISupports {
+ readonly URL: string;
+ readonly title: string;
+ readonly mimeType: string;
+ readonly docType: string;
+ readonly DOMDocument: Document;
+ readonly window: mozIDOMWindowProxy;
+ readonly parentDocument: nsIAccessibleDocument;
+ readonly childDocumentCount: u32;
+ getChildDocumentAt(index: u32): nsIAccessibleDocument;
}
-interface nsIObliviousHttpClientRequest extends nsISupports {
- readonly encRequest: u8[];
- readonly response: nsIObliviousHttpClientResponse;
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleEditableText.idl
+
+interface nsIAccessibleEditableText extends nsISupports {
+ setTextContents(text: string): void;
+ insertText(text: string, position: i32): void;
+ copyText(startPos: i32, endPos: i32): void;
+ cutText(startPos: i32, endPos: i32): void;
+ deleteText(startPos: i32, endPos: i32): void;
+ pasteText(position: i32): void;
}
-interface nsIObliviousHttpServerResponse extends nsISupports {
- readonly request: u8[];
- encapsulate(response: u8[]): u8[];
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleEvent.idl
+
+interface nsIAccessibleEvent extends nsISupports {
+ readonly EVENT_SHOW: 1;
+ readonly EVENT_HIDE: 2;
+ readonly EVENT_REORDER: 3;
+ readonly EVENT_FOCUS: 4;
+ readonly EVENT_STATE_CHANGE: 5;
+ readonly EVENT_NAME_CHANGE: 6;
+ readonly EVENT_DESCRIPTION_CHANGE: 7;
+ readonly EVENT_VALUE_CHANGE: 8;
+ readonly EVENT_SELECTION: 9;
+ readonly EVENT_SELECTION_ADD: 10;
+ readonly EVENT_SELECTION_REMOVE: 11;
+ readonly EVENT_SELECTION_WITHIN: 12;
+ readonly EVENT_ALERT: 13;
+ readonly EVENT_MENU_START: 14;
+ readonly EVENT_MENU_END: 15;
+ readonly EVENT_MENUPOPUP_START: 16;
+ readonly EVENT_MENUPOPUP_END: 17;
+ readonly EVENT_DRAGDROP_START: 18;
+ readonly EVENT_SCROLLING_START: 19;
+ readonly EVENT_SCROLLING_END: 20;
+ readonly EVENT_DOCUMENT_LOAD_COMPLETE: 21;
+ readonly EVENT_DOCUMENT_RELOAD: 22;
+ readonly EVENT_DOCUMENT_LOAD_STOPPED: 23;
+ readonly EVENT_TEXT_ATTRIBUTE_CHANGED: 24;
+ readonly EVENT_TEXT_CARET_MOVED: 25;
+ readonly EVENT_TEXT_INSERTED: 26;
+ readonly EVENT_TEXT_REMOVED: 27;
+ readonly EVENT_TEXT_SELECTION_CHANGED: 28;
+ readonly EVENT_WINDOW_ACTIVATE: 29;
+ readonly EVENT_WINDOW_DEACTIVATE: 30;
+ readonly EVENT_WINDOW_MAXIMIZE: 31;
+ readonly EVENT_WINDOW_MINIMIZE: 32;
+ readonly EVENT_WINDOW_RESTORE: 33;
+ readonly EVENT_OBJECT_ATTRIBUTE_CHANGED: 34;
+ readonly EVENT_TEXT_VALUE_CHANGE: 35;
+ readonly EVENT_SCROLLING: 36;
+ readonly EVENT_ANNOUNCEMENT: 37;
+ readonly EVENT_LIVE_REGION_ADDED: 38;
+ readonly EVENT_LIVE_REGION_REMOVED: 39;
+ readonly EVENT_INNER_REORDER: 40;
+ readonly EVENT_LIVE_REGION_CHANGED: 41;
+ readonly EVENT_LAST_ENTRY: 42;
+
+ readonly eventType: u32;
+ readonly accessible: nsIAccessible;
+ readonly accessibleDocument: nsIAccessibleDocument;
+ readonly DOMNode: Node;
+ readonly isFromUserInput: boolean;
}
-interface nsIObliviousHttpServer extends nsISupports {
- readonly encodedConfig: u8[];
- decapsulate(encRequest: u8[]): nsIObliviousHttpServerResponse;
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleHideEvent.idl
+
+interface nsIAccessibleHideEvent extends nsIAccessibleEvent {
+ readonly targetParent: nsIAccessible;
+ readonly targetNextSibling: nsIAccessible;
+ readonly targetPrevSibling: nsIAccessible;
}
-interface nsIObliviousHttp extends nsISupports {
- encapsulateRequest(encodedConfig: u8[], request: u8[]): nsIObliviousHttpClientRequest;
- server(): nsIObliviousHttpServer;
- decodeConfigList(encodedConfigList: u8[]): u8[][];
-}
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleHyperLink.idl
-interface nsIObliviousHttpService extends nsISupports {
- newChannel(relayURI: nsIURI, targetURI: nsIURI, encodedConfig: u8[]): nsIChannel;
- getTRRSettings(relayURI: OutParam, encodedConfig: OutParam): void;
- clearTRRConfig(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIObliviousHttpChannel.idl
-
-interface nsIObliviousHttpChannel extends nsIHttpChannel {
- readonly relayChannel: nsIHttpChannel;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIRaceCacheWithNetwork.idl
-
-interface nsIRaceCacheWithNetwork extends nsISupports {
- allowRacing: boolean;
- test_triggerNetwork(timeout: i32): void;
- test_delayCacheEntryOpeningBy(timeout: i32): void;
- test_triggerDelayedOpenCacheEntry(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIReplacedHttpResponse.idl
-
-interface nsIReplacedHttpResponse extends nsISupports {
- init(): void;
- responseBody: string;
- responseStatus: u32;
- responseStatusText: string;
- visitResponseHeaders(visitor: nsIHttpHeaderVisitor): void;
- setResponseHeader(header: string, value: string, merge: boolean): void;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsITlsHandshakeListener.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/http/nsIWellKnownOpportunisticUtils.idl
-
-interface nsIWellKnownOpportunisticUtils extends nsISupports {
- verify(aJSON: string, aOrigin: string): void;
+interface nsIAccessibleHyperLink extends nsISupports {
+ readonly startIndex: i32;
+ readonly endIndex: i32;
readonly valid: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/streamconv/converters/nsICompressConvStats.idl
-
-interface nsICompressConvStats extends nsISupports {
- readonly decodedDataLength: u64;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/viewsource/nsIViewSourceChannel.idl
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/payments/nsIPaymentActionResponse.idl
-
-interface nsIPaymentResponseData extends nsISupports {
- readonly GENERAL_RESPONSE: 0;
- readonly BASICCARD_RESPONSE: 1;
-
- readonly type: u32;
- init(aType: u32): void;
-}
-
-interface nsIGeneralResponseData extends nsIPaymentResponseData {
- readonly data: string;
- initData(aData: any): void;
-}
-
-interface nsIBasicCardResponseData extends nsIPaymentResponseData {
- readonly cardholderName: string;
- readonly cardNumber: string;
- readonly expiryMonth: string;
- readonly expiryYear: string;
- readonly cardSecurityCode: string;
- readonly billingAddress: nsIPaymentAddress;
- initData(aCardholderName: string, aCardNumber: string, aExpiryMonth: string, aExpiryYear: string, aCardSecurityCode: string, billingAddress: nsIPaymentAddress): void;
-}
-
-interface nsIPaymentActionResponse extends nsISupports {
- readonly NO_TYPE: 0;
- readonly CANMAKE_ACTION: 2;
- readonly SHOW_ACTION: 3;
- readonly ABORT_ACTION: 4;
- readonly COMPLETE_ACTION: 5;
- readonly ABORT_SUCCEEDED: 1;
- readonly ABORT_FAILED: 0;
- readonly PAYMENT_REJECTED: 0;
- readonly PAYMENT_ACCEPTED: 1;
- readonly PAYMENT_NOTSUPPORTED: 2;
- readonly COMPLETE_SUCCEEDED: 1;
- readonly COMPLETE_FAILED: 0;
-
- readonly requestId: string;
- readonly type: u32;
-}
-
-interface nsIPaymentCanMakeActionResponse extends nsIPaymentActionResponse {
- readonly result: boolean;
- init(aRequestId: string, aResult: boolean): void;
-}
-
-interface nsIPaymentShowActionResponse extends nsIPaymentActionResponse {
- readonly acceptStatus: u32;
- readonly methodName: string;
- readonly data: nsIPaymentResponseData;
- readonly payerName: string;
- readonly payerEmail: string;
- readonly payerPhone: string;
- init(aRequestId: string, aAcceptStatus: u32, aMethodName: string, aData: nsIPaymentResponseData, aPayerName: string, aPayerEmail: string, aPayerPhone: string): void;
-}
-
-interface nsIPaymentAbortActionResponse extends nsIPaymentActionResponse {
- readonly abortStatus: u32;
- init(aRequestId: string, aAbortStatus: u32): void;
- isSucceeded(): boolean;
-}
-
-interface nsIPaymentCompleteActionResponse extends nsIPaymentActionResponse {
- readonly completeStatus: u32;
- init(aRequestId: string, aCompleteStatus: u32): void;
- isCompleted(): boolean;
-}
-
-interface nsIMethodChangeDetails extends nsISupports {
- readonly GENERAL_DETAILS: 0;
- readonly BASICCARD_DETAILS: 1;
-
- readonly type: u32;
- init(aType: u32): void;
-}
-
-interface nsIGeneralChangeDetails extends nsIMethodChangeDetails {
- readonly details: string;
- initData(aDetails: any): void;
-}
-
-interface nsIBasicCardChangeDetails extends nsIMethodChangeDetails {
- readonly billingAddress: nsIPaymentAddress;
- initData(billingAddress: nsIPaymentAddress): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/payments/nsIPaymentAddress.idl
-
-interface nsIPaymentAddress extends nsISupports {
- readonly country: string;
- readonly addressLine: nsIArray;
- readonly region: string;
- readonly regionCode: string;
- readonly city: string;
- readonly dependentLocality: string;
- readonly postalCode: string;
- readonly sortingCode: string;
- readonly organization: string;
- readonly recipient: string;
- readonly phone: string;
- init(aCountry: string, aAddressLine: nsIArray, aRegion: string, aRegionCode: string, aCity: string, aDependentLocality: string, aPostalCode: string, aSortingCode: string, aOrganization: string, aRecipient: string, aPhone: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/payments/nsIPaymentRequest.idl
-
-interface nsIPaymentMethodData extends nsISupports {
- readonly supportedMethods: string;
- readonly data: any;
-}
-
-interface nsIPaymentCurrencyAmount extends nsISupports {
- readonly currency: string;
- readonly value: string;
-}
-
-interface nsIPaymentItem extends nsISupports {
- readonly label: string;
- readonly amount: nsIPaymentCurrencyAmount;
- readonly pending: boolean;
-}
-
-interface nsIPaymentDetailsModifier extends nsISupports {
- readonly supportedMethods: string;
- readonly total: nsIPaymentItem;
- readonly additionalDisplayItems: nsIArray;
- readonly data: any;
-}
-
-interface nsIPaymentShippingOption extends nsISupports {
- readonly id: string;
- readonly label: string;
- readonly amount: nsIPaymentCurrencyAmount;
- selected: boolean;
-}
-
-interface nsIPaymentDetails extends nsISupports {
- readonly id: string;
- readonly totalItem: nsIPaymentItem;
- readonly displayItems: nsIArray;
- readonly shippingOptions: nsIArray;
- readonly modifiers: nsIArray;
- readonly error: string;
- readonly shippingAddressErrors: any;
- readonly payerErrors: any;
- readonly paymentMethodErrors: any;
-}
-
-interface nsIPaymentOptions extends nsISupports {
- readonly requestPayerName: boolean;
- readonly requestPayerEmail: boolean;
- readonly requestPayerPhone: boolean;
- readonly requestShipping: boolean;
- readonly requestBillingAddress: boolean;
- readonly shippingType: string;
-}
-
-interface nsIPaymentRequest extends nsISupports {
- readonly topOuterWindowId: u64;
- readonly topLevelPrincipal: nsIPrincipal;
- readonly requestId: string;
- readonly completeStatus: string;
- readonly paymentMethods: nsIArray;
- readonly paymentDetails: nsIPaymentDetails;
- readonly paymentOptions: nsIPaymentOptions;
- readonly shippingOption: string;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/payments/nsIPaymentRequestService.idl
-
-interface nsIPaymentRequestService extends nsISupports {
- getPaymentRequestById(aRequestId: string): nsIPaymentRequest;
- enumerate(): nsISimpleEnumerator;
- respondPayment(aResponse: nsIPaymentActionResponse): void;
- changeShippingAddress(requestId: string, aAddress: nsIPaymentAddress): void;
- changeShippingOption(requestId: string, option: string): void;
- changePayerDetail(requestId: string, aPayerName: string, aPayerEmail: string, aPayerPhone: string): void;
- changePaymentMethod(requestId: string, aMethodName: string, aMethodDetails: nsIMethodChangeDetails): void;
- cleanup(): void;
- setTestingUIService(aUIService: nsIPaymentUIService): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/payments/nsIPaymentUIService.idl
-
-interface nsIPaymentUIService extends nsISupports {
- showPayment(requestId: string): void;
- abortPayment(requestId: string): void;
- completePayment(requestId: string): void;
- updatePayment(requestId: string): void;
- closePayment(requestId: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/media/webspeech/recognition/nsISpeechRecognitionService.idl
-
-// https://searchfox.org/mozilla-central/source/netwerk/test/httpserver/nsIHttpServer.idl
-
-interface nsIHttpServer extends nsISupports {
- start(port: i32): void;
- start_ipv6(port: i32): void;
- start_dualStack(port: i32): void;
- stop(callback: nsIHttpServerStoppedCallback): void;
- registerFile(path: string, file: nsIFile, handler?: nsIHttpRequestHandler): void;
- registerPathHandler(path: string, handler: nsIHttpRequestHandler): void;
- registerPrefixHandler(prefix: string, handler: nsIHttpRequestHandler): void;
- registerErrorHandler(code: u32, handler: nsIHttpRequestHandler): void;
- registerDirectory(path: string, dir: nsIFile): void;
- registerContentType(extension: string, type: string): void;
- setIndexHandler(handler: nsIHttpRequestHandler): void;
- readonly identity: nsIHttpServerIdentity;
- getState(path: string, key: string): string;
- setState(path: string, key: string, value: string): void;
- getSharedState(key: string): string;
- setSharedState(key: string, value: string): void;
- getObjectState(key: string): nsISupports;
- setObjectState(key: string, value: nsISupports): void;
-}
-
-type nsIHttpServerStoppedCallback = Callable<{
- onStopped(): void;
-}>
-
-interface nsIHttpServerIdentity extends nsISupports {
- readonly primaryScheme: string;
- readonly primaryHost: string;
- readonly primaryPort: i32;
- add(scheme: string, host: string, port: i32): void;
- remove(scheme: string, host: string, port: i32): boolean;
- has(scheme: string, host: string, port: i32): boolean;
- getScheme(host: string, port: i32): string;
- setPrimary(scheme: string, host: string, port: i32): void;
-}
-
-type nsIHttpRequestHandler = Callable<{
- handle(request: nsIHttpRequest, response: nsIHttpResponse): void;
-}>
-
-interface nsIHttpRequest extends nsISupports {
- readonly method: string;
- readonly scheme: string;
- readonly host: string;
- readonly port: u32;
- readonly path: string;
- readonly queryString: string;
- readonly httpVersion: string;
- getHeader(fieldName: string): string;
- hasHeader(fieldName: string): boolean;
- readonly headers: nsISimpleEnumerator;
- readonly bodyInputStream: nsIInputStream;
-}
-
-interface nsIHttpResponse extends nsISupports {
- setStatusLine(httpVersion: string, statusCode: u16, description: string): void;
- setHeader(name: string, value: string, merge?: boolean): void;
- setHeaderNoCheck(name: string, value: string): void;
- readonly bodyOutputStream: nsIOutputStream;
- write(data: string): void;
- processAsync(): void;
- seizePower(): void;
- finish(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/modules/libjar/zipwriter/nsIZipWriter.idl
-
-interface nsIZipWriter extends nsISupports {
- readonly COMPRESSION_NONE: 0;
- readonly COMPRESSION_FASTEST: 1;
- readonly COMPRESSION_DEFAULT: 6;
- readonly COMPRESSION_BEST: 9;
-
- comment: string;
- readonly inQueue: boolean;
- readonly file: nsIFile;
- open(aFile: nsIFile, aIoFlags: i32): void;
- getEntry(aZipEntry: string): nsIZipEntry;
- hasEntry(aZipEntry: string): boolean;
- addEntryDirectory(aZipEntry: string, aModTime: PRTime, aQueue: boolean): void;
- addEntryFile(aZipEntry: string, aCompression: i32, aFile: nsIFile, aQueue: boolean): void;
- addEntryChannel(aZipEntry: string, aModTime: PRTime, aCompression: i32, aChannel: nsIChannel, aQueue: boolean): void;
- addEntryStream(aZipEntry: string, aModTime: PRTime, aCompression: i32, aStream: nsIInputStream, aQueue: boolean): void;
- removeEntry(aZipEntry: string, aQueue: boolean): void;
- processQueue(aObserver: nsIRequestObserver, aContext: nsISupports): void;
- close(): void;
- alignStoredFiles(aAlignSize: u16): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/privateattribution/nsIPrivateAttributionService.idl
-
-interface nsIPrivateAttributionService extends nsISupports {
- onAttributionEvent(sourceHost: string, type: string, index: u32, ad: string, targetHost: string): void;
- onAttributionConversion(targetHost: string, task: string, histogramSize: u32, lookbackDays: u32, impressionType: string, ads: string[], sourceHosts: string[]): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIDirectTaskDispatcher.idl
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIEnvironment.idl
-
-interface nsIEnvironment extends nsISupports {
- set(aName: string, aValue: string): void;
- get(aName: string): string;
- exists(aName: string): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIEventTarget.idl
-
-interface nsIEventTarget extends nsISupports {
- readonly DISPATCH_NORMAL: 0;
- readonly DISPATCH_AT_END: 2;
- readonly DISPATCH_EVENT_MAY_BLOCK: 4;
- readonly DISPATCH_IGNORE_BLOCK_DISPATCH: 8;
-
- isOnCurrentThread(): boolean;
- dispatch(event: nsIRunnable, flags: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIIdlePeriod.idl
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsINamed.idl
-
-interface nsINamed extends nsISupports {
- readonly name: string;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIProcess.idl
-
-interface nsIProcess extends nsISupports {
- init(executable: nsIFile): void;
- kill(): void;
- run(blocking: boolean, args: string[], count: u32): void;
- runAsync(args: string[], count: u32, observer?: nsIObserver, holdWeak?: boolean): void;
- runw(blocking: boolean, args: string[], count: u32): void;
- runwAsync(args: string[], count: u32, observer?: nsIObserver, holdWeak?: boolean): void;
- startHidden: boolean;
- noShell: boolean;
- readonly pid: u32;
- readonly exitValue: i32;
- readonly isRunning: boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIRunnable.idl
-
-type nsIRunnable = Callable<{
- run(): void;
-}>
-
-interface nsIRunnablePriority extends nsISupports {
- readonly PRIORITY_IDLE: 0;
- readonly PRIORITY_DEFERRED_TIMERS: 1;
- readonly PRIORITY_LOW: 2;
- readonly PRIORITY_NORMAL: 4;
- readonly PRIORITY_MEDIUMHIGH: 5;
- readonly PRIORITY_INPUT_HIGH: 6;
- readonly PRIORITY_VSYNC: 7;
- readonly PRIORITY_RENDER_BLOCKING: 9;
- readonly PRIORITY_CONTROL: 10;
-
- readonly priority: u32;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsISerialEventTarget.idl
-
-interface nsISerialEventTarget extends nsIEventTarget {
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsISupportsPriority.idl
-
-interface nsISupportsPriority extends nsISupports {
- readonly PRIORITY_HIGHEST: -20;
- readonly PRIORITY_HIGH: -10;
- readonly PRIORITY_NORMAL: 0;
- readonly PRIORITY_LOW: 10;
- readonly PRIORITY_LOWEST: 20;
-
- priority: i32;
- adjustPriority(delta: i32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIThread.idl
-
-} // global
-
-declare namespace nsIThread {
-
-enum QoSPriority {
- QOS_PRIORITY_NORMAL = 0,
- QOS_PRIORITY_LOW = 1,
-}
-
-}
-
-declare global {
-
-interface nsIThread extends nsISerialEventTarget, Enums {
- shutdown(): void;
- hasPendingEvents(): boolean;
- hasPendingHighPriorityEvents(): boolean;
- processNextEvent(mayWait: boolean): boolean;
- asyncShutdown(): void;
- beginShutdown(): nsIThreadShutdown;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIThreadInternal.idl
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIThreadManager.idl
-
-type nsINestedEventLoopCondition = Callable<{
- isDone(): boolean;
-}>
-
-interface nsIThreadManager extends nsISupports {
- readonly mainThread: nsIThread;
- readonly currentThread: nsIThread;
- dispatchToMainThread(event: nsIRunnable, priority?: u32): void;
- dispatchToMainThreadWithMicroTask(event: nsIRunnable, priority?: u32): void;
- idleDispatchToMainThread(event: nsIRunnable, timeout?: u32): void;
- dispatchDirectTaskToCurrentThread(event: nsIRunnable): void;
- spinEventLoopUntil(aVeryGoodReasonToDoThis: string, condition: nsINestedEventLoopCondition): void;
- spinEventLoopUntilOrQuit(aVeryGoodReasonToDoThis: string, condition: nsINestedEventLoopCondition): void;
- spinEventLoopUntilEmpty(): void;
- readonly mainThreadEventTarget: nsIEventTarget;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIThreadPool.idl
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsIThreadShutdown.idl
-
-interface nsIThreadShutdown extends nsISupports {
- onCompletion(aEvent: nsIRunnable): void;
- readonly completed: boolean;
- stopWaitingAndLeakThread(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/threads/nsITimer.idl
-
-type nsITimerCallback = Callable<{
- notify(timer: nsITimer): void;
-}>
-
-interface nsITimer extends nsISupports {
- readonly TYPE_ONE_SHOT: 0;
- readonly TYPE_REPEATING_SLACK: 1;
- readonly TYPE_REPEATING_PRECISE: 2;
- readonly TYPE_REPEATING_PRECISE_CAN_SKIP: 3;
- readonly TYPE_REPEATING_SLACK_LOW_PRIORITY: 4;
- readonly TYPE_ONE_SHOT_LOW_PRIORITY: 5;
-
- init(aObserver: nsIObserver, aDelayInMs: u32, aType: u32): void;
- initWithCallback(aCallback: nsITimerCallback, aDelayInMs: u32, aType: u32): void;
- cancel(): void;
- delay: u32;
- type: u32;
- readonly callback: nsITimerCallback;
- target: nsIEventTarget;
- readonly name: string;
-}
-
-interface nsITimerManager extends nsISupports {
- getTimers(): nsITimer[];
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/bouncetrackingprotection/nsIBTPRemoteExceptionList.idl
-
-interface nsIBTPRemoteExceptionList extends nsISupports {
- init(aProtection: nsIBounceTrackingProtection): Promise;
- shutdown(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/bouncetrackingprotection/nsIBounceTrackingMapEntry.idl
-
-interface nsIBounceTrackingMapEntry extends nsISupports {
- readonly siteHost: string;
- readonly timeStamp: PRTime;
-}
-
-interface nsIBounceTrackingPurgeEntry extends nsIBounceTrackingMapEntry {
- readonly purgeTime: PRTime;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/bouncetrackingprotection/nsIBounceTrackingProtection.idl
-
-} // global
-
-declare namespace nsIBounceTrackingProtection {
-
-enum Modes {
- MODE_DISABLED = 0,
- MODE_ENABLED = 1,
- MODE_ENABLED_STANDBY = 2,
- MODE_ENABLED_DRY_RUN = 3,
- MAX_MODE_VALUE = 3,
-}
-
-}
-
-declare global {
-
-interface nsIBounceTrackingProtection extends nsISupports, Enums {
- clearAll(): void;
- clearBySiteHostAndOriginAttributes(aSiteHost: string, originAttributes: any): void;
- clearBySiteHostAndOriginAttributesPattern(aSiteHost: string, aOriginAttributesPattern: any): void;
- clearByTimeRange(aFrom: PRTime, aTo: PRTime): void;
- clearByOriginAttributesPattern(aPattern: string): void;
- addSiteHostExceptions(aSiteHosts: string[]): void;
- removeSiteHostExceptions(aSiteHosts: string[]): void;
- hasRecentlyPurgedSite(aSiteHost: string): boolean;
- testGetSiteHostExceptions(): string[];
- testRunPurgeBounceTrackers(): Promise;
- testClearExpiredUserActivations(): void;
- testGetBounceTrackerCandidateHosts(originAttributes: any): nsIBounceTrackingMapEntry[];
- testGetUserActivationHosts(originAttributes: any): nsIBounceTrackingMapEntry[];
- testAddBounceTrackerCandidate(originAttributes: any, aSiteHost: string, aBounceTime: PRTime): void;
- testAddUserActivation(originAttributes: any, aSiteHost: string, aActivationTime: PRTime): void;
- testGetRecentlyPurgedTrackers(originAttributes: any): nsIBounceTrackingPurgeEntry[];
- testMaybeMigrateUserInteractionPermissions(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsIContentBlockingAllowList.idl
-
-interface nsIContentBlockingAllowList extends nsISupports {
- computeContentBlockingAllowListPrincipal(aPrincipal: nsIPrincipal): nsIPrincipal;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsIPartitioningExceptionListService.idl
-
-type nsIPartitioningExceptionListObserver = Callable<{
- onExceptionListUpdate(aList: string): void;
-}>
-
-interface nsIPartitioningExceptionListService extends nsISupports {
- registerAndRunExceptionListObserver(aObserver: nsIPartitioningExceptionListObserver): void;
- unregisterExceptionListObserver(aObserver: nsIPartitioningExceptionListObserver): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsIPurgeTrackerService.idl
-
-interface nsIPurgeTrackerService extends nsISupports {
- purgeTrackingCookieJars(): Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsITrackingDBService.idl
-
-interface nsITrackingDBService extends nsISupports {
- readonly OTHER_COOKIES_BLOCKED_ID: 0;
- readonly TRACKERS_ID: 1;
- readonly TRACKING_COOKIES_ID: 2;
- readonly CRYPTOMINERS_ID: 3;
- readonly FINGERPRINTERS_ID: 4;
- readonly SOCIAL_ID: 5;
- readonly SUSPICIOUS_FINGERPRINTERS_ID: 6;
- readonly BOUNCETRACKERS_ID: 7;
-
- recordContentBlockingLog(data: string): void;
- saveEvents(data: string): Promise;
- clearAll(): Promise;
- clearSince(since: i64): Promise;
- getEventsByDateRange(dateFrom: i64, dateTo: i64): Promise;
- sumAllEvents(): Promise;
- getEarliestRecordedDate(): Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsIURLDecorationAnnotationsService.idl
-
-interface nsIURLDecorationAnnotationsService extends nsISupports {
- ensureUpdated(): Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsIURLQueryStringStripper.idl
-
-interface nsIURLQueryStringStripper extends nsISupports {
- strip(aURI: nsIURI, aIsPBM: boolean, aOutput: OutParam): u32;
- stripForCopyOrShare(aURI: nsIURI): nsIURI;
- canStripForShare(aURI: nsIURI): boolean;
- testGetStripList(): string;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/antitracking/nsIURLQueryStrippingListService.idl
-
-interface nsIURLQueryStrippingListObserver extends nsISupports {
- onQueryStrippingListUpdate(aStripList: string, aAllowList: string): void;
- onStripOnShareUpdate(aStripRules: string[]): void;
-}
-
-interface nsIURLQueryStrippingListService extends nsISupports {
- registerAndRunObserver(aObserver: nsIURLQueryStrippingListObserver): void;
- registerAndRunObserverStripOnShare(aObserver: nsIURLQueryStrippingListObserver): void;
- unregisterObserver(aObserver: nsIURLQueryStrippingListObserver): void;
- unregisterStripOnShareObserver(aObserver: nsIURLQueryStrippingListObserver): void;
- clearLists(): void;
- testWaitForInit(): Promise;
- testSetList(testFile: any): Promise;
- testHasStripOnShareObservers(): boolean;
- testHasQPSObservers(): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/media/gmp/mozIGeckoMediaPluginChromeService.idl
-
-interface mozIGeckoMediaPluginChromeService extends nsISupports {
- addPluginDirectory(directory: string): void;
- removePluginDirectory(directory: string): void;
- removeAndDeletePluginDirectory(directory: string, defer?: boolean): void;
- forgetThisSite(site: string, aPattern: string): void;
- forgetThisBaseDomain(baseDomain: string): void;
- isPersistentStorageAllowed(nodeId: string): boolean;
- getStorageDir(): nsIFile;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/media/gmp/mozIGeckoMediaPluginService.idl
-
-interface mozIGeckoMediaPluginService extends nsISupports {
- readonly thread: nsIThread;
- RunPluginCrashCallbacks(pluginId: u32, pluginName: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/modules/libpref/nsIPrefBranch.idl
-
-interface nsIPrefBranch extends nsISupports {
- readonly PREF_INVALID: 0;
- readonly PREF_STRING: 32;
- readonly PREF_INT: 64;
- readonly PREF_BOOL: 128;
-
- readonly root: string;
- getPrefType(aPrefName: string): i32;
- getBoolPref(aPrefName: string, aDefaultValue?: boolean): boolean;
- setBoolPref(aPrefName: string, aValue: boolean): void;
- getFloatPref(aPrefName: string, aDefaultValue?: float): float;
- getCharPref(aPrefName: string, aDefaultValue?: string): string;
- setCharPref(aPrefName: string, aValue: string): void;
- getStringPref(aPrefName: string, aDefaultValue?: string): string;
- setStringPref(aPrefName: string, aValue: string): void;
- getIntPref(aPrefName: string, aDefaultValue?: i32): i32;
- setIntPref(aPrefName: string, aValue: i32): void;
- getComplexValue(aPrefName: string, aType: T): nsQIResult;
- setComplexValue(aPrefName: string, aType: nsID, aValue: nsISupports): void;
- clearUserPref(aPrefName: string): void;
- lockPref(aPrefName: string): void;
- prefHasUserValue(aPrefName: string): boolean;
- prefHasDefaultValue(aPrefName: string): boolean;
- prefIsLocked(aPrefName: string): boolean;
- prefIsSanitized(aPrefName: string): boolean;
- unlockPref(aPrefName: string): void;
- deleteBranch(aStartingAt: string): void;
- getChildList(aStartingAt: string): string[];
- addObserver(aDomain: string, aObserver: nsIObserver, aHoldWeak?: boolean): void;
- removeObserver(aDomain: string, aObserver: nsIObserver): void;
-}
-
-// https://searchfox.org/mozilla-central/source/modules/libpref/nsIPrefLocalizedString.idl
-
-interface nsIPrefLocalizedString extends nsISupportsString {
-}
-
-// https://searchfox.org/mozilla-central/source/modules/libpref/nsIPrefService.idl
-
-type nsIPrefStatsCallback = Callable<{
- visit(prefName: string, accessCount: u32): void;
-}>
-
-interface nsIPrefObserver extends nsISupports {
- onStringPref(kind: string, name: string, value: string, isSticky: boolean, isLocked: boolean): void;
- onIntPref(kind: string, name: string, value: i32, isSticky: boolean, isLocked: boolean): void;
- onBoolPref(kind: string, name: string, value: boolean, isSticky: boolean, isLocked: boolean): void;
- onError(message: string): void;
-}
-
-interface nsIPrefService extends nsISupports {
- resetPrefs(): void;
- savePrefFile(aFile: nsIFile): void;
- backupPrefFile(aFile: nsIFile): Promise;
- getBranch(aPrefRoot: string): nsIPrefBranch;
- getDefaultBranch(aPrefRoot: string): nsIPrefBranch;
- readonly dirty: boolean;
- readDefaultPrefsFromFile(aFile: nsIFile): void;
- readUserPrefsFromFile(aFile: nsIFile): void;
- readStats(callback: nsIPrefStatsCallback): void;
- resetStats(): void;
- parsePrefsFromBuffer(bytes: u8[], observer: nsIPrefObserver, pathLabel?: string): void;
- readonly userPrefsFileLastModifiedAtStartup: PRTime;
-}
-
-// https://searchfox.org/mozilla-central/source/modules/libpref/nsIRelativeFilePref.idl
-
-interface nsIRelativeFilePref extends nsISupports {
- file: nsIFile;
- relativeToKey: string;
-}
-
-// https://searchfox.org/mozilla-central/source/startupcache/nsIStartupCacheInfo.idl
-
-interface nsIStartupCacheInfo extends nsISupports {
- readonly IgnoreDiskCache: boolean;
- readonly FoundDiskCacheOnInit: boolean;
- readonly WroteToDiskCache: boolean;
- readonly DiskCachePath: string;
-}
-
-// https://searchfox.org/mozilla-central/source/layout/xul/tree/nsITreeSelection.idl
-
-interface nsITreeSelection extends nsISupports {
- tree: XULTreeElement;
- readonly single: boolean;
- readonly count: i32;
- isSelected(index: i32): boolean;
- select(index: i32): void;
- timedSelect(index: i32, delay: i32): void;
- toggleSelect(index: i32): void;
- rangedSelect(startIndex: i32, endIndex: i32, augment: boolean): void;
- clearRange(startIndex: i32, endIndex: i32): void;
- clearSelection(): void;
- selectAll(): void;
- getRangeCount(): i32;
- getRangeAt(i: i32, min: OutParam, max: OutParam): void;
- invalidateSelection(): void;
- adjustSelection(index: i32, count: i32): void;
- selectEventsSuppressed: boolean;
- currentIndex: i32;
- readonly shiftSelectPivot: i32;
-}
-
-// https://searchfox.org/mozilla-central/source/layout/xul/tree/nsITreeView.idl
-
-interface nsITreeView extends nsISupports {
- readonly DROP_BEFORE: -1;
- readonly DROP_ON: 0;
- readonly DROP_AFTER: 1;
-
+ readonly anchorCount: i32;
+ getURI(index: i32): nsIURI;
+ getAnchor(index: i32): nsIAccessible;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleHyperText.idl
+
+interface nsIAccessibleHyperText extends nsISupports {
+ readonly linkCount: i32;
+ getLinkAt(index: i32): nsIAccessibleHyperLink;
+ getLinkIndex(link: nsIAccessibleHyperLink): i32;
+ getLinkIndexAtOffset(offset: i32): i32;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleImage.idl
+
+interface nsIAccessibleImage extends nsISupports {
+ getImagePosition(coordType: u32, x: OutParam, y: OutParam): void;
+ getImageSize(width: OutParam, height: OutParam): void;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleObjectAttributeChangedEvent.idl
+
+interface nsIAccessibleObjectAttributeChangedEvent extends nsIAccessibleEvent {
+ readonly changedAttribute: string;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessiblePivot.idl
+
+interface nsIAccessiblePivot extends nsISupports {
+ next(aAnchor: nsIAccessible, aRule: nsIAccessibleTraversalRule, aIncludeStart?: boolean): nsIAccessible;
+ prev(aAnchor: nsIAccessible, aRule: nsIAccessibleTraversalRule, aIncludeStart?: boolean): nsIAccessible;
+ first(aRule: nsIAccessibleTraversalRule): nsIAccessible;
+ last(aRule: nsIAccessibleTraversalRule): nsIAccessible;
+ atPoint(aX: i32, aY: i32, aRule: nsIAccessibleTraversalRule): nsIAccessible;
+}
+
+interface nsIAccessibleTraversalRule extends nsISupports {
+ readonly FILTER_IGNORE: 0;
+ readonly FILTER_MATCH: 1;
+ readonly FILTER_IGNORE_SUBTREE: 2;
+
+ match(aAccessible: nsIAccessible): u16;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleRelation.idl
+
+interface nsIAccessibleRelation extends nsISupports {
+ readonly RELATION_LABELLED_BY: 0;
+ readonly RELATION_LABEL_FOR: 1;
+ readonly RELATION_DESCRIBED_BY: 2;
+ readonly RELATION_DESCRIPTION_FOR: 3;
+ readonly RELATION_NODE_CHILD_OF: 4;
+ readonly RELATION_NODE_PARENT_OF: 5;
+ readonly RELATION_CONTROLLED_BY: 6;
+ readonly RELATION_CONTROLLER_FOR: 7;
+ readonly RELATION_FLOWS_TO: 8;
+ readonly RELATION_FLOWS_FROM: 9;
+ readonly RELATION_MEMBER_OF: 10;
+ readonly RELATION_SUBWINDOW_OF: 11;
+ readonly RELATION_EMBEDS: 12;
+ readonly RELATION_EMBEDDED_BY: 13;
+ readonly RELATION_POPUP_FOR: 14;
+ readonly RELATION_PARENT_WINDOW_OF: 15;
+ readonly RELATION_DEFAULT_BUTTON: 16;
+ readonly RELATION_CONTAINING_DOCUMENT: 17;
+ readonly RELATION_CONTAINING_TAB_PANE: 18;
+ readonly RELATION_CONTAINING_WINDOW: 19;
+ readonly RELATION_CONTAINING_APPLICATION: 20;
+ readonly RELATION_DETAILS: 21;
+ readonly RELATION_DETAILS_FOR: 22;
+ readonly RELATION_ERRORMSG: 23;
+ readonly RELATION_ERRORMSG_FOR: 24;
+ readonly RELATION_LINKS_TO: 25;
+
+ readonly relationType: u32;
+ readonly targetsCount: u32;
+ getTarget(index: u32): nsIAccessible;
+ getTargets(): nsIArray;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleRole.idl
+
+interface nsIAccessibleRole extends nsISupports {
+ readonly ROLE_NOTHING: 0;
+ readonly ROLE_MENUBAR: 1;
+ readonly ROLE_SCROLLBAR: 2;
+ readonly ROLE_ALERT: 3;
+ readonly ROLE_INTERNAL_FRAME: 4;
+ readonly ROLE_MENUPOPUP: 5;
+ readonly ROLE_MENUITEM: 6;
+ readonly ROLE_TOOLTIP: 7;
+ readonly ROLE_APPLICATION: 8;
+ readonly ROLE_DOCUMENT: 9;
+ readonly ROLE_PANE: 10;
+ readonly ROLE_DIALOG: 11;
+ readonly ROLE_GROUPING: 12;
+ readonly ROLE_SEPARATOR: 13;
+ readonly ROLE_TOOLBAR: 14;
+ readonly ROLE_STATUSBAR: 15;
+ readonly ROLE_TABLE: 16;
+ readonly ROLE_COLUMNHEADER: 17;
+ readonly ROLE_ROWHEADER: 18;
+ readonly ROLE_ROW: 19;
+ readonly ROLE_CELL: 20;
+ readonly ROLE_LINK: 21;
+ readonly ROLE_LIST: 22;
+ readonly ROLE_LISTITEM: 23;
+ readonly ROLE_OUTLINE: 24;
+ readonly ROLE_OUTLINEITEM: 25;
+ readonly ROLE_PAGETAB: 26;
+ readonly ROLE_PROPERTYPAGE: 27;
+ readonly ROLE_GRAPHIC: 28;
+ readonly ROLE_STATICTEXT: 29;
+ readonly ROLE_TEXT_LEAF: 30;
+ readonly ROLE_PUSHBUTTON: 31;
+ readonly ROLE_CHECKBUTTON: 32;
+ readonly ROLE_RADIOBUTTON: 33;
+ readonly ROLE_COMBOBOX: 34;
+ readonly ROLE_PROGRESSBAR: 35;
+ readonly ROLE_SLIDER: 36;
+ readonly ROLE_SPINBUTTON: 37;
+ readonly ROLE_DIAGRAM: 38;
+ readonly ROLE_ANIMATION: 39;
+ readonly ROLE_BUTTONDROPDOWN: 40;
+ readonly ROLE_BUTTONMENU: 41;
+ readonly ROLE_WHITESPACE: 42;
+ readonly ROLE_PAGETABLIST: 43;
+ readonly ROLE_CANVAS: 44;
+ readonly ROLE_CHECK_MENU_ITEM: 45;
+ readonly ROLE_DATE_EDITOR: 46;
+ readonly ROLE_CHROME_WINDOW: 47;
+ readonly ROLE_LABEL: 48;
+ readonly ROLE_PASSWORD_TEXT: 49;
+ readonly ROLE_RADIO_MENU_ITEM: 50;
+ readonly ROLE_TEXT_CONTAINER: 51;
+ readonly ROLE_TOGGLE_BUTTON: 52;
+ readonly ROLE_TREE_TABLE: 53;
+ readonly ROLE_PARAGRAPH: 54;
+ readonly ROLE_ENTRY: 55;
+ readonly ROLE_CAPTION: 56;
+ readonly ROLE_NON_NATIVE_DOCUMENT: 57;
+ readonly ROLE_HEADING: 58;
+ readonly ROLE_SECTION: 59;
+ readonly ROLE_FORM: 60;
+ readonly ROLE_APP_ROOT: 61;
+ readonly ROLE_PARENT_MENUITEM: 62;
+ readonly ROLE_COMBOBOX_LIST: 63;
+ readonly ROLE_COMBOBOX_OPTION: 64;
+ readonly ROLE_IMAGE_MAP: 65;
+ readonly ROLE_OPTION: 66;
+ readonly ROLE_RICH_OPTION: 67;
+ readonly ROLE_LISTBOX: 68;
+ readonly ROLE_FLAT_EQUATION: 69;
+ readonly ROLE_GRID_CELL: 70;
+ readonly ROLE_NOTE: 71;
+ readonly ROLE_FIGURE: 72;
+ readonly ROLE_CHECK_RICH_OPTION: 73;
+ readonly ROLE_DEFINITION_LIST: 74;
+ readonly ROLE_TERM: 75;
+ readonly ROLE_DEFINITION: 76;
+ readonly ROLE_KEY: 77;
+ readonly ROLE_SWITCH: 78;
+ readonly ROLE_MATHML_MATH: 79;
+ readonly ROLE_MATHML_IDENTIFIER: 80;
+ readonly ROLE_MATHML_NUMBER: 81;
+ readonly ROLE_MATHML_OPERATOR: 82;
+ readonly ROLE_MATHML_TEXT: 83;
+ readonly ROLE_MATHML_STRING_LITERAL: 84;
+ readonly ROLE_MATHML_GLYPH: 85;
+ readonly ROLE_MATHML_ROW: 86;
+ readonly ROLE_MATHML_FRACTION: 87;
+ readonly ROLE_MATHML_SQUARE_ROOT: 88;
+ readonly ROLE_MATHML_ROOT: 89;
+ readonly ROLE_MATHML_ENCLOSED: 90;
+ readonly ROLE_MATHML_STYLE: 91;
+ readonly ROLE_MATHML_SUB: 92;
+ readonly ROLE_MATHML_SUP: 93;
+ readonly ROLE_MATHML_SUB_SUP: 94;
+ readonly ROLE_MATHML_UNDER: 95;
+ readonly ROLE_MATHML_OVER: 96;
+ readonly ROLE_MATHML_UNDER_OVER: 97;
+ readonly ROLE_MATHML_MULTISCRIPTS: 98;
+ readonly ROLE_MATHML_TABLE: 99;
+ readonly ROLE_MATHML_LABELED_ROW: 100;
+ readonly ROLE_MATHML_TABLE_ROW: 101;
+ readonly ROLE_MATHML_CELL: 102;
+ readonly ROLE_MATHML_ACTION: 103;
+ readonly ROLE_MATHML_ERROR: 104;
+ readonly ROLE_MATHML_STACK: 105;
+ readonly ROLE_MATHML_LONG_DIVISION: 106;
+ readonly ROLE_MATHML_STACK_GROUP: 107;
+ readonly ROLE_MATHML_STACK_ROW: 108;
+ readonly ROLE_MATHML_STACK_CARRIES: 109;
+ readonly ROLE_MATHML_STACK_CARRY: 110;
+ readonly ROLE_MATHML_STACK_LINE: 111;
+ readonly ROLE_RADIO_GROUP: 112;
+ readonly ROLE_TEXT: 113;
+ readonly ROLE_DETAILS: 114;
+ readonly ROLE_SUMMARY: 115;
+ readonly ROLE_LANDMARK: 116;
+ readonly ROLE_NAVIGATION: 117;
+ readonly ROLE_FOOTNOTE: 118;
+ readonly ROLE_ARTICLE: 119;
+ readonly ROLE_REGION: 120;
+ readonly ROLE_EDITCOMBOBOX: 121;
+ readonly ROLE_BLOCKQUOTE: 122;
+ readonly ROLE_CONTENT_DELETION: 123;
+ readonly ROLE_CONTENT_INSERTION: 124;
+ readonly ROLE_FORM_LANDMARK: 125;
+ readonly ROLE_MARK: 126;
+ readonly ROLE_SUGGESTION: 127;
+ readonly ROLE_COMMENT: 128;
+ readonly ROLE_CODE: 129;
+ readonly ROLE_TIME_EDITOR: 130;
+ readonly ROLE_LISTITEM_MARKER: 131;
+ readonly ROLE_METER: 132;
+ readonly ROLE_SUBSCRIPT: 133;
+ readonly ROLE_SUPERSCRIPT: 134;
+ readonly ROLE_EMPHASIS: 135;
+ readonly ROLE_STRONG: 136;
+ readonly ROLE_TIME: 137;
+ readonly ROLE_GRID: 138;
+ readonly ROLE_ROWGROUP: 139;
+ readonly ROLE_SEARCHBOX: 140;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleScrollingEvent.idl
+
+interface nsIAccessibleScrollingEvent extends nsIAccessibleEvent {
+ readonly scrollX: u32;
+ readonly scrollY: u32;
+ readonly maxScrollX: u32;
+ readonly maxScrollY: u32;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleSelectable.idl
+
+interface nsIAccessibleSelectable extends nsISupports {
+ readonly selectedItems: nsIArray;
+ readonly selectedItemCount: u32;
+ getSelectedItemAt(index: u32): nsIAccessible;
+ isItemSelected(index: u32): boolean;
+ addItemToSelection(index: u32): void;
+ removeItemFromSelection(index: u32): void;
+ selectAll(): boolean;
+ unselectAll(): void;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleStateChangeEvent.idl
+
+interface nsIAccessibleStateChangeEvent extends nsIAccessibleEvent {
+ readonly state: u32;
+ readonly isExtraState: boolean;
+ readonly isEnabled: boolean;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleStates.idl
+
+interface nsIAccessibleStates extends nsISupports {
+ readonly STATE_UNAVAILABLE: 1;
+ readonly STATE_SELECTED: 2;
+ readonly STATE_FOCUSED: 4;
+ readonly STATE_PRESSED: 8;
+ readonly STATE_CHECKED: 16;
+ readonly STATE_MIXED: 32;
+ readonly STATE_READONLY: 64;
+ readonly STATE_HOTTRACKED: 128;
+ readonly STATE_DEFAULT: 256;
+ readonly STATE_EXPANDED: 512;
+ readonly STATE_COLLAPSED: 1024;
+ readonly STATE_BUSY: 2048;
+ readonly STATE_FLOATING: 4096;
+ readonly STATE_MARQUEED: 8192;
+ readonly STATE_ANIMATED: 16384;
+ readonly STATE_INVISIBLE: 32768;
+ readonly STATE_OFFSCREEN: 65536;
+ readonly STATE_SIZEABLE: 131072;
+ readonly STATE_MOVEABLE: 262144;
+ readonly STATE_SELFVOICING: 524288;
+ readonly STATE_FOCUSABLE: 1048576;
+ readonly STATE_SELECTABLE: 2097152;
+ readonly STATE_LINKED: 4194304;
+ readonly STATE_TRAVERSED: 8388608;
+ readonly STATE_MULTISELECTABLE: 16777216;
+ readonly STATE_EXTSELECTABLE: 33554432;
+ readonly STATE_ALERT_LOW: 67108864;
+ readonly STATE_ALERT_MEDIUM: 134217728;
+ readonly STATE_ALERT_HIGH: 268435456;
+ readonly STATE_PROTECTED: 536870912;
+ readonly STATE_HASPOPUP: 1073741824;
+ readonly STATE_REQUIRED: 67108864;
+ readonly STATE_IMPORTANT: 134217728;
+ readonly STATE_INVALID: 268435456;
+ readonly STATE_CHECKABLE: 8192;
+ readonly EXT_STATE_SUPPORTS_AUTOCOMPLETION: 1;
+ readonly EXT_STATE_DEFUNCT: 2;
+ readonly EXT_STATE_SELECTABLE_TEXT: 4;
+ readonly EXT_STATE_EDITABLE: 8;
+ readonly EXT_STATE_ACTIVE: 16;
+ readonly EXT_STATE_MODAL: 32;
+ readonly EXT_STATE_MULTI_LINE: 64;
+ readonly EXT_STATE_HORIZONTAL: 128;
+ readonly EXT_STATE_OPAQUE: 256;
+ readonly EXT_STATE_SINGLE_LINE: 512;
+ readonly EXT_STATE_TRANSIENT: 1024;
+ readonly EXT_STATE_VERTICAL: 2048;
+ readonly EXT_STATE_STALE: 4096;
+ readonly EXT_STATE_ENABLED: 8192;
+ readonly EXT_STATE_SENSITIVE: 16384;
+ readonly EXT_STATE_EXPANDABLE: 32768;
+ readonly EXT_STATE_PINNED: 65536;
+ readonly EXT_STATE_CURRENT: 131072;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleTable.idl
+
+interface nsIAccessibleTable extends nsISupports {
+ readonly caption: nsIAccessible;
+ readonly summary: string;
+ readonly columnCount: i32;
readonly rowCount: i32;
- selection: nsITreeSelection;
- getRowProperties(index: i32): string;
- getCellProperties(row: i32, col: TreeColumn): string;
- getColumnProperties(col: TreeColumn): string;
- isContainer(index: i32): boolean;
- isContainerOpen(index: i32): boolean;
- isContainerEmpty(index: i32): boolean;
- isSeparator(index: i32): boolean;
- isSorted(): boolean;
- canDrop(index: i32, orientation: i32, dataTransfer: DataTransfer): boolean;
- drop(row: i32, orientation: i32, dataTransfer: DataTransfer): void;
- getParentIndex(rowIndex: i32): i32;
- hasNextSibling(rowIndex: i32, afterIndex: i32): boolean;
- getLevel(index: i32): i32;
- getImageSrc(row: i32, col: TreeColumn): string;
- getCellValue(row: i32, col: TreeColumn): string;
- getCellText(row: i32, col: TreeColumn): string;
- setTree(tree: XULTreeElement): void;
- toggleOpenState(index: i32): void;
- cycleHeader(col: TreeColumn): void;
- selectionChanged(): void;
- cycleCell(row: i32, col: TreeColumn): void;
- isEditable(row: i32, col: TreeColumn): boolean;
- setCellValue(row: i32, col: TreeColumn, value: string): void;
- setCellText(row: i32, col: TreeColumn, value: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/components/nsICategoryManager.idl
-
-interface nsICategoryEntry extends nsISupportsCString {
- readonly entry: string;
- readonly value: string;
-}
-
-interface nsICategoryManager extends nsISupports {
- getCategoryEntry(aCategory: string, aEntry: string): string;
- addCategoryEntry(aCategory: string, aEntry: string, aValue: string, aPersist: boolean, aReplace: boolean): string;
- deleteCategoryEntry(aCategory: string, aEntry: string, aPersist: boolean): void;
- deleteCategory(aCategory: string): void;
- enumerateCategory(aCategory: string): nsISimpleEnumerator;
- enumerateCategories(): nsISimpleEnumerator;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/components/nsIClassInfo.idl
-
-interface nsIClassInfo extends nsISupports {
- readonly SINGLETON: 1;
- readonly THREADSAFE: 2;
- readonly SINGLETON_CLASSINFO: 32;
- readonly RESERVED: 2147483648;
-
- readonly interfaces: nsID[];
- readonly contractID: string;
- readonly classDescription: string;
- readonly classID: nsID;
- readonly flags: u32;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/components/nsIComponentManager.idl
-
-interface nsIComponentManager extends nsISupports {
- getClassObject(aClass: nsID, aIID: T): nsQIResult;
- getClassObjectByContractID(aContractID: string, aIID: T): nsQIResult;
- addBootstrappedManifestLocation(aLocation: nsIFile): void;
- removeBootstrappedManifestLocation(aLocation: nsIFile): void;
- getManifestLocations(): nsIArray;
- getComponentESModules(): nsIUTF8StringEnumerator;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/components/nsIComponentRegistrar.idl
-
-interface nsIComponentRegistrar extends nsISupports {
- autoRegister(aSpec: nsIFile): void;
- registerFactory(aClass: nsID, aClassName: string, aContractID: string, aFactory: nsIFactory): void;
- unregisterFactory(aClass: nsID, aFactory: nsIFactory): void;
- isCIDRegistered(aClass: nsID): boolean;
- isContractIDRegistered(aContractID: string): boolean;
- getContractIDs(): string[];
- contractIDToCID(aContractID: string): nsID;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/components/nsIFactory.idl
-
-interface nsIFactory extends nsISupports {
- createInstance(iid: T): nsQIResult;
-}
-
-// https://searchfox.org/mozilla-central/source/xpcom/components/nsIServiceManager.idl
-
-interface nsIServiceManager extends nsISupports {
- getService(aClass: nsID, aIID: T): nsQIResult;
- getServiceByContractID(aContractID: string, aIID: T): nsQIResult;
- isServiceInstantiated(aClass: nsID, aIID: nsID): boolean;
- isServiceInstantiatedByContractID(aContractID: string, aIID: nsID): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/system/nsIOSPermissionRequest.idl
-
-interface nsIOSPermissionRequest extends nsISupports {
- readonly PERMISSION_STATE_NOTDETERMINED: 0;
- readonly PERMISSION_STATE_RESTRICTED: 1;
- readonly PERMISSION_STATE_DENIED: 2;
- readonly PERMISSION_STATE_AUTHORIZED: 3;
-
- getMediaCapturePermissionState(aVideo: OutParam, aAudio: OutParam): void;
- getAudioCapturePermissionState(aAudio: OutParam): void;
- getVideoCapturePermissionState(aVideo: OutParam): void;
- getScreenCapturePermissionState(aScreen: OutParam): void;
- requestVideoCapturePermission(): Promise;
- requestAudioCapturePermission(): Promise;
- maybeRequestScreenCapturePermission(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/mozintl/mozIMozIntl.idl
-
-interface mozIMozIntl extends nsISupports {
- getCalendarInfo(locales?: any): any;
- getDisplayNamesDeprecated(locales?: any, options?: any): any;
- getAvailableLocaleDisplayNames(type: any): any;
- getLanguageDisplayNames(locales: any, langCodes: any): any;
- getRegionDisplayNames(locales: any, regionCodes: any): any;
- getLocaleDisplayNames(locales: any, localeCodes: any, options?: any): any;
- getScriptDirection(locale: any): any;
- stringHasRTLChars(str: any): boolean;
- readonly Collator: any;
- readonly DateTimeFormat: any;
- readonly DisplayNames: any;
- readonly ListFormat: any;
- readonly Locale: any;
- readonly NumberFormat: any;
- readonly PluralRules: any;
- readonly RelativeTimeFormat: any;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/mozintl/mozIMozIntlHelper.idl
-
-interface mozIMozIntlHelper extends nsISupports {
- addGetCalendarInfo(intlObject: any): void;
- addDateTimeFormatConstructor(intlObject: any): void;
- addDisplayNamesConstructor(intlObject: any): void;
- stringHasRTLChars(str: any): boolean;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/backgroundtasks/nsIBackgroundTasks.idl
-
-interface nsIBackgroundTasks extends nsISupports {
- readonly isBackgroundTaskMode: boolean;
- backgroundTaskName(): string;
- overrideBackgroundTaskNameForTesting(taskName: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/backgroundtasks/nsIBackgroundTasksManager.idl
-
-interface nsIBackgroundTasksManager extends nsICommandLineHandler {
- runBackgroundTaskNamed(aTaskName: string, aCommandLine: nsICommandLine): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/backgroundtasks/nsIBackgroundTasksRunner.idl
-
-interface nsIBackgroundTasksRunner extends nsISupports {
- runInDetachedProcess(aTaskName: string, aCommandLine: string[]): void;
- removeDirectoryInDetachedProcess(aParentDirPath: string, aChildDirName: string, aSecondsToWait: string, aOtherFoldersSuffix: string, aMetricsId?: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/geolocation/nsIDOMGeoPosition.idl
-
-interface nsIDOMGeoPosition extends nsISupports {
- readonly timestamp: EpochTimeStamp;
- readonly coords: nsIDOMGeoPositionCoords;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/geolocation/nsIDOMGeoPositionCallback.idl
-
-type nsIDOMGeoPositionCallback = Callable<{
- handleEvent(position: nsIDOMGeoPosition): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/geolocation/nsIDOMGeoPositionCoords.idl
-
-interface nsIDOMGeoPositionCoords extends nsISupports {
- readonly latitude: double;
- readonly longitude: double;
- readonly altitude: double;
- readonly accuracy: double;
- readonly altitudeAccuracy: double;
- readonly heading: double;
- readonly speed: double;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/interfaces/geolocation/nsIDOMGeoPositionErrorCallback.idl
-
-type nsIDOMGeoPositionErrorCallback = Callable<{
- handleEvent(positionError: GeolocationPositionError): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/browser/components/nsIBrowserHandler.idl
-
-interface nsIBrowserHandler extends nsISupports {
- startPage: string;
- defaultArgs: string;
- getFirstWindowArgs(): string;
- kiosk: boolean;
- majorUpgrade: boolean;
- firstRunProfile: boolean;
- getFeatures(aCmdLine: nsICommandLine): string;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/mozIAsyncHistory.idl
-
-interface mozIVisitInfo extends nsISupports {
- readonly visitId: i64;
- readonly visitDate: PRTime;
- readonly transitionType: u32;
- readonly referrerURI: nsIURI;
-}
-
-interface mozIPlaceInfo extends nsISupports {
- readonly placeId: i64;
- readonly guid: string;
- readonly uri: nsIURI;
- readonly title: string;
- readonly frecency: i64;
- readonly visits: any;
-}
-
-interface mozIVisitInfoCallback extends nsISupports {
- handleError(aResultCode: nsresult, aPlaceInfo: mozIPlaceInfo): void;
- handleResult(aPlaceInfo: mozIPlaceInfo): void;
- handleCompletion(aUpdatedItems: u32): void;
- readonly ignoreResults: boolean;
- readonly ignoreErrors: boolean;
-}
-
-type mozIVisitedStatusCallback = Callable<{
- isVisited(aURI: nsIURI, aVisitedStatus: boolean): void;
-}>
-
-interface mozIAsyncHistory extends nsISupports {
- updatePlaces(aPlaceInfo: any, aCallback?: mozIVisitInfoCallback): void;
- isURIVisited(aURI: nsIURI, aCallback: mozIVisitedStatusCallback): void;
- clearCache(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/mozIPlacesAutoComplete.idl
-
-interface mozIPlacesAutoComplete extends nsISupports {
- readonly MATCH_ANYWHERE: 0;
- readonly MATCH_BOUNDARY_ANYWHERE: 1;
- readonly MATCH_BOUNDARY: 2;
- readonly MATCH_BEGINNING: 3;
- readonly MATCH_ANYWHERE_UNMODIFIED: 4;
- readonly MATCH_BEGINNING_CASE_SENSITIVE: 5;
- readonly BEHAVIOR_HISTORY: 1;
- readonly BEHAVIOR_BOOKMARK: 2;
- readonly BEHAVIOR_TAG: 4;
- readonly BEHAVIOR_TITLE: 8;
- readonly BEHAVIOR_URL: 16;
- readonly BEHAVIOR_TYPED: 32;
- readonly BEHAVIOR_JAVASCRIPT: 64;
- readonly BEHAVIOR_OPENPAGE: 128;
- readonly BEHAVIOR_RESTRICT: 256;
- readonly BEHAVIOR_SEARCH: 512;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/mozIPlacesPendingOperation.idl
-
-interface mozIPlacesPendingOperation extends nsISupports {
- cancel(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/mozISyncedBookmarksMirror.idl
-
-interface mozISyncedBookmarksMirrorProgressListener extends nsISupports {
- onFetchLocalTree(took: i64, itemCount: i64, deletedCount: i64, problems: nsIPropertyBag): void;
- onFetchRemoteTree(took: i64, itemCount: i64, deletedCount: i64, problems: nsIPropertyBag): void;
- onMerge(took: i64, counts: nsIPropertyBag): void;
- onApply(took: i64): void;
-}
-
-interface mozISyncedBookmarksMirrorCallback extends nsISupports {
- handleSuccess(result: boolean): void;
- handleError(code: nsresult, message: string): void;
-}
-
-interface mozISyncedBookmarksMirrorLogger extends nsISupports {
- readonly LEVEL_OFF: 0;
- readonly LEVEL_ERROR: 1;
- readonly LEVEL_WARN: 2;
- readonly LEVEL_DEBUG: 3;
- readonly LEVEL_TRACE: 4;
-
- maxLevel: i16;
- error(message: string): void;
- warn(message: string): void;
- debug(message: string): void;
- trace(message: string): void;
-}
-
-interface mozISyncedBookmarksMerger extends nsISupports {
- readonly KIND_BOOKMARK: 1;
- readonly KIND_QUERY: 2;
- readonly KIND_FOLDER: 3;
- readonly KIND_LIVEMARK: 4;
- readonly KIND_SEPARATOR: 5;
- readonly VALIDITY_VALID: 1;
- readonly VALIDITY_REUPLOAD: 2;
- readonly VALIDITY_REPLACE: 3;
-
- db: mozIStorageConnection;
- logger: mozIServicesLogSink;
- merge(localTimeSeconds: i64, remoteTimeSeconds: i64, callback: mozISyncedBookmarksMirrorCallback): mozIPlacesPendingOperation;
- reset(): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/nsIFaviconService.idl
-
-interface nsIFaviconService extends nsISupports {
- readonly FAVICON_LOAD_PRIVATE: 1;
- readonly FAVICON_LOAD_NON_PRIVATE: 2;
- readonly ICONDATA_FLAGS_RICH: 1;
- readonly MAX_FAVICON_BUFFER_SIZE: 65536;
-
- getFaviconLinkForIcon(aFaviconURI: nsIURI): nsIURI;
- expireAllFavicons(): void;
- setDefaultIconURIPreferredSize(aDefaultSize: u16): void;
- preferredSizeFromURI(aURI: nsIURI): u16;
- readonly defaultFavicon: nsIURI;
- readonly defaultFaviconMimeType: string;
- setFaviconForPage(aPageURI: nsIURI, aFaviconURI: nsIURI, aDataURL: nsIURI, aExpiration?: PRTime, isRichIcon?: boolean): Promise;
- getFaviconURLForPage(aPageURI: nsIURI, aCallback: nsIFaviconDataCallback, aPreferredWidth?: u16): void;
- getFaviconDataForPage(aPageURI: nsIURI, aCallback: nsIFaviconDataCallback, aPreferredWidth?: u16): void;
- copyFavicons(aFromPageURI: nsIURI, aToPageURI: nsIURI, aFaviconLoadType: u32, aCallback?: nsIFaviconDataCallback): void;
-}
-
-type nsIFaviconDataCallback = Callable<{
- onComplete(aFaviconURI: nsIURI, aDataLen: u32, aData: u8[], aMimeType: string, aWidth: u16): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/nsINavBookmarksService.idl
-
-interface nsINavBookmarksService extends nsISupports {
- readonly DEFAULT_INDEX: -1;
- readonly TYPE_BOOKMARK: 1;
- readonly TYPE_FOLDER: 2;
- readonly TYPE_SEPARATOR: 3;
- readonly TYPE_DYNAMIC_CONTAINER: 4;
- readonly SOURCE_DEFAULT: 0;
- readonly SOURCE_SYNC: 1;
- readonly SOURCE_IMPORT: 2;
- readonly SOURCE_SYNC_REPARENT_REMOVED_FOLDER_CHILDREN: 4;
- readonly SOURCE_RESTORE: 5;
- readonly SOURCE_RESTORE_ON_STARTUP: 6;
- readonly SYNC_STATUS_UNKNOWN: 0;
- readonly SYNC_STATUS_NEW: 1;
- readonly SYNC_STATUS_NORMAL: 2;
-
- readonly tagsFolder: i64;
- readonly totalSyncChanges: i64;
- insertBookmark(aParentId: i64, aURI: nsIURI, aIndex: i32, aTitle: string, aGuid?: string, aSource?: u16): i64;
- removeItem(aItemId: i64, aSource?: u16): void;
- createFolder(aParentFolder: i64, name: string, index: i32, aGuid?: string, aSource?: u16): i64;
- setItemTitle(aItemId: i64, aTitle: string, aSource?: u16): void;
- getItemTitle(aItemId: i64): string;
- setItemLastModified(aItemId: i64, aLastModified: PRTime, aSource?: u16): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/nsINavHistoryService.idl
-
-interface nsINavHistoryResultNode extends nsISupports {
- readonly RESULT_TYPE_URI: 0;
- readonly RESULT_TYPE_QUERY: 5;
- readonly RESULT_TYPE_FOLDER: 6;
- readonly RESULT_TYPE_SEPARATOR: 7;
- readonly RESULT_TYPE_FOLDER_SHORTCUT: 9;
-
- readonly parent: nsINavHistoryContainerResultNode;
- readonly parentResult: nsINavHistoryResult;
- readonly uri: string;
- readonly type: u32;
- readonly title: string;
- readonly accessCount: u32;
- readonly time: PRTime;
- readonly icon: string;
- readonly indentLevel: i32;
- readonly bookmarkIndex: i32;
- readonly itemId: i64;
- readonly dateAdded: PRTime;
- readonly lastModified: PRTime;
- readonly tags: string;
- readonly pageGuid: string;
- readonly bookmarkGuid: string;
- readonly visitId: i64;
- readonly visitType: u32;
-}
-
-interface nsINavHistoryContainerResultNode extends nsINavHistoryResultNode {
- readonly STATE_CLOSED: 0;
- readonly STATE_LOADING: 1;
- readonly STATE_OPENED: 2;
-
- containerOpen: boolean;
- readonly state: u16;
- readonly hasChildren: boolean;
- readonly childCount: u32;
- getChild(aIndex: u32): nsINavHistoryResultNode;
- getChildIndex(aNode: nsINavHistoryResultNode): u32;
-}
-
-interface nsINavHistoryQueryResultNode extends nsINavHistoryContainerResultNode {
- readonly query: nsINavHistoryQuery;
- readonly queryOptions: nsINavHistoryQueryOptions;
- readonly folderItemId: i64;
- readonly targetFolderGuid: string;
-}
-
-interface nsINavHistoryResultObserver extends nsISupports {
- readonly skipHistoryDetailsNotifications: boolean;
- nodeInserted(aParent: nsINavHistoryContainerResultNode, aNode: nsINavHistoryResultNode, aNewIndex: u32): void;
- nodeRemoved(aParent: nsINavHistoryContainerResultNode, aItem: nsINavHistoryResultNode, aOldIndex: u32): void;
- nodeMoved(aNode: nsINavHistoryResultNode, aOldParent: nsINavHistoryContainerResultNode, aOldIndex: u32, aNewParent: nsINavHistoryContainerResultNode, aNewIndex: u32): void;
- nodeTitleChanged(aNode: nsINavHistoryResultNode, aNewTitle: string): void;
- nodeURIChanged(aNode: nsINavHistoryResultNode, aOldURI: string): void;
- nodeIconChanged(aNode: nsINavHistoryResultNode): void;
- nodeHistoryDetailsChanged(aNode: nsINavHistoryResultNode, aOldVisitDate: PRTime, aOldAccessCount: u32): void;
- nodeTagsChanged(aNode: nsINavHistoryResultNode): void;
- nodeKeywordChanged(aNode: nsINavHistoryResultNode, aNewKeyword: string): void;
- nodeDateAddedChanged(aNode: nsINavHistoryResultNode, aNewValue: PRTime): void;
- nodeLastModifiedChanged(aNode: nsINavHistoryResultNode, aNewValue: PRTime): void;
- containerStateChanged(aContainerNode: nsINavHistoryContainerResultNode, aOldState: u32, aNewState: u32): void;
- invalidateContainer(aContainerNode: nsINavHistoryContainerResultNode): void;
- sortingChanged(sortingMode: u16): void;
- batching(aToggleMode: boolean): void;
- result: nsINavHistoryResult;
-}
-
-interface nsINavHistoryResult extends nsISupports {
- sortingMode: u16;
- suppressNotifications: boolean;
- addObserver(aObserver: nsINavHistoryResultObserver, aOwnsWeak?: boolean): void;
- removeObserver(aObserver: nsINavHistoryResultObserver): void;
- readonly root: nsINavHistoryContainerResultNode;
- onBeginUpdateBatch(): void;
- onEndUpdateBatch(): void;
-}
-
-interface nsINavHistoryQuery extends nsISupports {
- readonly TIME_RELATIVE_EPOCH: 0;
- readonly TIME_RELATIVE_TODAY: 1;
- readonly TIME_RELATIVE_NOW: 2;
-
- beginTime: PRTime;
- beginTimeReference: u32;
- readonly hasBeginTime: boolean;
- readonly absoluteBeginTime: PRTime;
- endTime: PRTime;
- endTimeReference: u32;
- readonly hasEndTime: boolean;
- readonly absoluteEndTime: PRTime;
- searchTerms: string;
- readonly hasSearchTerms: boolean;
- minVisits: i32;
- maxVisits: i32;
- setTransitions(transitions: u32[]): void;
- getTransitions(): u32[];
- readonly transitionCount: u32;
- domainIsHost: boolean;
- domain: string;
- readonly hasDomain: boolean;
- uri: nsIURI;
- readonly hasUri: boolean;
- tags: nsIVariant;
- tagsAreNot: boolean;
- getParents(): string[];
- readonly parentCount: u32;
- setParents(aGuids: string[]): void;
- clone(): nsINavHistoryQuery;
-}
-
-interface nsINavHistoryQueryOptions extends nsISupports {
- readonly SORT_BY_NONE: 0;
- readonly SORT_BY_TITLE_ASCENDING: 1;
- readonly SORT_BY_TITLE_DESCENDING: 2;
- readonly SORT_BY_DATE_ASCENDING: 3;
- readonly SORT_BY_DATE_DESCENDING: 4;
- readonly SORT_BY_URI_ASCENDING: 5;
- readonly SORT_BY_URI_DESCENDING: 6;
- readonly SORT_BY_VISITCOUNT_ASCENDING: 7;
- readonly SORT_BY_VISITCOUNT_DESCENDING: 8;
- readonly SORT_BY_DATEADDED_ASCENDING: 11;
- readonly SORT_BY_DATEADDED_DESCENDING: 12;
- readonly SORT_BY_LASTMODIFIED_ASCENDING: 13;
- readonly SORT_BY_LASTMODIFIED_DESCENDING: 14;
- readonly SORT_BY_TAGS_ASCENDING: 17;
- readonly SORT_BY_TAGS_DESCENDING: 18;
- readonly SORT_BY_FRECENCY_ASCENDING: 21;
- readonly SORT_BY_FRECENCY_DESCENDING: 22;
- readonly RESULTS_AS_URI: 0;
- readonly RESULTS_AS_VISIT: 1;
- readonly RESULTS_AS_DATE_QUERY: 3;
- readonly RESULTS_AS_SITE_QUERY: 4;
- readonly RESULTS_AS_DATE_SITE_QUERY: 5;
- readonly RESULTS_AS_TAGS_ROOT: 6;
- readonly RESULTS_AS_TAG_CONTENTS: 7;
- readonly RESULTS_AS_ROOTS_QUERY: 8;
- readonly RESULTS_AS_LEFT_PANE_QUERY: 9;
- readonly QUERY_TYPE_HISTORY: 0;
- readonly QUERY_TYPE_BOOKMARKS: 1;
-
- sortingMode: u16;
- resultType: u16;
- excludeItems: boolean;
- excludeQueries: boolean;
- expandQueries: boolean;
- includeHidden: boolean;
- maxResults: u32;
- queryType: u16;
- asyncEnabled: boolean;
- clone(): nsINavHistoryQueryOptions;
-}
-
-interface nsINavHistoryService extends nsISupports {
- readonly DATABASE_SCHEMA_VERSION: 78;
- readonly TRANSITION_LINK: 1;
- readonly TRANSITION_TYPED: 2;
- readonly TRANSITION_BOOKMARK: 3;
- readonly TRANSITION_EMBED: 4;
- readonly TRANSITION_REDIRECT_PERMANENT: 5;
- readonly TRANSITION_REDIRECT_TEMPORARY: 6;
- readonly TRANSITION_DOWNLOAD: 7;
- readonly TRANSITION_FRAMED_LINK: 8;
- readonly TRANSITION_RELOAD: 9;
- readonly DATABASE_STATUS_OK: 0;
- readonly DATABASE_STATUS_CREATE: 1;
- readonly DATABASE_STATUS_CORRUPT: 2;
- readonly DATABASE_STATUS_UPGRADED: 3;
- readonly DATABASE_STATUS_LOCKED: 4;
- readonly VISIT_SOURCE_ORGANIC: 0;
- readonly VISIT_SOURCE_SPONSORED: 1;
- readonly VISIT_SOURCE_BOOKMARKED: 2;
- readonly VISIT_SOURCE_SEARCHED: 3;
-
- readonly databaseStatus: u16;
- markPageAsFollowedBookmark(aURI: nsIURI): void;
- markPageAsTyped(aURI: nsIURI): void;
- markPageAsFollowedLink(aURI: nsIURI): void;
- canAddURI(aURI: nsIURI): boolean;
- getNewQuery(): nsINavHistoryQuery;
- getNewQueryOptions(): nsINavHistoryQueryOptions;
- executeQuery(aQuery: nsINavHistoryQuery, options: nsINavHistoryQueryOptions): nsINavHistoryResult;
- queryStringToQuery(aQueryString: string, aQuery: OutParam, options: OutParam): void;
- queryToQueryString(aQuery: nsINavHistoryQuery, options: nsINavHistoryQueryOptions): string;
- readonly historyDisabled: boolean;
- makeGuid(): string;
- hashURL(aSpec: string, aMode?: string): u64;
- isFrecencyDecaying: boolean;
- shouldStartFrecencyRecalculation: boolean;
- readonly DBConnection: mozIStorageConnection;
- asyncExecuteLegacyQuery(aQuery: nsINavHistoryQuery, aOptions: nsINavHistoryQueryOptions, aCallback: mozIStorageStatementCallback): mozIStoragePendingStatement;
- readonly shutdownClient: nsIAsyncShutdownClient;
- readonly connectionShutdownClient: nsIAsyncShutdownClient;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/nsIPlacesPreviewsHelperService.idl
-
-interface nsIPlacesPreviewsHelperService extends nsISupports {
- getFilePathForURL(aURL: string): string;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/components/places/nsITaggingService.idl
-
-interface nsITaggingService extends nsISupports {
- tagURI(aURI: nsIURI, aTags: nsIVariant, aSource?: u16): void;
- untagURI(aURI: nsIURI, aTags: nsIVariant, aSource?: u16): void;
- getTagsForURI(aURI: nsIURI): string[];
-}
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaArtificialFailure.idl
-
-} // global
-
-declare namespace nsIQuotaArtificialFailure {
-
-enum Category {
- CATEGORY_NONE = 0,
- CATEGORY_INITIALIZE_ORIGIN = 1,
- CATEGORY_OPEN_CLIENT_DIRECTORY = 2,
- CATEGORY_CREATE_DIRECTORY_METADATA2 = 4,
-}
-
-}
-
-declare global {
-
-interface nsIQuotaArtificialFailure extends nsISupports, Enums {
-}
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaCallbacks.idl
-
-type nsIQuotaUsageCallback = Callable<{
- onUsageResult(aRequest: nsIQuotaUsageRequest): void;
-}>
-
-type nsIQuotaCallback = Callable<{
- onComplete(aRequest: nsIQuotaRequest): void;
-}>
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaManagerService.idl
-
-interface nsIQuotaManagerService extends nsISupports {
- storageName(): nsIQuotaRequest;
- storageInitialized(): nsIQuotaRequest;
- persistentStorageInitialized(): nsIQuotaRequest;
- temporaryStorageInitialized(): nsIQuotaRequest;
- temporaryGroupInitialized(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- persistentOriginInitialized(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- temporaryOriginInitialized(aPersistenceType: string, aPrincipal: nsIPrincipal): nsIQuotaRequest;
- init(): nsIQuotaRequest;
- initializePersistentStorage(): nsIQuotaRequest;
- initTemporaryStorage(): nsIQuotaRequest;
- initializeTemporaryGroup(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- initializePersistentOrigin(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- initializeTemporaryOrigin(aPersistenceType: string, aPrincipal: nsIPrincipal, aCreateIfNonExistent?: boolean): nsIQuotaRequest;
- initializePersistentClient(aPrincipal: nsIPrincipal, aClientType: string): nsIQuotaRequest;
- initializeTemporaryClient(aPersistenceType: string, aPrincipal: nsIPrincipal, aClientType: string): nsIQuotaRequest;
- getFullOriginMetadata(aPersistenceType: string, aPrincipal: nsIPrincipal): nsIQuotaRequest;
- getUsage(aCallback: nsIQuotaUsageCallback, aGetAll?: boolean): nsIQuotaUsageRequest;
- getUsageForPrincipal(aPrincipal: nsIPrincipal, aCallback: nsIQuotaUsageCallback): nsIQuotaUsageRequest;
- getCachedUsageForPrincipal(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- listOrigins(): nsIQuotaRequest;
- listCachedOrigins(): nsIQuotaRequest;
- clear(): nsIQuotaRequest;
- clearStoragesForPrivateBrowsing(): nsIQuotaRequest;
- clearStoragesForOriginAttributesPattern(aPattern: string): nsIQuotaRequest;
- clearStoragesForPrincipal(aPrincipal: nsIPrincipal, aPersistenceType?: string): nsIQuotaRequest;
- clearStoragesForClient(aPrincipal: nsIPrincipal, aClientType: string, aPersistenceType?: string): nsIQuotaRequest;
- clearStoragesForOriginPrefix(aPrincipal: nsIPrincipal, aPersistenceType?: string): nsIQuotaRequest;
- reset(): nsIQuotaRequest;
- resetStoragesForPrincipal(aPrincipal: nsIPrincipal, aPersistenceType?: string): nsIQuotaRequest;
- resetStoragesForClient(aPrincipal: nsIPrincipal, aClientType: string, aPersistenceType?: string): nsIQuotaRequest;
- persisted(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- persist(aPrincipal: nsIPrincipal): nsIQuotaRequest;
- estimate(aPrincipal: nsIPrincipal): nsIQuotaRequest;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaManagerServiceInternal.idl
-
-interface nsIQuotaManagerServiceInternal extends nsISupports {
- setThumbnailPrivateIdentityId(aThumbnailPrivateIdentityId: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaRequests.idl
-
-interface nsIQuotaRequestBase extends nsISupports {
- readonly principal: nsIPrincipal;
- readonly resultCode: nsresult;
- readonly resultName: string;
-}
-
-interface nsIQuotaUsageRequest extends nsIQuotaRequestBase {
- readonly result: nsIVariant;
- callback: nsIQuotaUsageCallback;
- cancel(): void;
-}
-
-interface nsIQuotaRequest extends nsIQuotaRequestBase {
- readonly result: nsIVariant;
- callback: nsIQuotaCallback;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaResults.idl
-
-interface nsIQuotaFullOriginMetadataResult extends nsISupports {
- readonly suffix: string;
- readonly group: string;
- readonly origin: string;
- readonly storageOrigin: string;
- readonly persistenceType: string;
- readonly persisted: boolean;
- readonly lastAccessTime: i64;
-}
-
-interface nsIQuotaUsageResult extends nsISupports {
- readonly origin: string;
- readonly persisted: boolean;
- readonly usage: u64;
- readonly lastAccessed: u64;
-}
-
-interface nsIQuotaOriginUsageResult extends nsISupports {
- readonly databaseUsage: u64;
- readonly fileUsage: u64;
- readonly usage: u64;
- readonly databaseUsageIsExplicit: boolean;
- readonly fileUsageIsExplicit: boolean;
- readonly totalUsageIsExplicit: boolean;
-}
-
-interface nsIQuotaEstimateResult extends nsISupports {
- readonly usage: u64;
- readonly limit: u64;
-}
-
-// https://searchfox.org/mozilla-central/source/dom/quota/nsIQuotaUtilsService.idl
-
-interface nsIQuotaUtilsService extends nsISupports {
- getPrivateIdentityId(aName: string): u32;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/profile/nsIProfileMigrator.idl
-
-interface nsIProfileStartup extends nsISupports {
- readonly directory: nsIFile;
- doStartup(): void;
-}
-
-interface nsIProfileMigrator extends nsISupports {
- migrate(aStartup: nsIProfileStartup, aKey: string, aProfileName?: string): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/profile/nsIProfileUnlocker.idl
-
-interface nsIProfileUnlocker extends nsISupports {
- readonly ATTEMPT_QUIT: 0;
- readonly FORCE_QUIT: 1;
-
- unlock(aSeverity: u32): void;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/profile/nsIToolkitProfile.idl
-
-interface nsIProfileLock extends nsISupports {
- readonly directory: nsIFile;
- readonly localDirectory: nsIFile;
- readonly replacedLockTime: PRTime;
- unlock(): void;
-}
-
-interface nsIToolkitProfile extends nsISupports {
- rootDir: nsIFile;
- readonly localDir: nsIFile;
- name: string;
- storeID: string;
- showProfileSelector: boolean;
- remove(removeFiles: boolean): void;
- removeInBackground(removeFiles: boolean): void;
- lock(aUnlocker: OutParam): nsIProfileLock;
-}
-
-// https://searchfox.org/mozilla-central/source/toolkit/profile/nsIToolkitProfileService.idl
-
-} // global
-
-declare namespace nsIToolkitProfileService {
-
-enum downgradeUIFlags {
- hasSync = 1,
-}
-
-enum downgradeUIChoice {
- quit = 0,
- createNewProfile = 1,
-}
-
-enum profileManagerResult {
- exit = 0,
- launchWithProfile = 1,
- restart = 2,
-}
-
-}
-
-declare global {
-
-interface nsIToolkitProfileService extends nsISupports, Enums {
- readonly isListOutdated: boolean;
- startWithLastProfile: boolean;
- readonly profiles: nsISimpleEnumerator;
- readonly currentProfile: nsIToolkitProfile;
- readonly groupProfile: nsIToolkitProfile;
- defaultProfile: nsIToolkitProfile;
- selectStartupProfile(aArgv: string[], aIsResetting: boolean, aUpdateChannel: string, aLegacyInstallHash: string, aRootDir: OutParam, aLocalDir: OutParam, aProfile: OutParam): boolean;
- getProfileByName(aName: string): nsIToolkitProfile;
- getProfileByDir(aRootDir: nsIFile, aLocalDir?: nsIFile): nsIToolkitProfile;
- createProfile(aRootDir: nsIFile, aName: string): nsIToolkitProfile;
- createUniqueProfile(aRootDir: nsIFile, aNamePrefix: string): nsIToolkitProfile;
- readonly profileCount: u32;
- flush(): void;
- asyncFlush(): Promise;
- asyncFlushGroupProfile(): Promise;
- removeProfileFilesByPath(aRootDir: nsIFile, aLocalDir: nsIFile, aTimeout: u32): Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/tools/profiler/gecko/nsIProfiler.idl
-
-interface nsIProfilerStartParams extends nsISupports {
- readonly entries: u32;
- readonly duration: double;
- readonly interval: double;
- readonly features: u32;
- readonly activeTabID: u64;
-}
-
-interface nsIProfiler extends nsISupports {
- StartProfiler(aEntries: u32, aInterval: double, aFeatures: string[], aFilters?: string[], aActiveTabID?: u64, aDuration?: double): Promise;
- StopProfiler(): Promise;
- IsPaused(): boolean;
- Pause(): Promise;
- Resume(): Promise;
- IsSamplingPaused(): boolean;
- PauseSampling(): Promise;
- ResumeSampling(): Promise;
- waitOnePeriodicSampling(): Promise;
- GetProfile(aSinceTime?: double): string;
- getProfileData(aSinceTime?: double): any;
- getProfileDataAsync(aSinceTime?: double): Promise;
- getProfileDataAsArrayBuffer(aSinceTime?: double): Promise;
- getProfileDataAsGzippedArrayBuffer(aSinceTime?: double): Promise;
- dumpProfileToFileAsync(aFilename: string, aSinceTime?: double): Promise;
- dumpProfileToFile(aFilename: string): void;
- IsActive(): boolean;
- ClearAllPages(): void;
- GetFeatures(): string[];
- readonly activeConfiguration: any;
- GetAllFeatures(): string[];
- GetBufferInfo(aCurrentPosition: OutParam, aTotalSize: OutParam, aGeneration: OutParam): void;
- getElapsedTime(): double;
- readonly sharedLibraries: any;
- getSymbolTable(aDebugPath: string, aBreakpadID: string): Promise;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/file/nsIFileChannel.idl
-
-interface nsIFileChannel extends nsISupports {
- readonly file: nsIFile;
-}
-
-// https://searchfox.org/mozilla-central/source/netwerk/protocol/file/nsIFileProtocolHandler.idl
-
-interface nsIFileProtocolHandler extends nsIProtocolHandler {
- newFileURI(aFile: nsIFile): nsIURI;
- newFileURIMutator(file: nsIFile): nsIURIMutator;
- getURLSpecFromActualFile(file: nsIFile): string;
- getURLSpecFromDir(file: nsIFile): string;
- getFileFromURLSpec(url: string): nsIFile;
- readURLFile(file: nsIFile): nsIURI;
- readShellLink(file: nsIFile): nsIURI;
+ getCellAt(rowIndex: i32, columnIndex: i32): nsIAccessible;
+ getCellIndexAt(rowIndex: i32, columnIndex: i32): i32;
+ getColumnIndexAt(cellIndex: i32): i32;
+ getRowIndexAt(cellIndex: i32): i32;
+ getRowAndColumnIndicesAt(cellIndex: i32, rowIndex: OutParam, columnIndex: OutParam): void;
+ getColumnExtentAt(row: i32, column: i32): i32;
+ getRowExtentAt(row: i32, column: i32): i32;
+ getColumnDescription(columnIndex: i32): string;
+ getRowDescription(rowIndex: i32): string;
+ isColumnSelected(columnIndex: i32): boolean;
+ isRowSelected(rowIndex: i32): boolean;
+ isCellSelected(rowIndex: i32, columnIndex: i32): boolean;
+ readonly selectedCellCount: u32;
+ readonly selectedColumnCount: u32;
+ readonly selectedRowCount: u32;
+ readonly selectedCells: nsIArray;
+ getSelectedCellIndices(): u32[];
+ getSelectedColumnIndices(): u32[];
+ getSelectedRowIndices(): u32[];
+ isProbablyForLayout(): boolean;
+}
+
+interface nsIAccessibleTableCell extends nsISupports {
+ readonly table: nsIAccessibleTable;
+ readonly columnIndex: i32;
+ readonly rowIndex: i32;
+ readonly columnExtent: i32;
+ readonly rowExtent: i32;
+ readonly columnHeaderCells: nsIArray;
+ readonly rowHeaderCells: nsIArray;
+ isSelected(): boolean;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleTableChangeEvent.idl
+
+interface nsIAccessibleTableChangeEvent extends nsIAccessibleEvent {
+ readonly rowOrColIndex: i32;
+ readonly RowsOrColsCount: i32;
+}
+
+// https://searchfox.org/mozilla-central/source/accessible/interfaces/nsIAccessibleText.idl
+
+interface nsIAccessibleText extends nsISupports {
+ readonly TEXT_OFFSET_END_OF_TEXT: -1;
+ readonly TEXT_OFFSET_CARET: -2;
+ readonly BOUNDARY_CHAR: 0;
+ readonly BOUNDARY_WORD_START: 1;
+ readonly BOUNDARY_WORD_END: 2;
+ readonly BOUNDARY_SENTENCE_START: 3;
+ readonly BOUNDARY_SENTENCE_END: 4;
+ readonly BOUNDARY_LINE_START: 5;
+ readonly BOUNDARY_LINE_END: 6;
+ readonly BOUNDARY_PARAGRAPH: 7;
+ readonly BOUNDARY_CLUSTER: 8;
+
+ caretOffset: i32;
+ getCaretRect(x: OutParam, y: OutParam, width: OutParam, height: OutParam): void;
+ readonly characterCount: i32;
+ readonly selectionCount: i32;
+ getText(startOffset: i32, endOffset: i32): string;
+ getTextAfterOffset(offset: i32, boundaryType: AccessibleTextBoundary, startOffset: OutParam, endOffset: OutParam): string;
+ getTextAtOffset(offset: i32, boundaryType: AccessibleTextBoundary, startOffset: OutParam, endOffset: OutParam): string;
+ getTextBeforeOffset(offset: i32, boundaryType: AccessibleTextBoundary, startOffset: OutParam, endOffset: OutParam): string;
+ getCharacterAtOffset(offset: i32): string;
+ getTextAttributes(includeDefAttrs: boolean, offset: i32, rangeStartOffset: OutParam