Boscop / web-view

Rust bindings for webview, a tiny cross-platform library to render web-based GUIs for desktop applications
MIT License
1.92k stars 175 forks source link

alert(), confirm(), and console.log() extremely slow and distorted on Ubuntu 20.04 #301

Open randall-coding opened 3 years ago

randall-coding commented 3 years ago

rustc 1.53.0-nightly, web-view = "0.7.3"

alert(), confirm(), and console.log() extremely slow and distorted on Ubuntu 20.04. In the image below the alert box is the long distorted white rectangle in the middle of the screen. I am using the todo.rs example default css so not sure if that effects it.

confirm_error

As for speed it takes several seconds for the box to show up.

I know the alert() and confirm() box features are not absolutely necessary to make an app, but it would nice to have everything working like a normal web browser, so I'm making an issue here.

As for console.log that slows down the app also by several seconds for whatever reason and spits a lot of weird output to my vscode console. Below is a brief snippet of that:

parseFloat%28e%29%29%7D%2C%22function%22%3D%3Dtypeof%20define%26%26define.amd%26%26define%28%22jquery%22%2C%5B%5D%2Cfunction%28%29%7Breturn%20w%7D%29%3Bvar%20Jt%3De.jQuery%2CKt%3De.%24%3Breturn%20w.noConflict%3Dfunction%28t%29%7Breturn%20e.%24%3D%3D%3Dw%26%26%28e.%24%3DKt%29%2Ct%26%26e.jQuery%3D%3D%3Dw%26%26%28e.jQuery%3DJt%29%2Cw%7D%2Ct%7C%7C%28e.jQuery%3De.%24%3Dw%29%2Cw%7D%29%3B%0A%3C%2Fscript%3E%0A%09%09%09%3C%2Fhead%3E%0A%09%09%09%3Cbody%3E%0A%09%09%09%09%3C%21--%5Bif%20lt%20IE%209%5D%3E%0A%09%09%09%09%3Cdiv%20class%3D%22ie-upgrade-container%22%3E%0A%09%09%09%09%09%3Cp%20class%3D%22ie-upgrade-message%22%3EPlease%2C%20upgrade%20Internet%20Explorer%20to%20continue%20using%20this%20software.%3C%2Fp%3E%0A%09%09%09%09%09%3Ca%20class%3D%22ie-upgrade-link%22%20target%3D%22_blank%22%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Finternet-explorer.aspx%22%3EUpgrade%3C%2Fa%3E%0A%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%09%3C%21%5Bendif%5D--%3E%0A%09%09%09%09%3C%21--%5Bif%20gte%20IE%209%20%7C%20%21IE%20%5D%3E%20%3C%21--%3E%0A%09%09%09%09%3C%21%5Bendif%5D--%3E%0A%09%09%09%3C%2Fbody%3E%0A%09%09%3C%2Fhtml%3E%0A%09%09:10372:14:

randall-coding commented 2 years ago

Update: tried to use a confirm() again. It is still very distorted (and the Yes/No buttons don't display text). Not slow right now, so perhaps that part was fixed?

snippet_20220610-133840