Skip to content

docs: counter of running webcontainer is not decreased when browser crashed due to OOM #52647

@9kubczas4

Description

@9kubczas4

There is an edge case, which is easier to reproduce on Safari when user will open a few tabs with running webcontainer (tutorial pages, homepage if it's scrolled to embedded editor or playground).

When an OOM error occurs in Safari, the tab is reloaded automatically in that case event beforeunload was not catched and count of running webcontainers wasn't decreased.

In the result the alert message:
You currently have more than 3 tabs open running the Angular Tutorials or Playground, this may result in an <code>Out of memory</code> error.
could be displayed even when user has less opened tabs with Embedded Editor than recommended.

The idea of solution:
I'm thinking about reset counter when will close the warning message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: docs-infraAngular.dev application and infrastructuregood first issueAn issue that is suitable for first-time contributors; often a documentation issue.help wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions