Skip to content

network.responseCompleted is emitted too early #3574

@sadym-chromium

Description

@sadym-chromium

According to the fetch specification, the WebDriver BiDi response completed steps should be invoked during "flush algorithm".

Currently, ChromiumBiDi relies on CDP event Network.responseReceived, which in turn relies on DataReceived, which:

is called each time a chunk of data is received

It looks like the right event is the Network.loadingFinished.

This seems to be the root cause of puppeteer/puppeteer#14017.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions