dequelabs / axe-webdriverjs

Provides a chainable axe API for Selenium's WebDriverJS and automatically injects into all frames.
Mozilla Public License 2.0
130 stars 46 forks source link

fix: Prevent infinitely recursing when injecting into iframes #64

Closed stephenmathieson closed 6 years ago

stephenmathieson commented 6 years ago

This patch prevents axe-webdriverjs to infinitely recurse when injecting axe-core into <iframe>s. Instead of looping forever, we'll recurse 10 times before giving up. Closes #63.

stephenmathieson commented 6 years ago

@jkodu yes, if a page really has 11 nested frames, this will not work.

stephenmathieson commented 6 years ago

Closed in favor of #66