fix(webdriver): emit single HTTPRequest for Auth requests (#12455)

This commit is contained in:
Nikolay Vitkov 2024-05-17 14:02:46 +08:00 committed by GitHub
parent 6e5dcdedc8
commit 637e82796b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,8 +252,9 @@ export class BrowsingContext extends EventEmitter<{
if (event.context !== this.id) {
return;
}
if (event.redirectCount !== 0) {
if (this.#requests.has(event.request.request)) {
// Means the request is a redirect. This is handled in Request.
// Or an Auth event was issued
return;
}