# \[infinite loop around text selection\] Not possible quote text with emoticon in Firefox 57

**URL:** <https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265>\
**Category:** Product Support\
**Created:** [November 17, 2017, 1:39pm UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265 "2017-11-17T13:39:30Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [November 20, 2017, 12:17am UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/10 "2017-11-20T00:17:17Z")

</div>

OK, I reproduced the issue on Firefox 57 and fixed per:

[https://github.com/discourse/discourse/commit/ff1ce175fc2307323f934da48288eba7d9a667f8](https://github.com/discourse/discourse/commit/ff1ce175fc2307323f934da48288eba7d9a667f8)

What was happening is that sometimes our code was triggering a HARD infinite loop around text selection, where we were constantly re-selecting the same text.

This caused general unreliability on multiple platforms over the years and is part of the reason we debounce calls to the selection changed method.

cc @zogstrip

---

_[View the full topic](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265)._
