Skip to content

[useMediaQuery] Fix crash in Firefox extension#45196

Merged
mj12albert merged 4 commits into
mui:masterfrom
Mr-Quin:fix-firefox-extension-crash
Apr 14, 2026
Merged

[useMediaQuery] Fix crash in Firefox extension#45196
mj12albert merged 4 commits into
mui:masterfrom
Mr-Quin:fix-firefox-extension-crash

Conversation

@Mr-Quin
Copy link
Copy Markdown
Contributor

@Mr-Quin Mr-Quin commented Feb 3, 2025

Fixes #44986

@mui-bot
Copy link
Copy Markdown

mui-bot commented Feb 3, 2025

Netlify deploy preview

https://deploy-preview-45196--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against a43bf4b

@mj12albert
Copy link
Copy Markdown
Member

I ran the browserstack tests and it seemed fine: https://app.circleci.com/pipelines/github/mui/material-ui/148801/workflows/a198ae8b-434b-4413-ac15-36978a7fe63f/jobs/800110

However I'm not sure how to test this, and after gone through facebook/react#16606 and many linked issues I still couldn't find a good explanation of why this works or what the actual issue is 😅

@Mr-Quin
Copy link
Copy Markdown
Contributor Author

Mr-Quin commented May 5, 2025

@mj12albert
This issue still happens, I understand the root cause is unclear, but can we merge this to resolve the issue?

@oliviertassinari oliviertassinari added the scope: system The system, the design tokens / styling foundations used across components. eg. @mui/system with MUI label Aug 17, 2025
@code-infra-dashboard
Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@mui/material 🔺+63B(+0.01%) 🔺+23B(+0.02%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 0B(0.00%) 0B(0.00%)
@mui/system 🔺+63B(+0.09%) 🔺+23B(+0.09%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Deploy preview

https://deploy-preview-45196--material-ui.netlify.app/


Check out the code infra dashboard for more information about this PR.

@mj12albert mj12albert merged commit c3197b9 into mui:master Apr 14, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hook: useMediaQuery scope: system The system, the design tokens / styling foundations used across components. eg. @mui/system with MUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useMediaQuery causes error in Firefox browser extension content script

6 participants