fabricedesre / servonk

Servo on Gonk
Mozilla Public License 2.0
85 stars 11 forks source link

Capyloon integration? #28

Open poVoq opened 1 year ago

poVoq commented 1 year ago

https://capyloon.org/

It aims to revive b2g by providing a modern UI and back-porting KaiOS changes.

But getting it to work with Servo would probably be a major improvement.

fabricedesre commented 1 year ago

It would mostly be a lot of work on the Servo side, because Capyloon uses a lot of web apis that are not yet in Servo. That includes non standard ones like having a component to load top level documents in the system UI. I had patches for that in Servo a while ago, but that was all a bit hackish...

vandys commented 1 year ago

I worry that the lessons so wonderfully surveyed by Ben Francis in his "The Story of Firefox OS" will be hard to fold into a b2g reboot. Things which can be RESTful services should never, ever be added to the browser itself. It's much easier to imagine pursuing this from, say, sxmo with a stock browser, and then developing a suite of services on localhost.

fabricedesre commented 1 year ago

In KaiOS v3.x and Capyloon we moved a bunch of apis to an external component (https://github.com/capyloon/api-daemon) that exposes apis over websockets to web pages. There is a lightweight integration with gecko to allow sane permission management, but that part would be easy to port to another web runtime.

With a stock browser you'll have a hard time writing both the system UI (which provides window management, status bar, notifications etc.) and the apps in html/js/css. If you go with a "native" system UI you are just re-doing ChromeOS...