SerenityOS / ladybird

The Ladybird web browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pressing backwards and forwards buttons on the mouse causes as assertion failure

Lubrsi opened this issue · comments

When I press back or forward on my mouse, Ladybird crashes with:

ladybird: /home/lukew/Desktop/serenity-project/serenity/Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp:40: i16 Web::UIEvents::determine_button(unsigned int): Assertion `false' failed

We are probably returning 0 here:
https://github.com/awesomekling/ladybird/blob/9e3a1f47d484cee6f23c4dae6c51750af155a8fc/WebView.cpp#L379-L388

Can you try this branch, and see if it works for you? If it does, I will make a PR.

https://github.com/elcuco/ladybird/tree/27-mouse-buttons-crash

Direct link to the fix: elcuco@e6c4463