WIP My web browser project for Nintendo Switch!

XorTroll Jul 5, 2018.

  1. XorTroll
    OP

    XorTroll NSZ is only piracy

    pip Developer
    12
    Dec 28, 2017
    Spain
    Nowhere
    Hi everybody!

    First of all, this is just a planned project, it's not sure that it'll be released, and if so it would be ready in a long time, because it's a long project.

    In case I wanted to create my own renderer:
    - As I did with Brew.js, we already have a way to process and evaluate JavaScript, using duktape embeddable engine.
    - We have Gumbo parser, which is a HTML parser, so we can read DOM elements and their attributes.
    - I haven't searched for any CSS parser, but I'm sure there are plenty of them for C or C++.
    - There are some HTML renderers, but they may be difficult to port, but using SDL2 plus all the interpreters and parsers above, we have the possibility to build a good HTML renderer.
    - Using libcurl or any other web libs we can access web files...

    Anyway, I may try porting another web browser or renderer, such as librocket or WebKit.

    As I said before, this is not a almost-ready project. I've started the development of this idea, but this thread's objective is to speak a bit about this idea.
     
    Last edited by XorTroll, Jul 8, 2018
  2. huma_dawii

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    Proof or NEVER happened, we are tired of attention whores.
     
  3. ShonenJump

    ShonenJump Creator of "Color Fever" Comic

    Member
    6
    Mar 14, 2009
    Netherlands
    Planet Feveroid
  4. parrotgeek1

    parrotgeek1 GBAtemp Regular

    Member
    5
    Dec 2, 2012
    United States
    http://www.netsurf-browser.org/ seems easier to port (although no JS yet)

    or even better, figure out the API the OS uses for the webapplet and just add a little gui to it...
     
  5. kikongokiller

    kikongokiller GBAtemp Advanced Fan

    Member
    9
    Jan 12, 2017
    Australia
    It's a good idea to wait until you have something to show when you announce it, but I'll definitely be following this
     
  6. mansonss

    mansonss Member

    Newcomer
    2
    Nov 14, 2013
    United States
    Girard, Ohio
    Wouldn't using the built in API still require some way to circumvent Nintendo's whitelist though?
     
  7. parrotgeek1

    parrotgeek1 GBAtemp Regular

    Member
    5
    Dec 2, 2012
    United States
    No, because that seems specific to each html viewer (like the social login can play videos, etc)
     
  8. ahmio

    ahmio Newbie

    Newcomer
    1
    Jan 8, 2017
    Canada
    Wouldn't porting chromium be easier? Ideally you'd only have to rewrite the renderer, right?
     
  9. Zyvyn

    Zyvyn GBAtemp Advanced Maniac

    Member
    8
    Aug 9, 2017
    United States
    dont think its that simple
     
    Centergaming and Insighted like this.
  10. uyjulian

    uyjulian Homebrewer

    Member
    9
    Nov 26, 2012
    United States
    United States
    Horizon OS doesn't use POSIX API so porting chromium would be a pain.

    Chromium already works great on Switch Linux.
     
  11. ANTONIOPS

    ANTONIOPS GBAtemp Regular

    Member
    5
    Jan 15, 2016
    Spain
  12. stewacide

    stewacide GBAtemp Regular

    Member
    5
    Jun 22, 2018
    Canada
    There's already a renderer in the Switch firmware, used when you sign into social media and public wifi. Seems fully-featured:

    Someone just needs to make a more convenient front-end. No need to re-invent the wheel.
     
    parrotgeek1 likes this.
  13. filfat

    filfat Musician, Developer & Entrepreneur

    Member
    9
    GBAtemp Patron
    filfat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 24, 2012
    Don't try to make your own webbrowser.
    Gumbo, litehtml etc are perfectly well-suited for simple UIs.
    I don't think you really understand how large of a task you would be taking on and what a total nightmare it would be.

    Afaik there are ways to dynamically link the built-in webkit browser,
    I personally haven't had time to look into it yet; so if you do make sure to share what you learn.

    TL;DR: Don't try to make your own browser, please.
     
    ShonenJump and GizmoTheGreen like this.
  14. sirAnger

    sirAnger GBAtemp Fan

    Member
    5
    Dec 4, 2002
    United States
    Michigan
    Where would we be if not for people trying things? @XorTroll, go for it. If it sucks, nobody loses anything. If it's awesome then we all win.
     
    Insighted likes this.
  15. XorTroll
    OP

    XorTroll NSZ is only piracy

    pip Developer
    12
    Dec 28, 2017
    Spain
    Nowhere
    As I said I'm just trying to do it, it's not a project which I plan definitely to release, I'll do what I can. As @sirAnger said, we won't lose anything if I'm not able to carry on with such a big project.
    Btw I'm not asking if I should start this project on this thread, I made it to inform people about the project I plan to develop, because I think many people would enjoy this kind of projects.
     
    Last edited by XorTroll, Jul 6, 2018
  16. Red1Reaper

    Red1Reaper Asperger Dude

    Member
    5
    GBAtemp Patron
    Red1Reaper is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Feb 5, 2017
    Spain
    Valencia, Rafelbuñol
    Whit this would be posible to load html5 js games? like the ones made on rpg maker mv?
     
    Shrike likes this.
  17. XorTroll
    OP

    XorTroll NSZ is only piracy

    pip Developer
    12
    Dec 28, 2017
    Spain
    Nowhere
    As I said I don't even know how I will manage to do this, so I have no idea about what I'll be able to parse or handle.
    Now I'm thinking about porting librocket (https://github.com/libRocket/libRocket), as it looks good.
     
  18. filfat

    filfat Musician, Developer & Entrepreneur

    Member
    9
    GBAtemp Patron
    filfat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 24, 2012
    @XorTroll

    I have taken a quick look at doing something similar https://github.com/filfat/SimpleWebNX/
    but I still think that you should just use the web applet as soon as that's possible.

    (This would mostly be a hobby project to better understand how a browser handles the DOM)

    [​IMG]
     
    Last edited by filfat, Jan 9, 2019
    lordelan likes this.
  19. Mr. Wizard

    Mr. Wizard Ending the spread of bullshit one thread at a time

    Member
    8
    Mar 20, 2015
    Canada
    E8 lattice
  20. Shrike

    Shrike GBAtemp Regular

    Member
    5
    Mar 10, 2018
    Germany
    THIS would be sooooo great! <3

    BTW: There is a official RPGMaker MV planed for Nintendo Switch (&PS4, &XBOXone), which will come out in 2019.
    You can already preorder it for $59.99 ^___^

    Trailer:

    But I guess this version will not be able to play the games made on the PC version (or be able to run all those great JS Plugins written by the community..)
    But well .. we will see .. :P
     
    Last edited by Shrike, Aug 13, 2018
Quick Reply
Draft saved Draft deleted
Loading...