captnfab / FireTitle

A firefox extension allowing customisation of windows' title
25 stars 9 forks source link

No renaming when Firefox is restarted with a local HTML file as the active tab #46

Open jpfleury opened 4 years ago

jpfleury commented 4 years ago

Steps to reproduce the bug:

  1. Rename the window with the motif n.
  2. Open a local HTML file (file:///home/...).
  3. Restart Firefox.

Actual result: when the Firefox window reopens with the local HTML file as the active tab, the window is not renamed by Crappy Firetitle. The workaround is to refresh the tab, then the renaming is working.

Expected result: to have the window renamed right after Firefox restarted without manual refresh.

More info: About my workflow: I have several Firefox windows, each containing tens of tabs, including several local HTML files. Say I have 10 windows, so 10 "active" tabs (one per window). Say there are 6 active tabs that are local HTML files. It means that if I close Firefox, the next time I open it, there will be only 4 windows that are successfully renamed, and I'll have to manually refresh the other 6 local active tabs to have all my Firefox windows renamed.

My config: Crappy Firetitle 0.1.12 on Firefox 69.0 and Xubuntu 19.04.

Pictor13 commented 1 year ago

Probably is the same issue as with PDF files, I think there are WebExtension API restrictions on accessing local files.

Maybe the extension might take care of anyway solving the problem when switching to a new tab, if it's still possible to retain the title.