piroor / treestyletab

Tree Style Tab, Show tabs like a tree.
http://piro.sakura.ne.jp/xul/treestyletab/
Other
3.48k stars 279 forks source link

[Bug] "Allow to open a new tab with the URL in the clipboard, by middle click on the "New Tab" button" not working #3569

Closed karasuhebi closed 3 months ago

karasuhebi commented 4 months ago

Abstract

The option "Allow to open a new tab with the URL in the clipboard, by middle click on the "New Tab" button" is not working.

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Give TST the permission to read your clipboard
  4. Enable dom.events.asyncClipboard.clipboardItem
  5. Copy a URL into your clipboard
  6. Middle click the + button at the bottom of TST
  7. Nothing happens.

Expected result

The URL in my clipboard should open.

Actual result

Nothing happens

Environment

piroor commented 3 months ago

Did you turn these checkboxes on? image "Open new tab with URL in the clipboard" is checked by default only on Linux (because "browser.tabs.searchclopboard.middleclick" is also active by default only on Linux) and you need to activate it manually on other platforms.

karasuhebi commented 3 months ago

I did, yeah. Still doesn't work. :(

piroor commented 3 months ago

I got what happened. The checkbox become checked even if its internal option is still disabled, when you grant the clipboard permission by the "Permissions" tab provided by Firefox. You need to uncheck the "Open new tab with URL in the clipboard" checkbox and check it again for now, to activate the internal option.

I've pushed a change 3d9d79b to fix this "mismatched checkbox state" bug.

karasuhebi commented 3 months ago

That worked! Thanks!