From 32e5189398d497a15510898a1f782eeb1791fa55 Mon Sep 17 00:00:00 2001 From: Oleg Bespalov Date: Fri, 20 Dec 2024 11:35:16 +0100 Subject: [PATCH] Reverted setting of targetID --- js/modules/k6/browser/common/browser_context.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/js/modules/k6/browser/common/browser_context.go b/js/modules/k6/browser/common/browser_context.go index 2a93ade6e3b..c051cb86951 100644 --- a/js/modules/k6/browser/common/browser_context.go +++ b/js/modules/k6/browser/common/browser_context.go @@ -262,16 +262,7 @@ func (b *BrowserContext) NewPage() (*Page, error) { return nil, err } - var ( - bctxid cdp.BrowserContextID - ptid target.ID - ) - if b != nil { - bctxid = b.id - } - - b.logger.Debugf("BrowserContext:NewPage:return", "bctxid:%v ptid:%s", bctxid, ptid) - + b.logger.Debugf("BrowserContext:NewPage:return", "bctxid:%v ptid:%s", b.id, p.targetID) return p, nil }