Skip to content

Analysis never finishes  #4008

Open
Open
@ali-habibzadeh

Description

@ali-habibzadeh

Product

axe-core

Product Version

4.7.0

Latest Version

  • I have tested the issue with the latest version of the product

Issue Description

Expectation

Describe what you expected the product to do.

Actual

Describe what the product actually does.

How to Reproduce

On some pages like: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/package_manifest/index#revision_history

The analysis never finishes. I am injecting axe in this way:

const script = document.createElement("script");
script.src = "https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.7.0/axe.min.js";
document.head.appendChild(script);

And then I just run axe.run().then(console.log) which it never ends.

Is there a way to get axe-core to abort once a certain time has lapsed? This would help with error handling if axe can't finish or takes too long.

Replication: https://codesandbox.io/p/sandbox/aged-field-v7c7mh?file=%2Frun-puppeteer.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreIssues in the core code (lib/core)fixBug fixesperformancePerformance related issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions