Skip to content
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

LibWeb: Handle calculations without a context better #1827

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

stelar7
Copy link
Contributor

@stelar7 stelar7 commented Oct 16, 2024

We dont always have a valid context when trying to resolve a calculation, this mitigates that somewhat
I'm not sure if this is the correct fix, since we should(?) have a context at this point, but it stops it from crashing atleast

Fixes a crash on https://wpt.live/css/css-values/acos-asin-atan-atan2-computed.html after we parse the rotate property

@awesomekling
Copy link
Member

Can we have a test for what this fixes?

@stelar7
Copy link
Contributor Author

stelar7 commented Oct 16, 2024

Can we have a test for what this fixes?

Added a test

@awesomekling awesomekling merged commit 4408ea7 into LadybirdBrowser:master Oct 16, 2024
6 checks passed
@stelar7 stelar7 deleted the no-context-length-calc branch October 16, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants