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 XPath crash issue in IEDriver #9939

Merged
merged 2 commits into from
Oct 18, 2021

Conversation

guangyuexu
Copy link
Contributor

@guangyuexu guangyuexu commented Oct 15, 2021

Fix IEDriver XPath crash issue

Description

This PR is to fix XPath crash issue tracked in #9938

Motivation and Context

The XPath crash issue in IEDriver was caused by regex update from this commit: cf49ba23. The IEDriver crashed when IE (or Edge in IEMode) tried to parse the unicode regex ending with /gu.

Types of changes

In this PR, a browser type check is added to let IE (or Edge in IEMode) use /g regex and other browsers use /gu unicode regex in the file.

In addition, this PR generated the file atoms.h to reflect the changes in javascript/atom and updated the file for IEDriver.

@CLAassistant
Copy link

CLAassistant commented Oct 15, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@jimevans jimevans left a comment

Choose a reason for hiding this comment

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

LGTM.

@jimevans jimevans merged commit 1ca3c06 into SeleniumHQ:trunk Oct 18, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

elgatov pushed a commit to elgatov/selenium that referenced this pull request Jun 27, 2022
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