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

Protect against empty range in selection #8

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

LunarX
Copy link
Contributor

@LunarX LunarX commented Jun 7, 2024

When the webview doesn't have focus, there's no range to get so simply abort the operation instead of throwing an error

Depends on #2

@LunarX LunarX added the enhancement New feature or request label Jun 7, 2024
@LunarX LunarX requested a review from valentinperignon June 7, 2024 14:23
@LunarX LunarX self-assigned this Jun 7, 2024
@LunarX LunarX force-pushed the secure-get-selection branch 2 times, most recently from 29165cb to 2c670fc Compare June 11, 2024 13:53
@LunarX LunarX force-pushed the secure-get-selection branch 2 times, most recently from 3eb9d7b to fd8e3f8 Compare June 19, 2024 08:31
Base automatically changed from js-editor to main June 19, 2024 12:56
Copy link

This PR/issue depends on:

When the webview doesn't have focus, there's no range to get so simply abort the operation instead of throwing an error
@LunarX LunarX force-pushed the secure-get-selection branch from fd8e3f8 to f221413 Compare June 19, 2024 13:13
Copy link

@LunarX LunarX merged commit 1098168 into main Jun 19, 2024
4 checks passed
@LunarX LunarX deleted the secure-get-selection branch June 19, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants