c-smile / sciter-js-sdk

Sciter.JS - Sciter but with QuickJS on board instead of my TIScript
BSD 3-Clause "New" or "Revised" License
1.64k stars 97 forks source link

Unable to load tiddlywiki.com #40

Open Dialga opened 3 years ago

Dialga commented 3 years ago

Attempting to load tiddlywiki.com fails to display anything.

c-smile commented 3 years ago

How do you load tiddlywiki.com exactly?

And in general, sciter.js is not a browser in the sense that it is not designed to render any arbitrary page from the wilderness of the web. It may load pages but compatibility layer is required.

I've started working on such layer here: https://github.com/c-smile/sciter-js-sdk/tree/main/samples/htmlx but that is not complete.

Idea there is that pages are loaded not into window directly but in <frame> that emulates single tab window of a browser, see:

https://github.com/c-smile/sciter-js-sdk/blob/main/samples/htmlx/webframe-basic-test.htm#L7 and https://github.com/c-smile/sciter-js-sdk/blob/main/samples/htmlx/htmlx-frame.js#L87

And about tiddlywiki in particular...

It should work directly in sciter.js window but probably some porting is required.

Dialga commented 3 years ago

Sorry what I meant to say is it fails to render tiddlywiki.com properly. I've downloaded tiddlywiki.com/index.html and opened it with /bin/linux/x64/usciter and it did not display it fully. I've just attempted to display it in a frame as you mentioned but it shows the same result. Screenshot_20210222_045304

c-smile commented 3 years ago

That is subject of porting, I need to take a look on it.