How to start Firefox as display-only window for HTML + interactive JavaScript

I was trying to leverage Firefox, because it appears that it is pivoting on Chrome-based technologies to the point of making it difficult to think of it as other than a Chrome clone (at least that is what I am seeing as I am digging into all of this). Because of that, and Firefox's "traditional" GUI being my preferred browser, I thought I could use that as a launchpad into the Chrome-based market, that being the apparent most-popular browser, for user reach.

I'm not thinking so much of "market" as I am of "users", so that it could become ubiquitous, as I previously mentionned, and become a standard-included App, with Linux at least, possibly supplanting the ubiquitous "Minesweeper" App!

Maybe, if it is "neutralized" enough, it could even be installed, in parallel, at time of browser installs !

If you're going to think ... you may as well think BIG ! :slight_smile:

2 Likes

Well since I believe WebKitGTK is GTK-based system as the name implies I don't think it is available on minimalist or niche distributions that exclude GTK

Here are some insightful answers about (non)-GTK Linux versions as it seems that Qt-based ones like LxQt DE seem not to work in the same way

Also I am afraid it doesn't work as well on Windows as this link implies:

Why I link it is because one of the replies states: "I ended up using Chromium Embedded Framework instead" and later on lists all the specter of different OS-es it covers including mobile as well

My knowledge on GTK in general is very limited and so my judgement is based off of what I managed to read and find online whilst searching about WebkitGTK and availability of it

I think thinking BIG is excellent way of thinking by the way and I fully encourage you! Hope you find the best/optimal solution!

2 Likes

Funny that you should mention Falkon!

I actually tried that before starting this discussion!

Thank you for the URL reference. I will look into that.

The "headless browser" from what I saw in a few places, is more like a background process with no GUI at all, not a browser, so unless that term is used differently by others, that is not the mode I am looking to implement.

2 Likes

Thank you, @Alarik, for sharing your findings and thoughts.

Reviewing those 2 items, I am beginning to feel that I need to step away from a framework like WebKitGTK, and retrench on my earlier view of limiting myself to universal standards of

  • HTML5
  • CSS3
  • JavaScript / ECMAscript (5/6)
  • Python (while I've done some exploratory work with this, not sure that I am personally compatible with Python's "indentation scheme" for code segment delimination. That is so foreign to me in terms of "encapsulating" logic code and being able easily re-shuffle code segments around, that I really don't feel comfortable staying with that as my primary coding language for the project. I may be forced to continue with it depending on how much support I see for other languages, specifically JavaScript (for the expected portability) or C/C++ as the other language that I've had some minor experience with.

(As for other tools to which I was exposed, Pascal/Ada appear to be fading into history, FORTRAN is not the vehicle for this type of work, and I never manage to master Prolog enough to get anything functional working, regardless of size.)

2 Likes

You're right, I was completely mistaken about that.

By the way, i've been looking for a non-complicated way to create exactly what you want, but the easiest way is with brave-browser ( tested):

brave-browser --app="$html_page"

3 Likes

Thank you, Thom. I might take advantage of that for initial proving-in of the App.

Unfortunately, given the browser market-share stats, I wasn't even thinking of looking at Brave as a browser platform.

However, this posting makes me think that it may be a platform that I should take seriously going forward. I am not sure if I will jump ship, because I am very much attached to my Firefox GUI:

2 Likes

I would at least suggest you try Brave on your smartphone since it actually has a good ad-blocker that works and so you can easily open youtube in browser and still be able to turn the screen off without the need of purchasing youtube premium

On the mobile is where Brave truly outshines the competition in my honest opinion

2 Likes

I realize this will make it obvious that I am a "dinosaur", but

  • I do not have a smartphone, and
  • I do not want a smartphone.

Other than my home land-line (which I will never get rid of), I have a basic flip-phone cell for emergency purposes only. And, by the way, I never share that cell-phone number with anyone, except hospital staff.

So ... any testing will only be on a Desktop ! :slight_smile:

2 Likes

Yes, I think so. I've been a Firefox user for decades, regardless OS platform. But since a few years I've been using Brave as my daily browser and I'm a happy camper since.

I have tried quite some browsers and I kept:
Opera, Librewolf (more secure version of Firefox), and Brave

2 Likes

Ahh I wish I didn't need smartphone but at this time I just cannot afford myself to be too disconnected since most of the people I know depend on me being reachable via messages and such + work stuff as well...

If phone bills weren't as expensive I would gladly buy a second "dumb" phone and have that a separate number but for now it is how it is

Even though you don't use one you should still consider the possibility of the program you're developing to be able to be run by mobile phones because if it's a nifty game I think people would love it because today I see more and more people being less reliant on desktop and more engaged with phones for entertainment

2 Likes

So are Tablets not being used that much ? I only do gaming on my Tablet, not so much my Desktop, because I use "mind-numbing" games like Spider or "Blocks" to kick my brain out of the "thinking" gear when I can't sleep.

2 Likes

I wouldn't know I myself don't own one and don't intend to buy it - I have kindle for reading and I use my laptop for everything else and phone when I have to

But I know that younger generations do prefer to use tablet and I think young kids in pre-school and middle-school use them quite often

2 Likes