Bug 41598
| Summary: | [Qt] QScriptEngine should have an API for processing application events | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kent Hansen <kent.hansen> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Enhancement | CC: | cmarcelo, jedrzej.nowacki |
| Priority: | P2 | Keywords: | Qt, QtTriaged |
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | All | ||
| Bug Depends on: | 41765 | ||
| Bug Blocks: | 31863 | ||
Kent Hansen
See http://doc.trolltech.com/4.6/qscriptengine.html#setProcessEventsInterval
This can be used to e.g. keep the UI response when running a potentially long-running script in the GUI (main) thread.
To implement this functionality, a callback is needed from the VM every n milliseconds.
JSC currently has such a mechanism internally (TimeoutChecker), but there's no hook for it in the C API.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jędrzej Nowacki
Porting QtScript API over JSC C API will not be continued.