fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.33k stars 99 forks source link

Gitlab says the browser is out of date (Cloudflare) #763

Closed mihalyr closed 3 months ago

mihalyr commented 4 months ago

Steps to reproduce

Go to https://gitlab.com/users/sign_in

Expected behaviour

The page loads

Actual behaviour

image

When I click on "More information" it crashes...

image

And also just going to https://gitlab.com crashes

image

mihalyr commented 4 months ago

I fixed the Webview Crashed issue, it was a missing dependency

I installed the package with dnf install vimb but it seems it didn't install the required libglvnd-gles library (GLES support for libglvnd).

This fixed opening https://about.gitlab.com and also fixed opening the "More information" link now which shows:

image

So it might not be a bug in the browser, but Cloudflare blocking browsers they don't support...

mihalyr commented 4 months ago

I still see the following when I try to open the sign in page:

(vimb:240265): Gdk-CRITICAL **: 14:31:58.102: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

I'm using Wayland here, but I do have Xwayland.

dinkocar commented 3 months ago

You have to add GDK_BACKEND=x11 if you want to use Xwayland like this

command line: GDK_BACKEND=x11 vimb

.desktop file: env GDK_BACKEND=x11 vimb %U

mihalyr commented 3 months ago

I tried that but still didn't work. Setting GDK_BACKEND=x11 does get rid of that Gdk-CRITICAL warning from the logs, but the website still won't work. It seems the two things aren't related.

image

Here is the same in qutebrowser

image

cdlscpmv commented 3 months ago

What version of webkit2gtk are you using? The page works fine for me with webkit2gtk-2.42.5.

dinkocar commented 3 months ago

Also try setting user agent like this (in config file): set user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

mihalyr commented 3 months ago

What version of webkit2gtk are you using? The page works fine for me with webkit2gtk-2.42.5.

It seems, that I have the same version as you do.

(fedora-toolbox-39) ➜  ~ rpm -qa | grep -i webkit
webkit2gtk4.0-2.42.5-1.fc39.x86_64

Also try setting user agent like this (in config file): set user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

@dinkocar thank you! this was it. should've thought about this before

This is working now:

GDK_BACKEND=x11 vimb \
    --cmd 'set user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15' \
    https://gitlab.com/users/sign_in

Thanks everyone!