w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
363 stars 40 forks source link

blocked requests map is only cleared in network.beforeRequestSent #615

Closed juliandescottes closed 8 months ago

juliandescottes commented 10 months ago

Network events can be intercepted in several phases: beforeRequestSent, authRequired, responseStarted. If a request is intercepted, it gets added to a blocked requests map.

At the moment this entry is only cleared after the request is handled in the beforeRequestSent phase with

Remove blocked requests[request id].

For authRequired and responseStarted, I don't think the map entry ever gets removed? cc @jgraham

whimboo commented 9 months ago

This indeed looks like a bug. @jgraham could you please verify? Thanks.