Nighttab: Icons have stopped working (Firefox V68.0)

Created on 9 Jul 2019  路  10Comments  路  Source: zombieFox/nightTab

Firefox Version : 68.0
nightTab Version : 3.30.6

Icons have stopped working after the most recent Firefox update.

Icons were working on previous Firefox versions & still work if I roll back to an older version of Firefox.

Most helpful comment

  • Icon issue was related to loading nightTab locally and can't be resolved as this is a browser security restriction.
  • Selecting a local file as a background is now live in v3.61.0 on Chrome and Firefox extension.

Closing this issue ticket.

All 10 comments

Thanks for the feedback and alerting me to this issue. I've ran some tests using the following conditions:

  • MacOS 10.14.5
  • Firefox 68.0

And I can not replicate this issue. Icons and fonts are loading correctly.

It looks like you may be using Windows 10(?), unfortunately I don't have access to a Windows computer so can't investigate.

Can you please open the developer tools. From there make sure you are looking at the Console tab. Can you see any errors or warnings?
Thanks for helping.

There's 14 warnings, 1 per file loaded from the fonts directory. They all go like this.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Firefox%20Homepage/src/fonts/fjalla-one/fjalla-one-regular.ttf. (Reason: CORS request not http).

Icons load fine when I load NightTab from the extension (I used a separate profile in FF to check).

Just so I am clear, these errors only appear/icons and fonts don't load when using nightTab locally from a file and not as an installed add on?

Yes, that's correct. Maybe @Munkenmo can confirm if they're also loading from a file.
For the record, I'm on

  • Windows 10 1809
  • Firefox Version 68.0
  • nightTab Version 3.30.6

The warnings link to this page https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSRequestNotHttp

Can confirm I also have a manual installation, not the add-on.

Edit, yes, I use Windows 10.

My errors are :

```
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Documents/NightTab/fonts/fa/fa-brands-400.woff2. (Reason: CORS request not http).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Documents/NightTab/fonts/fa/fa-brands-400.woff. (Reason: CORS request not http).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Documents/NightTab/fonts/fa/fa-brands-400.ttf. (Reason: CORS request not http).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Documents/NightTab/fonts/fa/fa-solid-900.woff2. (Reason: CORS request not http).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Documents/NightTab/fonts/fa/fa-solid-900.woff. (Reason: CORS request not http).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Users/Documents/NightTab/fonts/fa/fa-solid-900.ttf. (Reason: CORS request not http).

Understood. So this is a security feature used by Firefox (and maybe other browsers) which prevents loading of certain files when run locally. As nightTab grows in complexity some features might only be available when installed as an addon/extension.

My advice would be to install nightTab through the web-stores:
Chrome Extension
Firefox Add On

You should be able to export your data using the built in JSON export controls in the menu. And then reload them when the addon/extension is installed.

I don't mind swapping over to the add on, I'd only stuck with manual install out of habit.

It appears that the background picture now has to be loaded from a url? I've tried loading my old background :

file:///C:/Users/Documents/NightTab/background/Background.png

and it seems nothing happens at all, not even an error in the dev console. Is local hosting the background image still possible?

Yes that is correct. Local images became difficult or impossible due to Extension/Add On security restrictions. So I removed the feature.

As it happens I've been working on an alternative solution (still a WIP). Loading a local file and setting it as a Base64 encoding background. It's still in the works but will be done in a few days.

I'll aim to release an update in a week or so. Hopefully after the white flash issue is resolved too.

Awesome, I'll keep an eye out for the next release.

Thanks for all your work on this, the progress has been amazing.

  • Icon issue was related to loading nightTab locally and can't be resolved as this is a browser security restriction.
  • Selecting a local file as a background is now live in v3.61.0 on Chrome and Firefox extension.

Closing this issue ticket.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matfantinel picture matfantinel  路  3Comments

Jungack picture Jungack  路  5Comments

spikecodes picture spikecodes  路  3Comments

OofFan picture OofFan  路  5Comments

smaragdus picture smaragdus  路  4Comments