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

fix: do not allow postMessage with axe version of x.y.z #2790

Merged
merged 1 commit into from
Feb 5, 2021
Merged

Conversation

straker
Copy link
Contributor

@straker straker commented Feb 4, 2021

No description provided.

@straker straker requested a review from a team as a code owner February 4, 2021 21:13
@@ -112,40 +112,28 @@ describe('axe.utils.respondable', function() {
});
});

it('should allow messages with _source axeAPI.x.y.z', function(done) {
it('should reject messages if the axe version is different', function(done) {
axe.version = '1.0.0';
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably undo this after the test is done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests already setup for that

afterEach(function() {
axe.version = axeVersion;
});

Comment on lines +257 to +259
'https://dequeuniversity.com/rules/axe/' +
ver +
'/target?application=axeAPI&lang=de'
Copy link
Member

Choose a reason for hiding this comment

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

I forgot how much I like template literals 😆

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.

3 participants