-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Sandbox does not work on mobile phone #11
Comments
Safari issue it seems, I can also reproduce. Probably just missing one of the APIs I use. I’ll hook up a debugger and figure it out |
On an iPhone, I now only get "Loading..." as description for the query button. No error is indicated. |
Hmm, that's not good. What version of iOS are you using? I'm on a slightly older one. |
I cannot open the image you posted, I get: "Did Not Connect: Potential Security Issue". I tried it with iOS 14.4.1 on an iPhone SE. |
That's odd, the image is nothing particularly special, just uploaded using GitHub's drag and drop 🤔
If those look OK (should be source code and a binary download) then it must be an issue with the JS APIs I'm using. |
Ah yeah, those URLs I posted are the ones the playground uses internally. I don't think they are related to the Github image issue, but the Github images not working points to a potential greater problem I think. Like maybe your root certificates are different than mine. Are you using Firefox on iOS, btw? Maybe it's a Firefox thing. I'll give it a shot. |
I can view the png file with iOS, on an iPhone. However, on iOS (using Safari), I only get "Loading..." where the Query button should be, and I cannot post any query. On OSX (I am using 10.11.3, so the TLS certificates may be outdated), I cannot view the png file you linked to. And with the latest changes, I now only get "Loading..." on OSX too (using Firefox). In summary, I currently have no device in reach where the playground works. Note that until a few hours ago, I could post queries using this OSX version. |
I have an a Mac with an old version of OS X, let me see if I can reproduce. Sorry about the breakage. |
I think I fixed the thing I probably broke a few hours ago. It was an issue with the URL parameters breaking the server-side part of it. I tried running it on OS X 10.14.6, Firefox 105 and it seems OK. Unfortunately that's all I have to test with. I also tried reducing the usage of new JS stuff like toplevel await so maybe that will help. Please try again 🙏 |
With Firefox on OSX, I now get the following error in a message box: ReferenceError: FinalizationRegistry is not defined The web console states: Uncaught (in promise) ReferenceError: FinalizationRegistry is not defined trealla 0.9.1/es2021/trealla.js:2 init https://php.energy/trealla.html:64 |
On iOS, I only see "Loading..." for the query button, and no error message. |
Aha, progress! I added a check for FinalizationRegistry support in the library and a workaround. It looks like you are one version behind its support. For mobile, are you on a slow connection (like 3G)? It could take a minute or so to load. I believe it's around ~750KB transferred at the moment. It is possible to slim it down further with some effort. For comparison, SWI sits around 8MB and Ciao 15MB on their sites. Tau is something like 100KB. |
On OSX, I still get the error message: |
Whoops, I made a mistake on the check. Published a fix. Please try again. |
Thank you, on OSX it works now. But the issue on iOS persists: I only get "Loading...", also after many seconds, certainly enough to download 1 MB (over LTE). |
Glad to hear at least one part was fixed. Thanks for bearing with me. |
I put up a new test build on the demo site. It uses esbuild with the target |
Thank you for these changes. On iOS, I tried it with Firefox 37 (this is from last year) and Safari using (still) iOS 14.4.1, and I only get "Loading..." on both browsers. I think it would be nice to at least display what is going wrong or what is needed, for example to detect when a browser cannot run the page. |
I got a hold of Safari 14 and figured it out (I think). Looks like wasmer-js uses it for the virtual filesystem. I would like to probably switch away from wasmer-js to something more lightweight but it might involve reimplementing all the WASI syscalls. |
When I use Safari on iPhone to visit the link shown in #4 (comment), I see (as expected) the intended query.
However, when I post the query, the browser is unexpectedly redirected to
https://php.energy/trealla.html?
instead of showing the answer. What could be the reason for this?The text was updated successfully, but these errors were encountered: