# \[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:** Support
**Created:** [17 november 2017 om 13:39 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:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![user\_checker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user_checker/32/82472_2.png) [@user\_checker](https://meta.discourse.org/u/user_checker)
#### Post date: [17 november 2017 om 13:39 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/1 "2017-11-17T13:39:31Z")

</div>

Try quote 😉 this text on Firefox 57 (on Windows).

* * *

Tested on Windows 7 (Pro x64)with Firefox 57 (x64). I try used [clean profile firefox](http://mzl.la/1BAQGnB) and [safe mode Firefox](http://mzl.la/1xKrE7R).

One of the few tries to do it copy text to answer textarea.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [17 november 2017 om 13:42 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/2 "2017-11-17T13:42:37Z")

</div>

> [@user\_checker](#):
>
> Try quote 😉 this text on Firefox 57 (on Windows).

FTR, it works just fine on latest Windows 10 with Firefox 57.

Also, what’s happening when you try to quote text on Windows 7? Nothing? An error?

---

<div class="post-metadata">

### Author: ![user\_checker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user_checker/32/82472_2.png) [@user\_checker](https://meta.discourse.org/u/user_checker)
#### Post date: [17 november 2017 om 13:44 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/3 "2017-11-17T13:44:05Z")

</div>

Tested on this topic [Migrate a phpBB3 forum to Discourse](https://meta.discourse.org/t/importing-from-phpbb3/30810) - few tries no open answer/reply with quote.

* * *

No see any visible error, I can not use webdeveloper tools.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [17 november 2017 om 14:02 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/4 "2017-11-17T14:02:38Z")

</div>

Hmm, something has changed with FF 57. **Most** of the time, when I double click a line to have it highlighted, the quote button won’t show…

---

<div class="post-metadata">

### Author: ![user\_checker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/user_checker/32/82472_2.png) [@user\_checker](https://meta.discourse.org/u/user_checker)
#### Post date: [17 november 2017 om 14:10 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/5 "2017-11-17T14:10:34Z")

</div>

> [@zogstrip](#):
>
> when I double click a line to have it highlighted

With long paragraph (2+ lines) also won’t show button quote.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [17 november 2017 om 14:21 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/6 "2017-11-17T14:21:30Z")

</div>

Interesting. On my computer the quote button shows up every time, but clicking it doesn’t work most of the time.

Looks like the quote button doesn’t work (most of the time), when double click was used to select a paragraph. It seems to work in all other cases…

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [17 november 2017 om 15:34 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/7 "2017-11-17T15:34:47Z")

</div>

> [@gerhard](#):
>
> double

Double click + quote works for me (to highlight one word) , triple click + quote (to highlight a paragraph) does not work ([before the Quantum update](https://meta.discourse.org/t/quote-not-working-if-i-get-the-whole-sentences-again-with-triple-click-on-firefox/72066)). I see the quote button in both cases, simply with the triple click nothing happens when I click “quote”.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [17 november 2017 om 22:13 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/8 "2017-11-17T22:13:49Z")

</div>

Works fine for me in Firefox latest..

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/8/880a629416490618de3b3a2aff6ec9490e2e3cf2.png)

---

<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: [20 november 2017 om 00:17 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

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [20 november 2017 om 06:45 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/11 "2017-11-20T06:45:16Z")

</div>

> [@zogstrip](#):
>
> Try quote 😉 this text on Firefox 57 (on Windows).

Also Works fine on FF57 on Fedora ! 😉

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 november 2017 om 02:00 UTC](https://meta.discourse.org/t/infinite-loop-around-text-selection-not-possible-quote-text-with-emoticon-in-firefox-57/74265/12 "2017-11-21T02:00:43Z")

</div>

This topic was automatically closed after 19 hours. New replies are no longer allowed.
