Description
Summary
When refreshing a thumbnail, you may want to do an explicit permissions check and tell the user they need to grant permission to "Access data for all websites". Firefox's new update / permissions flow for add-ons gave me no indication that I needed to grant new permissions for thumbnail refresh to work, so I had no idea why thumbnails were suddenly failing to refresh without digging into the dev console etc.
Steps I Followed
- Auto-update to the latest version of YASD
- Open YASD in a new-tab page
- Right-click and choose "Refresh All Thumbnails..."
- Notice all the thumbnails disappear and nothing else happens
- Get very confused because all my thumbnails disappeared
- Investigate what's happening in Firefox's devtools as explained below
- Notice the little blue dot under the "add-ons" icon in my toolbar
- Click the blue dot and notice that YASD needs more permissions
- Grant those permissions
- Notice everything works now
Details
- yet another speed dial version: 3.7.6
- Firefox version: Mac Nightly - 140.0a1 (2025-04-29) (aarch64)
In the devtools console for the background page, I see that all requests seem to be failing because of CORS. For example, trying to fetch a thumbnail for ycombinator seems to fail with:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://news.ycombinator.com/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 405.
Here's an example failed request (sorry this is a screenshot; copy/paste wasn't cooperating):

After a little digging, I determined this was because the addon didn't have the "Access data for all websites" permission it requested after the latest update, as explained above. Everything worked fine after that.
(Also, from one add-on developer to another: Thanks for making YASD, and thanks for making it open source. I've found it super useful and I'm glad it exists. :) )