Skip to content

[Bug] When using Firefox as local file viewer and tabs from outside managed, TST prepends "about:blank?" to URL and breaks viewing #3410

Closed
@raunn

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

  1. Start Firefox with clean profile.
  2. Install TST.
  3. Set system to open PDF files with Firefox.
  4. Open Firefox and start a new tab in any container.
  5. 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

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