-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: add JCEF reload action #8711
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
…r the browser has been created
3fa9081 to
f677852
Compare
…ianKuang8/qian/jcef-reload
| private val myJBCefClient: JBCefClient = JBCefApp.getInstance().createClient().apply { | ||
| setProperty(JBCefClient.Properties.JS_QUERY_POOL_SIZE, 200) | ||
| } | ||
| private val browser: JBCefBrowser = JBCefBrowser.createBuilder().setOffScreenRendering(true).setClient(myJBCefClient).build() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come were changing this logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit e998ae8 was added to address the issue mentioned in #8085 (comment)
[5473397] WARN - #c.i.u.j.JBCefJSQuery - Set the property JBCefClient.Properties.JS_QUERY_POOL_SIZE to use JBCefJSQuery after the browser has been created
If you have concerns about the fix, I can revert that commit so we can focus on the reload action in this PR.
Patrick-Erichsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the changes here? I'm weary to modify the core browser logic and potentially making things worse than they already are.
Description
Discussion in #8085
Add a reload button and an action
With manual test, it works well in normal case. Not 100% sure whether it would work when UI freezes.
video.mp4
AI Code Review
@continue-reviewChecklist
Screen recording or screenshot
Tests
[ What tests were added or updated to ensure the changes work as expected? ]
Summary by cubic
Adds a Reload button for the Continue tool window that rebuilds the JCEF browser and client to recover from freezes or crashes.
New Features
Bug Fixes
Written for commit a097b35. Summary will update automatically on new commits.