Add option to handle file links - #22
Conversation
|
Hiya, thank you for describing the issue and opening a PR! I'm sorry it took so long to notice this, the email must have gotten lost it among the many work-related notifications. I wasn't actually aware of this behaviour related to the Regarding a solution, applying the file path to a configurable hostname could work, however I worry that this may be too brittle as it relies on having something serving from that hostname, and with the same root location (paths may not agree). Another option we could look at (and I haven't tried this yet) is to use the extension itself as a host for tabs that have file schemes: when saving/restoring, if we encounter a tab with a protected scheme like |
Hi there, thanks for making this extension!
I noticed that you cannot restore windows that have
file://links in any of the tabs.After looking through the code it seems that the browser (I'm using firefox) blocks the loading of
file://linkswhen using the
browser.tabsorbrowser.windowsAPIs.As a solution to this, I added a little code that would modify URL of any
file://link and instead redirect it to aprogram running locally that can then handle and display the file.
I realize this is not the best approach (especially hardcoding the port) so I was wondering if you had any ideas on how this feature could be implemented without hardcoded defaults. Maybe a field in the options page?
Thanks.