diff --git a/packages/playwright-core/src/client/page.ts b/packages/playwright-core/src/client/page.ts index 6b86acdf73..26a925f680 100644 --- a/packages/playwright-core/src/client/page.ts +++ b/packages/playwright-core/src/client/page.ts @@ -203,7 +203,7 @@ export class Page extends ChannelOwner implements api.Page this._routes.splice(index, 1); const handled = await routeHandler.handle(route); if (!this._routes.length) - this._wrapApiCall(() => this._updateInterceptionPatterns(), { internal: true }).catch(() => {}); + this._updateInterceptionPatterns().catch(() => {}); if (handled) return; } @@ -398,7 +398,7 @@ export class Page extends ChannelOwner implements api.Page } finally { if (remove) this._locatorHandlers.delete(uid); - this._wrapApiCall(() => this._channel.resolveLocatorHandlerNoReply({ uid, remove }), { internal: true }).catch(() => {}); + this._channel.resolveLocatorHandlerNoReply({ uid, remove }).catch(() => {}); } }