Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add .setLegacyMode #356

Merged
merged 5 commits into from
Sep 9, 2021
Merged

feat: Add .setLegacyMode #356

merged 5 commits into from
Sep 9, 2021

Conversation

WilcoFiers
Copy link
Contributor

No description provided.

@WilcoFiers WilcoFiers changed the title feat(wdjs): Add .setLegacyMode feat: Add .setLegacyMode Sep 8, 2021
@WilcoFiers WilcoFiers marked this pull request as ready for review September 8, 2021 15:00
* axe.finishRun() which is called in a blank page. This uses axe.run() instead,
* but with the restriction that cross-origin frames will not be tested.
*/
public setLegacyMode(legacyMode = true): this {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public setLegacyMode(legacyMode = true): this {
public setLegacyMode(legacyMode = true): AxeBuilder {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be this. If we extend this class (which we do in devtools), AxeBuilder is actually wrong.

`;
${this.source}
axe.configure({
${this.legacyMode ? '' : 'allowedOrigins: ["<unsafe_all_origins>"],'}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
${this.legacyMode ? '' : 'allowedOrigins: ["<unsafe_all_origins>"],'}
${this.legacyMode ? ''allowedOrigins: ["<same_origin>"]' : 'allowedOrigins: ["<unsafe_all_origins>"],'}

Copy link
Contributor Author

@WilcoFiers WilcoFiers Sep 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's exactly the same thing but with more characters. For what reason would you explicitly want to set it to the default?

@WilcoFiers WilcoFiers merged commit f9d021b into develop Sep 9, 2021
@WilcoFiers WilcoFiers deleted the useLegacyMode branch September 9, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants