mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(webdriver): redirects emitting events (#12338)
This commit is contained in:
parent
c2244d301a
commit
e1606acfc8
@ -67,6 +67,17 @@ export class BidiHTTPRequest extends HTTPRequest {
|
||||
#initialize() {
|
||||
this.#request.on('redirect', request => {
|
||||
const httpRequest = BidiHTTPRequest.from(request, this.#frame, this);
|
||||
request.once('success', () => {
|
||||
this.#frame
|
||||
.page()
|
||||
.trustedEmitter.emit(PageEvent.RequestFinished, httpRequest);
|
||||
});
|
||||
|
||||
request.once('error', () => {
|
||||
this.#frame
|
||||
.page()
|
||||
.trustedEmitter.emit(PageEvent.RequestFailed, httpRequest);
|
||||
});
|
||||
void httpRequest.finalizeInterceptions();
|
||||
});
|
||||
this.#request.once('success', data => {
|
||||
|
@ -4087,13 +4087,6 @@
|
||||
"expectations": ["FAIL", "PASS"],
|
||||
"comment": "TODO: add a comment explaining why this expectation is required (include links to issues)"
|
||||
},
|
||||
{
|
||||
"testIdPattern": "[network.spec] network Network Events should support redirects",
|
||||
"platforms": ["linux"],
|
||||
"parameters": ["chrome", "headless", "webDriverBiDi"],
|
||||
"expectations": ["FAIL"],
|
||||
"comment": "Fix in next PR"
|
||||
},
|
||||
{
|
||||
"testIdPattern": "[network.spec] network raw network headers Same-origin set-cookie subresource",
|
||||
"platforms": ["darwin", "linux", "win32"],
|
||||
|
Loading…
Reference in New Issue
Block a user