Treestyletab: Wrong tab name after restoring from "Restore Session" dialog

Created on 19 May 2020  ·  3Comments  ·  Source: piroor/treestyletab

Wrong tab name after restoring from "Restore Session" dialog

Steps to reproduce

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Make sure to open two websites, e.g. https://piro.sakura.ne.jp/xul/xpi/nightly/ and https://github.com/piroor/treestyletab (I could not reproduce it with only one page)
  4. kill Firefox by sending SIGTERM to the main process
  5. start again -> this should restore the tabs automatically & successfully
  6. select each of the tabs at least once to make sure they are loaded
  7. kill Firefox again by sending SIGTERM to the main process
  8. start again -> this should show the "Restore Session" dialog
  9. Push the "Restore Session" button

This will look like this:
image

Expected result

Tab title displayed in tree updates to be the same as the one in the tab bar on top.

Actual result

The tab title stays "Restore Session" even when navigating to a different page

Environment

bug of Firefox itself

Most helpful comment

1640112 - Updated "title" is not notified via "tabs.onUpdated" listeners for a tab recycled by "about:sessionrestore"
https://bugzilla.mozilla.org/show_bug.cgi?id=1640112

I've filed a bug.

All 3 comments

I can confirm the same behavior with FF 76.0.1 on Linux. If the tab you left it on when closing is a pinned tab, it will also appear to be moved to the regular tab list in the tree, but retains the behavior of a pinned tab and shows as such in the regular tab bar.

I also would note that when properly closing the browser and doing a restore from history->restore previous session, it works fine, and only seems to be an issue when recovering from an unexpected closing.

I've confirmed, but it looks a bug of Firefox itself. Indeed same problem happens on other tab management addons (e.g. Tab Center Redux). Firefox should notify the new title of the tab to addons via tabs.onUpdated listeners but no change about title is notified about the recycled tab.

1640112 - Updated "title" is not notified via "tabs.onUpdated" listeners for a tab recycled by "about:sessionrestore"
https://bugzilla.mozilla.org/show_bug.cgi?id=1640112

I've filed a bug.

Was this page helpful?
0 / 5 - 0 ratings