Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open local file from dial #36

Closed
maharvey opened this issue Mar 1, 2021 · 1 comment
Closed

Cannot open local file from dial #36

maharvey opened this issue Mar 1, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@maharvey
Copy link

maharvey commented Mar 1, 2021

Describe the bug
I have HTML documentation on my local machine that I want to open with a dial. I can paste the URL into the browser and it opens file, but if I create a dial and click on it nothing happens, it is as if the dials is non-clickable. If I right click on the dial and copy the URL and paste it manually into the browser, it opens.

Steps To Reproduce

  1. Create or copy an HTML file to your local filesystem. Verify you can open it in a browser.
  2. Create a dial with a link to the HTML file. (URL will be "file:///path/to/file.html")
  3. See that the dial is non-responsive and doesn't open the page.

Expected behavior
Dial should open the link.

Device info:

  • operating system: Linux (Manjaro, up to date)
  • Browser and version: Firefox 86.0
  • GroupSpeedDial version: 15.5

Additional info
Nothing else.

@maharvey maharvey added the bug Something isn't working label Mar 1, 2021
@fastaddons
Copy link
Collaborator

fastaddons commented Mar 1, 2021

Hello,
Access to local .html files is now (almost) completely blocked by Firefox internal security for all add-ons. You can create such links in my speed dial, but Firefox won't allow you to click on them.
There was a discussion about it here:
https://discourse.mozilla.org/t/opening-links-to-local-files-file/16449
and some official text here:
https://wiki.mozilla.org/WebExtensions/Filesystem

Situation in Chrome browser is very similar but Chrome added option (checkbox) to enable access to local files for specific add-on on their "chrome://extensions" page.

One solution is to use local server to serve your local HTML files.

But there is a workaround for Firefox!!!

All you have to do is add these 3 string keys to your "about:config" page:

capability.policy.policynames = "localfilelinks"
capability.policy.localfilelinks.checkloaduri.enabled = "allAccess"
capability.policy.localfilelinks.sites = "moz-extension://UNIQUE_ID_OF_MY_ADDON_ON_YOUR_PC"

The last value should be my addon link - this is however different on every PC. You can get the correct link from the Options page / first tab / first line (there is button to copy homepage link).

Screenshot 2021-03-19 14 08 06

For even more info, see this page:
https://superuser.com/questions/1513156/how-do-i-instruct-firefox-to-allow-me-to-open-file-urls-on-a-localhost-serve
And then much more info here:
http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant