Skip to content

[Bug] tab-clicked event not delivered to 'folder' tabs (since 4.0.24) #3653

Closed
@dsl101

Description

Abstract

I have a TST Extension TST Folder Expand Collapse which stopped functioning after 4.0.24 was released.

Steps to reproduce

  1. Install TST Folder Expand Collapse
  2. Create a 'folder' style tab, such as moz-extension://[TST-Extension-UUID]/resources/group-tab.html?title=Test (note these can be created by opening new tabs from pinned tabs, etc.); the TST extension id is required
  3. Click on the folder (it should expand / collapse, not activate)

Additional information

It seems this code no longer receives events from these group tabs:

async function registerToTST() {
  try {
    await browser.runtime.sendMessage(TST_ID, {
      type: 'register-self',
      name: extensionName,
      listeningTypes: [
        'ready',
        'sidebar-show',
        'tab-clicked',
        'try-move-focus-from-collapsing-tree',
      ],
      // Extra permissions to receive tab information via TST's API (works on TST 3.0.12 and later)
      permissions: [ 'tabs', 'activeTab' ],
    })
  }
  catch(e) {
    // TST is not available
  }
}

registerToTST()
browser.runtime.onMessageExternal.addListener(async (message, sender) => {

  // This code is no longer triggered when 'group' tabs are clicked on

Clicking on regular tabs does send the tab-clicked event.

Environment

  • Platform (OS): Windows
  • Version of Firefox: 132.0
  • Version (or revision) of Tree Style Tab: 4.0.24

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions