ttalvitie / browservice

Browservice: Browse the modern web on historical browsers
MIT License
1.11k stars 32 forks source link

Issues with Safari (both mobile and desktop) #112

Open Dani-1-2 opened 10 months ago

Dani-1-2 commented 10 months ago

Hello, I am using Safari 17.1 on Mac and Safari on iOS 10. I have noticed that when I enter a session, I have to refresh the webpage before the instance is loaded. Otherwise the webpage (including the interface) does not at all. When I look in the logs, it has started a new CEF browser, but nothing happens on the client until I refresh the page. This issue does not happen on Firefox. Any way to solve this?

ttalvitie commented 9 months ago

I am assuming that "entering session" means when you point the client browser to the Browservice HTTP address (and this should happen when the Browservice server is already running). I don't know what's happening here, but I guess this could be caused by the initialization sequence where we do some redirects to make the back/forward buttons work. When you experience the problem, what is the URL in the client browser address field? Does it have e.g. prev/ or next/ in the end?

Dani-1-2 commented 9 months ago

I am assuming that "entering session" means when you point the client browser to the Browservice HTTP address (and this should happen when the Browservice server is already running). I don't know what's happening here, but I guess this could be caused by the initialization sequence where we do some redirects to make the back/forward buttons work. When you experience the problem, what is the URL in the client browser address field? Does it have e.g. prev/ or next/ in the end?

It happens when I go to the normal url, as well as the /goto url.

ttalvitie commented 9 months ago

Yes, but what is the URL in the field after you have opened the Browservice page (after possible redirections)? I'm trying to see whether it gets stuck in some of the redirections.

Dani-1-2 commented 9 months ago

Yes, but what is the URL in the field after you have opened the Browservice page (after possible redirections)? I'm trying to see whether it gets stuck in some of the redirections.

It happens even before I enter anything in the field. It happens when I go to the browservice page without going to any address.

ttalvitie commented 9 months ago

I'm asking about the client browser address field, not the Browservice address field (which you presumably don't see). To see the Browservice page, you use the client browser address field to go to some address like http://192.168.1.101:8080/ (if the server is hosted on 192.168.1.101), and I'm asking whether that address changes to something else due to redirects. A screenshot of the case where this issue occurs would contain this information.

Dani-1-2 commented 9 months ago

@ttalvitie

https://github.com/ttalvitie/browservice/assets/149429107/dc070c69-3ae0-4209-a592-33b3d9e047ad

Here is a screen recording of the issue. The logs of browservice: INFO @ retrojsvice.so src/window_manager.cpp:317 -- New window requested by user INFO @ src/server.cpp:50 -- Got request for new window from vice plugin INFO @ src/window.cpp:566 -- Creating window 3 INFO @ retrojsvice.so src/window_manager.cpp:328 -- Creating window 3 INFO @ src/window.cpp:190 -- CEF browser for window 3 created

ttalvitie commented 8 months ago

Ok, so it seems that the first redirect happens but then it gets stuck. This may be due to the client being somehow unhappy with the long chain of redirects we need to do to set up the client back/forward button forwarding. Could you try whether this happens with the newest version Browservice v0.9.9.0 with the new command line option --vice-opt-navigation-forwarding=disabled? This disables the redirects that might be causing the issue.

Dani-1-2 commented 8 months ago

@ttalvitie Seems to work now. I have another issue, but this time it is about running the server (completely separate from this), should I create another issue?