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

fix(firefox): has selector freezes in certain situations #2973

Closed
wants to merge 2 commits into from

Conversation

lubber-de
Copy link
Member

@lubber-de lubber-de commented Jan 10, 2024

Description

Firefox's implementation of the :has selector (perhaps in combination with the @supports selector) makes firefox freeze in certain situations.
After some investigation the reason are 3 of those selectors we implemented in 2.9.3.
As Firefox had officially enabled the :has feature by default starting with FF 121 it was not happening before (and perhaps no FUI user was actively enabling it in older FF versions)

As all other browsers work just fine this PR removed Firefox support for now until it's fixed by mozilla
I detected only the changed three @supports selector(:has) selectors (in combination!) to trigger the freeze. In my tests, every other existing @supports selector(:has) selectors invented in 2.9.3 were not affected so i kept them untouched in this PR

Testcase

  • Use Firefox
  • starting to type "Computer" in the input field

Keep in mind that the selectors in question do not even belong to the example code! There is no piled segment and no pointing dropdown so the selector will not even trigger.

Broken

The tab freezes.
https://jsfiddle.net/e70xjovw/8/

Fixed

https://jsfiddle.net/e70xjovw/9/

Closes

#2971

@lubber-de lubber-de added type/bug Any issue which is a bug or PR which fixes a bug lang/css Anything involving CSS state/awaiting-reviews Pull requests which are waiting for reviews browser/firefox Any issues relating to Mozilla Firefox labels Jan 10, 2024
@lubber-de lubber-de added this to the 2.9.4 milestone Jan 10, 2024
@lubber-de
Copy link
Member Author

We might wait for a (short) while as mozilla is aware of that by https://bugzilla.mozilla.org/show_bug.cgi?id=1874066
Just in case it gets fixed in firefox soon, we probably dont need this PR then

@lubber-de
Copy link
Member Author

I can confirm, the issue is fixed in latest firefox 123.a01
https://archive.mozilla.org/pub/firefox/nightly/2024/01/2024-01-20-09-39-31-mozilla-central/

@lubber-de lubber-de added state/on-hold Issues and pull requests which are on hold for any reason and removed state/awaiting-reviews Pull requests which are waiting for reviews labels Jan 21, 2024
@lubber-de
Copy link
Member Author

Firefox 123 fixed the related issue, this PR is not needed anymore

@lubber-de lubber-de closed this Feb 20, 2024
@lubber-de lubber-de removed this from the 2.9.4 milestone Feb 20, 2024
@lubber-de lubber-de removed the state/on-hold Issues and pull requests which are on hold for any reason label Feb 20, 2024
@lubber-de lubber-de deleted the firefoxBrokenHas branch February 20, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser/firefox Any issues relating to Mozilla Firefox lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant