Bug 1864896: Remove jsdoc params for removed arguments (remote). r=webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D202982
This commit is contained in:
Dave Townsend 2024-03-01 23:43:51 +00:00
parent 049e4fc37a
commit b1df411027
8 changed files with 2 additions and 71 deletions

View File

@ -146,8 +146,6 @@ export class Network extends Domain {
*
* Depending on the backend support, will return detailed cookie information in the cookies field.
*
* @param {object} options
*
* @returns {Array<Cookie>}
* Array of cookie objects.
*/

View File

@ -672,10 +672,6 @@ export class Page extends Domain {
* When file chooser interception is enabled,
* the native file chooser dialog is not shown.
* Instead, a protocol event Page.fileChooserOpened is emitted.
*
* @param {object} options
* @param {boolean=} options.enabled
* Enabled state of file chooser interception.
*/
setInterceptFileChooserDialog() {}

View File

@ -324,9 +324,6 @@ browser.Context = class {
* Registers a new frame, and sets its current frame id to this frame
* if it is not already assigned, and if a) we already have a session
* or b) we're starting a new session and it is the right start frame.
*
* @param {XULBrowser} target
* The <xul:browser> that was the target of the originating message.
*/
register() {
if (!this.tabBrowser) {

View File

@ -85,9 +85,6 @@ export class WebSocketConnection {
* Register a new Session to forward the messages to.
*
* Needs to be implemented in the sub class.
*
* @param {Session} session
* The session to register.
*/
registerSession() {
throw new Error("Not implemented");

View File

@ -163,11 +163,6 @@ export class NetworkEventRecord {
* Required API for a NetworkObserver event owner.
*
* Not used for RemoteAgent.
*
* @param {object} info
* The object containing security information.
* @param {boolean} isRacing
* True if the corresponding channel raced the cache and network requests.
*/
addSecurityInfo() {}
@ -177,13 +172,6 @@ export class NetworkEventRecord {
* Required API for a NetworkObserver event owner.
*
* Not used for RemoteAgent.
*
* @param {number} total
* The total time for the request.
* @param {object} timings
* The har-like timings.
* @param {object} offsets
* The har-like timings, but as offset from the request start.
*/
addEventTimings() {}
@ -193,9 +181,6 @@ export class NetworkEventRecord {
* Required API for a NetworkObserver event owner.
*
* Not used for RemoteAgent.
*
* @param {object} options
* An object which contains a single responseCache property.
*/
addResponseCache() {}
@ -233,9 +218,6 @@ export class NetworkEventRecord {
* Required API for a NetworkObserver event owner.
*
* Not used for RemoteAgent.
*
* @param {Array} serverTimings
* The server timings.
*/
addServerTimings() {}
@ -245,9 +227,6 @@ export class NetworkEventRecord {
* Required API for a NetworkObserver event owner.
*
* Not used for RemoteAgent.
*
* @param {object} serviceWorkerTimings
* The server timings.
*/
addServiceWorkerTimings() {}

View File

@ -267,9 +267,6 @@ export class MessageHandler extends EventEmitter {
* provided to this MessageHandler on startup. Implementation is specific to each MessageHandler class.
*
* By default the implementation is a no-op.
*
* @param {Array<SessionDataItem>} sessionDataItems
* Initial session data items for this MessageHandler.
*/
async initialize() {}

View File

@ -61,12 +61,12 @@ export class Module {
*
* @param {string} name
* Name of the event.
* @param {object} payload
* @param {object} _payload
* The event's payload.
* @returns {object}
* The modified event payload.
*/
interceptEvent(name) {
interceptEvent(name, _payload) {
throw new Error(
`Could not intercept event ${name}, interceptEvent is not implemented in windowglobal-in-root module`
);

View File

@ -508,9 +508,6 @@ class Origin {
* Viewport coordinates of the origin of this coordinate system.
*
* This is overridden in subclasses to provide a class-specific origin.
*
* @param {InputSource} inputSource - State of current input device.
* @param {WindowProxy} win - Current window global
*/
getOriginCoordinates() {
throw new Error(
@ -624,10 +621,6 @@ class Action {
* This is overridden by subclasses to implement the type-specific
* dispatch of the action.
*
* @param {State} state - Actions state.
* @param {InputSource} inputSource - State of the current input device.
* @param {number} tickDuration - Length of the current tick, in ms.
* @param {WindowProxy} win - Current window global.
* @returns {Promise} - Promise that is resolved once the action is complete.
*/
dispatch() {
@ -708,7 +701,6 @@ class PauseAction extends NullAction {
* @param {State} state - Actions state.
* @param {InputSource} inputSource - State of the current input device.
* @param {number} tickDuration - Length of the current tick, in ms.
* @param {WindowProxy} win - Current window global.
* @returns {Promise} - Promise that is resolved once the action is complete.
*/
dispatch(state, inputSource, tickDuration) {
@ -1416,12 +1408,6 @@ class TouchActionGroup {
* This is overridden by subclasses to implement the type-specific
* dispatch of the action.
*
* @param {State} state - Actions state.
* @param {null} inputSource
* This is always null; the argument only exists for compatibility
* with {@link Action.dispatch}.
* @param {number} tickDuration - Length of the current tick, in ms.
* @param {WindowProxy} win - Current window global.
* @returns {Promise} - Promise that is resolved once the action is complete.
*/
dispatch() {
@ -1778,11 +1764,6 @@ class Pointer {
/**
* Implementation of depressing the pointer.
*
* @param {State} state - Actions state.
* @param {InputSource} inputSource - State of the current input device.
* @param {Action} action - The Action object invoking the pointer
* @param {WindowProxy} win - Current window global.
*/
pointerDown() {
throw new Error(`Unimplemented pointerDown for pointerType ${this.type}`);
@ -1790,11 +1771,6 @@ class Pointer {
/**
* Implementation of releasing the pointer.
*
* @param {State} state - Actions state.
* @param {InputSource} inputSource - State of the current input device.
* @param {Action} action - The Action object invoking the pointer
* @param {WindowProxy} win - Current window global.
*/
pointerUp() {
throw new Error(`Unimplemented pointerUp for pointerType ${this.type}`);
@ -1802,12 +1778,6 @@ class Pointer {
/**
* Implementation of moving the pointer.
*
* @param {State} state - Actions state.
* @param {InputSource} inputSource - State of the current input device.
* @param {number} targetX - Target X coordinate of the pointer move
* @param {number} targetY - Target Y coordinate of the pointer move
* @param {WindowProxy} win - Current window global.
*/
pointerMove() {
throw new Error(`Unimplemented pointerMove for pointerType ${this.type}`);
@ -2138,9 +2108,6 @@ class InputEventData {
/**
* Update the input data based on global and input state
*
* @param {State} state - Actions state.
* @param {InputSource} inputSource - State of the current input device.
*/
update() {}