-
Notifications
You must be signed in to change notification settings - Fork 70
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
Use CEF Browser on Desktop #7
Conversation
Awesome! I will review it soon and merge the PR if nothing goes wrong. Thanks again! |
webview/src/desktopMain/kotlin/com/multiplatform/webview/web/DesktopWebView.kt
Outdated
Show resolved
Hide resolved
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.
Looking great! Thanks for this, just one minor thing is the implementation of evaluateJavaScript. Since I already released a new version that supports JavaScript evaluation, the CEF browser also has to support it and then be able to merge it into the main branch. Is it because implementing evaluateJavaScript in CEF is more complicated than JavaFX so you left it as a todo?
removed test method
I really appreciate your documentation! |
I added the execution method without calling the callback. If you want you can pin me as maintainer, since you're not that familiar with CEF (or desktop development in general) I'm willing to maintain that part. |
Great! I have invited you! |
Hello, I just ran your code locally and encountered the following issue. Is there any configuration that needs to be done? I have already run the initialization code once to download the CEF module, but when I ran it for the second time, I encountered this problem. Stacktrace
|
MacOS and AWT is always a bit tricky. If you want to just run it, add this JVM Flags:
If you package it add this in the build.gradle.kts: compose {
desktop {
...
nativeDistributions {
...
includeAllModules = true
}
}
} |
Thank you for your help! The basic sample is currently functioning properly. However, I am experiencing issues when attempting to test the LoadHtml Sample, as it only displays a blank screen. Can you confirm whether it is functioning correctly on your end? By the way, there is another error. It will not crash the app but will be logged each time it runs.
|
Fixed loading and seemed like the html style was somewhat incorrect. |
Yes, it appears to be related to the color value format. I have resolved the issue and made the necessary updates to the ReadMe. I believe it is now ready for merging. Is there anything else you would like to include? If not, I intend to merge the pull request and proceed with the release of the new version. |
I'm ready for merging. I'll (try) work on new and improved features, as Jetbrains CEF is even better and could solve problems like the css thing and |
Cool! I will merge it soon. For JetBrains CEF, I also saw many developers recommend it when I was researching JCEF. Feel free to do it if you think it is a better option. Thank you for your contribution! |
This PR get's rid of the JavaFX Browser (and all it's problems).
It comes with a breaking change for desktop, as it needs at least an install dir.
This can (should) be called in the app init process, not sure how we document this in the README.
It needs to be called once (on app start), it can be called multiple times (executes once only).
Adding the Composable remains the same