Description
Abstract
When using Firefox as a local file viewer (e.g. for PDFs) and TST is set to manage new tabs from outside Firefox, the URL will be modified after the management event, and "about:blank?" will be prepended. This breaks viewing, and a blank page is shown.
For example, if the user has their system set to open PDF with Firefox, and then opens a PDF in the system, normally (unmanaged) a new tab will appear with a URL like "file:///C:/Users/Path/To/File.pdf" . If TST is installed and set to manage those new tabs (which is the default setting) then the tab will open correctly and then get moved immediately to the managed tree location and container, and the URL will be changed to "about:blank?file:///C:/Users/Path/To/File.pdf" and it will fail to display the file. The URL must be manually edited in the resulting tab to remove the prepend before the file can be viewed.
Steps to reproduce
- Start Firefox with clean profile.
- Install TST.
- Set system to open PDF files with Firefox.
- Open Firefox and start a new tab in any container.
- Open a PDF file from the system filesystem (e.g. by double-clicking on the file in Windows File Explorer )
To demonstrate non-managed behavior, set:
New Tabs Not From Existing Tabs -> Non-Blank New Tabs -> New Tab From Outside Firefox
to
"Open as (no control)"
and repeat steps 4-5.
Expected result
Tab is opened in correct tree position and container, URL remains "file:///...", and Firefox displays the file correctly
Actual result
Tab is opened in correct tree position and container, but URL is prepended with "about:blank?" and Firefox cannot display the file
Environment
- Platform (OS): Windows 11
- Version of Firefox: 119.0.1
- Version (or revision) of Tree Style Tab: 3.9.18
Activity