Skip to content

[Question] How to handle discarded tabs? #2308

Closed

Description

The promise for browserContext.pages() never resolves if one of the pages in browser context is discarded. You can check discarded pages at chrome://discards.

How should this be handled? Shouldn't this be resolved from the API side of things? My assumption is that we get targets first and then get the pages for those targets. But since there's no page for that target, we fail to get the actual page and wait for it to be ready.

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions