From 92ee74e12d753b65db1ea8c299319f8a41c6f9f1 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 29 Jan 2025 08:03:07 +0100 Subject: [PATCH] refactor: rename contextId --- src/bidiMapper/modules/session/SubscriptionManager.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bidiMapper/modules/session/SubscriptionManager.ts b/src/bidiMapper/modules/session/SubscriptionManager.ts index 028213a28..c49f44d46 100644 --- a/src/bidiMapper/modules/session/SubscriptionManager.ts +++ b/src/bidiMapper/modules/session/SubscriptionManager.ts @@ -136,7 +136,7 @@ export class SubscriptionManager { #isSubscribedTo( subscription: Subscription, moduleOrEvent: ChromiumBidi.EventNames, - contextId?: BrowsingContext.BrowsingContext, + browsingContextId?: BrowsingContext.BrowsingContext, ): boolean { let includesEvent = false; for (const eventName of subscription.eventNames) { @@ -161,11 +161,11 @@ export class SubscriptionManager { // user context subscription. if (subscription.userContextIds.size !== 0) { - if (!contextId) { + if (!browsingContextId) { return false; } - const context = this.#browsingContextStorage.findContext(contextId); + const context = this.#browsingContextStorage.findContext(browsingContextId); if (!context) { return false; } @@ -174,11 +174,11 @@ export class SubscriptionManager { // context subscription. if (subscription.topLevelTraversableIds.size !== 0) { - if (!contextId) { + if (!browsingContextId) { return false; } const topLevelContext = - this.#browsingContextStorage.findTopLevelContextId(contextId); + this.#browsingContextStorage.findTopLevelContextId(browsingContextId); return ( topLevelContext !== null && subscription.topLevelTraversableIds.has(topLevelContext)