mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(webdriver): emit single HTTPRequest for Auth requests (#12455)
This commit is contained in:
parent
6e5dcdedc8
commit
637e82796b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user