-
Notifications
You must be signed in to change notification settings - Fork 8
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
Html content not displaying, but can be selected. #17
Comments
Hi The situation on linux is kind of a mess because of the availability/features of different window managers. You can try to make it work on awesomeWM by testing whether the following works: Line 176 in 86b0d59
By changing it to |
Thank you for the quick response!
Ah, that makes sense.
Unfortunately, that didn't help. Same result as before. To reiterate: part of what is odd about this is that the inspector shows up just fine, which I assume is part of the webview? Not sure if that's a clue that helps or not. Please let me know if there's anything else I can test, or additional information I can provide. |
The issue seems very similar to the issue reported against tauri: It might be related to the webkit version. I’ll try to follow the discussion there as if progresses since it might shed light into this issue. |
Okay, thank you! |
Same on Arch Linux/GNOME 45.3/Mutter, but wry works fine, it use webkit2gtk 4.1 on Linux. |
I found something new: https://gitlab.gnome.org/World/Rust/webkit6-rs, is it possible to integrate with fltk-rs? |
I’ve released version 0.4 today which also uses webkit2gtk 4.1. I’ll take a look at webkit-rs. |
It may also be necessary to release a new version for fltk-webview-sys. |
And https://docs.rs/crate/fltk-webview/0.4.0 is broken. |
Unfortunately, newer versions of webkit2gtk still don't work, and the problem may be caused by the way the webview is embedded. |
Maybe it would be helpful to take a deeper look at how wry handles it, which supports both X11 and Wayland. |
wry doens't do any embedding. In livid-desktop I do the same with the webview. You can try to clone the repo and run the examples while changing the |
I did try forking and testing |
I have a simple project with the following code, based on the example in the docs:
It compiles and runs just fine, but the view is blank:
Interestingly, if I right-click and bring up the inspector, the content does seem to be there:
Furthermore, the cursor changes to the text cursor when I hover over the areas where the text ought to be displayed, and I can drag-select (without any visible highlighting) and copy it, and paste the content into a text editor, and that works correctly with the expected content of the page being pasted.
At first I thought it might be a styling thing (e.g. the text is rendered white), but that doesn't seem to be the case, and is the reason for the style attribute on the body.
If I try to open a website with the
navigate()
method the same thing happens: the expected content seems to be there (shows up in the inspector, can be (invisibly) selected and copy/pasted into other applications), but just not rendered.This feels particularly bizarre since the inspector obviously draws just fine—no idea why it would be able to draw that but not the actual web content.
I realize this may be a tricky bug to track down, and seems like the kind of thing that might be system-specific. So I'm ready to provide any help I reasonably can. Please let me know if there's anything you want me to check/test, etc.
System Info
I'm running NixOS 22.05 with X11 and AwesomeWM. Hardware-wise, I'm on an AMD x86/64 system with nVidia graphics (with the proprietary drivers). I can provide more details if that would be helpful.
The text was updated successfully, but these errors were encountered: