Infinite loop when mentioning in IE11

AI-generated summary

A bug causing an infinite loop when mentioning is present in all browsers, including Chrome and Safari, in Discourse version 2.3.3. Nicolas_Torres found a patch that fixes the issue, but it’s only available in later versions. Bas requests a backport of the fix to version 2.3.8, as upgrading to 2.4.x is not feasible due to a bespoke plugin setup. However, justin advises that backports for version 2.3 are unlikely, and applying the individual commit directly is the best option, although its consistency is not guaranteed. Note that Discourse ended support for Internet Explorer 11 (IE11) on June 1, 2020.

Hello everyone,

We have a bug in all browsers regarding mentioning.
It gets stuck in an infinite loop and the tab freezes completely.

We are in version 2.3.3 of discourse, however this patch FIX: infinite loop when mentioning in IE11 · discourse/discourse@1e4f0ac · GitHub
seems to fix the problem.

Is there a way that you can backport the fix to older versions as well?

Thank you,

(Nicolas works with me)

To clarify: we’ve tested this on 2.3.8 without plugins as well as our 2.3.3 production env. and the issue is reproducible in Chrome and Safari, it actually crashes the tab in both.

A patch to 2.3.8 would be very nice for us, at the moment we don’t have the budget available to upgrade to 2.4.x (we’re running quite a bespoke plugin setup; so small things tend to break a bit when upgrading major versions).

I’m afraid there’s probably nothing we can do for you since it’s been fixed in core already in later versions.

Your best bet is to apply the individual commit directly but there’s no guarantee of it working consistently.

Discourse is ending support for Internet Explorer 11 (IE11) on June 1, 2020 so that’s something to keep in mind too.

We’re not patching this for IE11, but for Chrome and Safari.

But we’ll try to apply the individual patch and try to run a frankenversion :slight_smile:

Yeah 2.3 backports are not on the cards, we only ever backport to the stable or beta branches. stable is at 2.4.

Ok, clear. Thanks anyway! :slight_smile: