For the time, it was just jaw dropping. For context, I think it was before Atom, VS Code or Electron (or possibly even NodeJS?) was a thing.
Don't know if that HTML renderer is still around or not.
For the time, it was just jaw dropping. For context, I think it was before Atom, VS Code or Electron (or possibly even NodeJS?) was a thing.
Don't know if that HTML renderer is still around or not.
https://docs.gtk.org/gtk4/broadway.html https://www.phoronix.com/news/GTK4-Broadway-Being-Used
I did not considered it as main/official backend but it is still there and was ported to Gtk4.
Back then, I did run Open Office in Firefox and it amazed me.
[1] https://gitlab.gnome.org/jpu/cambalache
[2] https://blogs.gnome.org/xjuan/2021/05/18/merengue-cambalache...
(a) using browser scrolling (the web doesn’t expose the right primitives to make a scroll-event-based reimplementation anything but bad, barely noticeable in some configurations but painfully broken in some of the most common configurations);
(b) using browser text rendering (strongly preferably by DOM nodes, but even canvas plus fillText can be acceptable); and
(c) handling links with real <a> elements (no alternative can provide the same functionality).
Broadway fails all three of these (reimplementing scrolling, rendering text on the server and sending images, and I think actually locking up when you try to click on a link). It also fails my fourth and fifth tests, which are (d) handling text input properly (it looks like it just uses key events, not even a backing <input> or <textarea> or contenteditable, so IME composition fails completely and keyboard navigation will presumably be GTK rather than native); and (d) having a meaningful accessibility tree (preferably backed by normal DOM stuff, but not necessarily; I place this one last despite its importance because it’s likely to be more retrofittable than the others, though it’ll still generally be hard).
I’d count Broadway as suitable for tech demos and for personal use where you know you don’t mind its limitations, but not for any sort of public deployment. It’s basically just an RDP/VNC sort of thing, with a smattering of DOM use. (Also remember that’s how it works—the code is all running on the server.)
I agree that real links should always be used to represent links, but if you were to emulate links surely it wouldn't be that hard? Just allow middle-clicking and ctrl-clicking and you should have the basic functionality. Is stuff like the ability to drag a problem?
And then beyond that, well. Right click or long press, browser context menu with things like copy, bookmark, open in new tab, open in private window, share… you can’t emulate most of this at all. And hover to see href in the browser’s status bar. And so it goes on.
No, the only acceptable technique is to have the user interact with a real HTML <a>, HTML <area> or SVG <a> element.
Edit: I have replied from an older state of HN, and haven’t yet seen your other comments. Fair enough, didn’t think hard enough of other edge cases, thanks!
Maybe later they moved to canvas. Or like I said, I might be mistaken.
Recently however, Flutter had two backends for web. One HTML based and other canvas based.
Some WebGL etc might be in the works.
It might not sound impressive in 2024 but back then, it was a huge deal. Very daring to even attempt something like that IMHO.
It was a time of YUI, jQuery, ExtJS, script.aculo.us and such.
I mean cool, yes....but it wasn't generating DOM elements/complex HTML or anything like you're trying to sell it as.
https://github.com/moondev/gtk3-docker
My use case was running a browser inside a browser to easily interact with Kubernetes clusterip services without needing to port forward or proxy.
Another awesome example: running virt-manager to run a vm via the gtk virt-viewer (and interacting with it through the browser)
There's some fancy bridging modes to run apps in a browser, but the author has also been working on a way to make wasm Wayland apps run directly in the browser tol.
https://github.com/qbittorrent/qBittorrent/tree/master/src/w...