Skip to content

bug: "optsTest" event listener memory leak #30539

Open
@tomherni

Description

@tomherni

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

There is a memory leak in the following file: core/src/utils/gesture/listener.ts

An "optsTest" event listener is added in a try/catch, and when successful, this event listener is never removed.

Expected Behavior

Passive event listeners have excellent browser support. My suggestion is to remove this check altogether. Otherwise, just remove the event listener after adding it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: investigationThis issue is waiting on more investigation from the Ionic Team.package: core@ionic/core package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions