Skip to content
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

Add Chromium as a browser (via CEF)? #6

Open
popcar2 opened this issue Jan 16, 2024 · 3 comments
Open

Add Chromium as a browser (via CEF)? #6

popcar2 opened this issue Jan 16, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@popcar2
Copy link
Owner

popcar2 commented Jan 16, 2024

Adding a browser to GodotOS is a long-term goal that might never happen.
This issue is just for tracking interest and giving some context about it, since it's a feature a ton of people requested.

Lecrapouille is porting the gdcef (Godot Chromium Embedded Framework) extension to Godot 4, which means it would be technically possible to run Chromium inside of GodotOS. It currently works but is incomplete and may contain issues.

When gdcef is stable, I may look into adding it to GodotOS. There are some things to consider though:

  • How big gdcef is: I tried making GodotOS as small as possible, the web version being 8mb and desktop versions being roughly 22mb compressed. Adding Chromium would make the file size many times bigger. This means adding gdcef to the web version will likely never happen.
  • How stable GDExtension is: GDExtension is relatively experimental. A major Godot update can introduce breaking changes to GDExtension which gdcef relies on. This could cause issues when upgrading to a newer version.

We could separate GodotOS to a version that includes Chromium and a version that doesn't, but that complicates things. GodotOS was also built in mind to keep things as simple as possible and make it easy to build upon and learn from. Can adding a big extension harm that goal?

Again, this issue is mostly wishful thinking. There aren't any immediate plans to include a browser but I hope this gives some answers before someone inevitably makes an issue asking for it.

@popcar2 popcar2 added the enhancement New feature or request label Jan 16, 2024
@popcar2 popcar2 added this to the maybe some day milestone Jan 16, 2024
@Rucadi
Copy link

Rucadi commented Jan 18, 2024

While I've never worked with Godot, so I don't know if this is feasible,
If you want to maintain a simple and small project, embedding everything may not be the best of the ideas,

you could create simple AppStore to add more functionality to GodotOs, and there you could download simple games or the cef browser, for example.

@popcar2
Copy link
Owner Author

popcar2 commented Jan 18, 2024

you could create simple AppStore to add more functionality to GodotOs, and there you could download simple games or the cef browser, for example.

Unfortunately that's not possible with the way Godot is now. There isn't much support for loading apps and scripts on runtime, you'd have to add them beforehand then compile the game with them included.

It's one part of the engine people are hopeful will improve over time but it may take years for simply loading in a Godot game/app to be feasible.

@the-az-dev
Copy link

How about fake browser or design window in which we will get http / https requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants