cefsharp / cefsharp/CefSharp

Feature Request - Add EvaluateScriptAsync CancellationToken overload

Open
#3,100 1 comment 0 reactions 0 assignees View on GitHub
feature-request
Dominant language
C#
Stars
10.3k
Forks
2.9k
Avg merge
5d 22h
Merged PRs (30d)
4

Description

Currently it is not possible to specify a CancellationToken for canceling the EvaluateScriptAsync task. Therefore, when executing a long-running javascript method it is not possible to cancel it.

**Describe the solution you'd like:**
Extend the WebBrowserExtensions.EvaluateScriptAsync() method with the possibility to specifiy a CancellationToken.

Contributor guide

Open the contributing guide

Research direction

Locate WebBrowserExtensions.EvaluateScriptAsync and inspect its existing overloads and related cancellation handling. Add the requested CancellationToken overload and verify that a long-running JavaScript evaluation can be cancelled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, javascript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.