Treestyletab: Mouse click event when holding pressed and shifted from website to TST

Created on 27 Jul 2019  路  9Comments  路  Source: piroor/treestyletab

Sorry for the title, I couldn't find a better name for it.

Short description + Steps to reproduce

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.

Expected result

No mouse click event.

Actual result

Mouse click event.

Environment

  • Platform (OS): Linux
  • Version of Firefox: firefox nightly 70.0a1 (2019-07-16)
  • Version (or revision) of Tree Style Tab: 3.1.5
bug of Firefox itself

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.

All 9 comments

How can I test this? I couldn't reproduce this problem with following cases:

  • Mousedown on a link, drag it to the sidebar, drop it to the sidebar. (Then a new tab is opened by TST, and when I switch back to the original tab there looks to be no problem.)
  • Mousedown on a selected text, drag it to sidebar, drop it to the sidebar. (Then a search result is opened by TST and when I switch back to the original tab there looks to be no problem.)
  • 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.

Steps to reproduce

  1. Assuming TST sidebar is on the left.
  2. Move cursor to between B and C in this text: ABCD.
  3. Click and hold left mouse button. Drag horizontally to the left to TST sidebar. At least AB is highlighted.
  4. Release left mouse button on TST sidebar.
  5. Move cursor back (without clicking anything) to ABCD but stop after D.

Actual result:

Only CD is highlighted because text selection is not completed/confirmed.
Clicking anywhere will cancel the text selection.

Expected result:

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.

Was this page helpful?
0 / 5 - 0 ratings