Sorry for the title, I couldn't find a better name for it.
When on a website like here on github, press the mouse (and keep it pressed), go over the TST sidebar, release the mouse, and go back to the website. The mouse still is detected as "mouse button pressed". This does not happen in the Bookmarks, History or Synced Tabs sidebars.
No mouse click event.
Mouse click event.
How can I test this? I couldn't reproduce this problem with following cases:
Mousedown on a non-selected text, move the cursor onto the sidebar (then selection range is expanded), release the mouse button. (Then a text selection operation is ended, and the selection range is not modified after I move the cursor back onto the content area.)
Could you upload any testcase or detailed steps to reproduce?
I can reproduce this with scenario 3 (selecting text) in 68.0.1 and Nightly 2019-07-28 on Windows 10, TST 3.1.5.
B and C in this text: ABCD.AB is highlighted.ABCD but stop after D.Only CD is highlighted because text selection is not completed/confirmed.
Clicking anywhere will cancel the text selection.
At least AB is highlighted (and definitely not just CD) because text selection is completed/confirmed when mouse button was released on TST sidebar.
(Edited: AB may not be highlighted due to the algorithm of selecting text after moving cursor out of the text block.... But the gist is that text selection should not be changing after releasing the mouse button.)
Last good Nightly: 2019-03-05
First bad Nightly: 2019-03-06
pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=996a48b306521112d483b3bd8bede1e4fa23d3fa&tochange=4ab143dde4dc3424cfedc74b3648fbf2e47fb7bf
Further bisection:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=bd0449584cba8f18c4c9c5666ba4b7a459d573b7&tochange=9f6dc311b7fa154eaae3def3ab38413412ab8d29
Thanks, I've confirmed the problem with your scenario. This is not a TST-side problem, but a bug of Firefox itself. I've confirmed that it happens not only on TST's sidebar but also on Sidebar+'s sidebar.
1571946 - Text selection in the content area is not canceled after mouseup on a sidebar panel provided by an add-on
https://bugzilla.mozilla.org/show_bug.cgi?id=1571946
I've filed a bug.
Sorry to ask, but is there any update on this? Any possible workaround? I've recently found TST and love it, but this FF issue is extremely irritating. Especially in scenarios like trying to navigate YouTube videos in theatre mode or highlighting text. I personally rarely close the sidebar but that's the only way of getting around the problem I've found.
Please see the bugzilla topic https://bugzilla.mozilla.org/show_bug.cgi?id=1571946 about the progress of the bug itself.
Looks to be fixed with the commit introduced at the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1680405
The fix will be included to Firefox 86.
Firefox 86 is released and this issue is fixed. 馃槃
Firefox 86 is released and this issue is fixed. 馃槃
Can confirm, great news :) Major annoyance gone.
Most helpful comment
Looks to be fixed with the commit introduced at the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1680405
The fix will be included to Firefox 86.