From c74b8cf6d682f9dab2c9394eb01c6acedd071f13 Mon Sep 17 00:00:00 2001 From: Greg Stoll Date: Wed, 23 Jul 2025 17:30:24 +0000 Subject: [PATCH] Bug 1965504 part 8 - update TypeScript files a=diannaS This is helpful since we changed some values in nsIContentAnalysis.idl. Sadly, this also picks up a bunch of unrelated changes; such is the state of TypeScript tooling right now. This was all autogenerated with ./mach ts build && ./mach ts update Original Revision: https://phabricator.services.mozilla.com/D251884 Differential Revision: https://phabricator.services.mozilla.com/D258210 --- tools/@types/generated/lib.gecko.dom.d.ts | 15 ++++- tools/@types/generated/lib.gecko.xpcom.d.ts | 64 ++++++++++++++++++--- 2 files changed, 70 insertions(+), 9 deletions(-) diff --git a/tools/@types/generated/lib.gecko.dom.d.ts b/tools/@types/generated/lib.gecko.dom.d.ts index 98fea9a73f23..77af645f3c89 100644 --- a/tools/@types/generated/lib.gecko.dom.d.ts +++ b/tools/@types/generated/lib.gecko.dom.d.ts @@ -2755,6 +2755,7 @@ interface PointerEventInit extends MouseEventInit { coalescedEvents?: PointerEvent[]; height?: number; isPrimary?: boolean; + persistentDeviceId?: number; pointerId?: number; pointerType?: string; predictedEvents?: PointerEvent[]; @@ -7322,6 +7323,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GeometryU onreadystatechange: ((this: Document, ev: Event) => any) | null; onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly partitionedPrincipal: Principal; + pausedByDevTools: boolean; readonly permDelegateHandler: nsIPermissionDelegateHandler; readonly plugins: HTMLCollection; readonly preferredStyleSheetSet: string | null; @@ -15807,6 +15809,7 @@ interface PointerEvent extends MouseEvent { readonly azimuthAngle: number; readonly height: number; readonly isPrimary: boolean; + readonly persistentDeviceId: number; readonly pointerId: number; readonly pointerType: string; readonly pressure: number; @@ -19581,6 +19584,15 @@ declare var TaskSignal: { any(signals: AbortSignal[], init?: TaskSignalAnyInit): TaskSignal; }; +interface TestChromeOnlyInterface { +} + +declare var TestChromeOnlyInterface: { + prototype: TestChromeOnlyInterface; + new(): TestChromeOnlyInterface; + isInstance: IsInstance; +}; + interface TestFunctions { allowSharedArrayBuffer: ArrayBuffer; allowSharedArrayBufferView: ArrayBufferView; @@ -19625,6 +19637,7 @@ declare var TestFunctions: { prototype: TestFunctions; new(): TestFunctions; isInstance: IsInstance; + createTestChromeOnlyInterface(): TestChromeOnlyInterface; passThroughCallbackPromise(callback: PromiseReturner): Promise; passThroughPromise(arg: any): Promise; throwToRejectPromise(): Promise; @@ -24504,7 +24517,7 @@ declare namespace ChromeUtils { function dateNow(): number; function defineESModuleGetters(aTarget: any, aModules: any, aOptions?: ImportESModuleOptionsDictionary): void; function defineLazyGetter(aTarget: any, aName: any, aLambda: any): void; - function endWheelTransaction(): void; + function endWheelTransaction(window: WindowProxy): Promise; function ensureHeadlessContentProcess(aRemoteType: string): Promise; function ensureJSOracleStarted(): void; function fillNonDefaultOriginAttributes(originAttrs?: OriginAttributesDictionary): OriginAttributesDictionary; diff --git a/tools/@types/generated/lib.gecko.xpcom.d.ts b/tools/@types/generated/lib.gecko.xpcom.d.ts index 0ce90d6deab5..d3edf086113f 100644 --- a/tools/@types/generated/lib.gecko.xpcom.d.ts +++ b/tools/@types/generated/lib.gecko.xpcom.d.ts @@ -892,6 +892,7 @@ interface nsIWindowMediator extends nsISupports { getMostRecentWindow(aWindowType: string): mozIDOMWindowProxy; getMostRecentBrowserWindow(): mozIDOMWindowProxy; getMostRecentNonPBWindow(aWindowType: string): mozIDOMWindowProxy; + getMostRecentWindowBy(aWindowType: string, aFilter: u8): mozIDOMWindowProxy; getOuterWindowWithId(aOuterWindowID: u64): mozIDOMWindowProxy; getCurrentInnerWindowWithId(aInnerWindowID: u64): mozIDOMWindow; addListener(aListener: nsIWindowMediatorListener): void; @@ -2597,7 +2598,6 @@ interface nsIDOMWindowUtils extends nsISupports { sendNativeTouchpadPinch(aEventPhase: u32, aScale: float, aScreenX: i32, aScreenY: i32, aModifierFlags: i32): void; sendNativeTouchTap(aScreenX: i32, aScreenY: i32, aLongTap: boolean, aObserver?: nsIObserver): void; sendNativePenInput(aPointerId: u32, aPointerState: u32, aScreenX: i32, aScreenY: i32, aPressure: double, aRotation: u32, aTiltX: i32, aTiltY: i32, aButton: i32, aObserver?: nsIObserver, aElement?: Element): void; - clearNativeTouchSequence(aObserver?: nsIObserver): void; sendNativeTouchpadDoubleTap(aScreenX: i32, aScreenY: i32, aModifierFlags: i32): void; sendNativeTouchpadPan(aEventPhase: u32, aScreenX: i32, aScreenY: i32, aDeltaX: double, aDeltaY: double, aModifierFlags: i32, aObserver?: nsIObserver): void; readonly parsedStyleSheets: u32; @@ -3085,6 +3085,13 @@ interface nsIScriptError extends nsIConsoleMessage { initSourceId(sourceId: u32): void; } +// https://searchfox.org/mozilla-central/source/dom/bindings/test/mozITestInterfaceJS.idl + +interface mozITestInterfaceJS extends nsISupports { + testThrowNsresult(): void; + testThrowNsresultFromNative(): void; +} + // https://searchfox.org/mozilla-central/source/dom/interfaces/events/nsIDOMEventListener.idl // https://searchfox.org/mozilla-central/source/dom/interfaces/geolocation/nsIDOMGeoPosition.idl @@ -5282,6 +5289,37 @@ interface nsIStyleSheetService extends nsISupports { unregisterSheet(sheetURI: nsIURI, type: u32): void; } +// https://searchfox.org/mozilla-central/source/layout/tools/layout-debug/src/nsILayoutDebuggingTools.idl + +} // global + +declare enum nsILayoutDebuggingTools_DumpFrameFlags { + DUMP_FRAME_FLAGS_CSS_PIXELS = 1, + DUMP_FRAME_FLAGS_DETERMINISTIC = 2, +} + +declare global { + +namespace nsILayoutDebuggingTools { + type DumpFrameFlags = nsILayoutDebuggingTools_DumpFrameFlags; +} + +interface nsILayoutDebuggingTools extends nsISupports, Enums { + init(win: mozIDOMWindow): void; + forceRefresh(): void; + setReflowCounts(enabled: boolean): void; + setPagedMode(enabled: boolean): void; + dumpContent(anonymousSubtrees: boolean): void; + dumpFrames(flags: u8): void; + dumpTextRuns(): void; + dumpViews(): void; + dumpCounterManager(): void; + dumpStyleSheets(): void; + dumpMatchedRules(): void; + dumpComputedStyles(): void; + dumpReflowStats(): void; +} + // https://searchfox.org/mozilla-central/source/layout/xul/tree/nsITreeSelection.idl interface nsITreeSelection extends nsISupports { @@ -7278,6 +7316,7 @@ interface nsISystemProxySettings extends nsISupports { readonly PACURI: string; getProxyForURI(testSpec: string, testScheme: string, testHost: string, testPort: i32): string; readonly systemWPADSetting: boolean; + setSystemProxyInfo(host: string, port: i32, pacFileUrl: string, exclusionList: string[]): void; } // https://searchfox.org/mozilla-central/source/netwerk/base/nsITLSServerSocket.idl @@ -10082,7 +10121,6 @@ interface nsIRelativeFilePref extends nsISupports { interface nsIPrefetchService extends nsISupports { prefetchURI(aURI: nsIURI, aReferrerInfo: nsIReferrerInfo, aSource: Node, aExplicit: boolean): void; - preloadURI(aURI: nsIURI, aReferrerInfo: nsIReferrerInfo, aSource: Node, aPolicyType: nsContentPolicyType): void; hasMoreElements(): boolean; cancelPrefetchPreloadURI(aURI: nsIURI, aSource: Node): void; } @@ -10148,7 +10186,6 @@ interface nsIMarionette extends nsISupports { // https://searchfox.org/mozilla-central/source/remote/components/nsIRemoteAgent.idl interface nsIRemoteAgent extends nsISupports { - readonly debuggerAddress: string; readonly running: boolean; } @@ -10188,6 +10225,13 @@ interface mozISandboxSettings extends nsISupports { readonly contentWin32kLockdownStateString: string; } +// https://searchfox.org/mozilla-central/source/security/sandbox/common/test/mozISandboxTest.idl + +interface mozISandboxTest extends nsISupports { + startTests(aProcessesList: string[]): void; + finishTests(): void; +} + // https://searchfox.org/mozilla-central/source/toolkit/components/satchel/nsIFormFillController.idl interface nsIFormFillController extends nsISupports { @@ -11207,10 +11251,11 @@ declare enum nsIContentAnalysisRequest_Reason { } declare enum nsIContentAnalysisRequest_OperationType { - eCustomDisplayString = 0, - eClipboard = 1, - eDroppedText = 2, - eOperationPrint = 3, + eClipboard = 0, + eDroppedText = 1, + eOperationPrint = 2, + eUpload = 3, + eDownload = 4, } declare global { @@ -11225,7 +11270,7 @@ interface nsIContentAnalysisRequest extends nsISupports, Enums; nsIScriptErrorNote: nsJSIID; nsIScriptError: nsJSIID; + mozITestInterfaceJS: nsJSIID; nsIDOMGeoPosition: nsJSIID; nsIDOMGeoPositionCallback: nsJSIID; nsIDOMGeoPositionCoords: nsJSIID; @@ -15683,6 +15729,7 @@ interface nsIXPCComponents_Interfaces { nsIPreloadedStyleSheet: nsJSIID; nsISVGPaintContext: nsJSIID; nsIStyleSheetService: nsJSIID; + nsILayoutDebuggingTools: nsJSIID; nsITreeSelection: nsJSIID; nsITreeView: nsJSIID; mozILocaleService: nsJSIID; @@ -16057,6 +16104,7 @@ interface nsIXPCComponents_Interfaces { nsIApplicationReputationQuery: nsJSIID; nsIApplicationReputationCallback: nsJSIID; mozISandboxSettings: nsJSIID; + mozISandboxTest: nsJSIID; nsIFormFillController: nsJSIID; nsIFormFillCompleteObserver: nsJSIID; mozIAppServicesLogger: nsJSIID;