Snowflake addon in Firefox has stopped working

The snowflake plugin for Firefox has stopped working over the last couple of days when I’ve tried to enable it, for example by going to
relay.love
. It’s not just them, I’ve got that plugin on a site I control and it doesn’t connect when I browse to my own site, either. Both used to work properly.
Don’t know if something needs to be done to fix this . . ? Nothing has changed at my end that I’m aware of.

Also, Happy New Year, everybody;

Pete

1 Like

To be precise, are you talking about the add-on the the “embed on a site” version?

Because indeed, the embed doesn’t work on https://relay.love/. When you try to toggle the switch, you get an error: Cookie “snowflake-allow” has been rejected because it is foreign and does not have the “Partitioned“ attribute..
Probably has to do with third-party cookie protection.

I filed an issue: Embed doesn't work on Firefox (cookies) (#107) · Issues · The Tor Project / Anti-censorship / Pluggable Transports / Snowflake WebExtension · GitLab. Thanks!

Hi,

Thanks @WofWca for the reply.

Sorry, this is working again already. I tried to stop it getting posted while it was still pending moderator approval but was too late. So this - what I was saying - is a non-issue and I’ll mark it as solved.

I mean that if you go to a site like relay.love and try to get it to work, it (was, past tense) trying to work, ie. to connect, but failing. That was different to the way it normally is as far as I’m concerned, where it works perfectly well. (you have to set (on Firefox) privacy cookie settings to ‘standard’).

Now it works as it should again, at least in my experience on my computer on Firefox.

That is if I embed the code on my site or as relay.love have embedded it on their site then browse to that site and try to get it snowflake to work. Worked before yesterday. Didn’t work yesterday. Works again now.

NON-ISSUE any more - SOLVED.

Pete

Simple fix:

diff --git a/init-badge.js b/init-badge.js
index f2adf72..46ea55a 100644
--- a/init-badge.js
+++ b/init-badge.js
@@ -26,9 +26,9 @@ class BadgeUI extends UI {
       (...args) => messages.getMessage(...args),
       (event) => {
         if (event.target.checked) {
-          setSnowflakeCookie('1', COOKIE_LIFETIME);
+          localStorage.setItem(LOCALSTORAGE_NAME, '1');
         } else {
-          setSnowflakeCookie('', COOKIE_EXPIRE);
+          localStorage.removeItem(LOCALSTORAGE_NAME);
         }
         update();
       },
@@ -97,13 +97,7 @@ Entry point.
 */
 
 // Defaults to opt-in.
-var COOKIE_NAME = "snowflake-allow";
-var COOKIE_LIFETIME = "Thu, 01 Jan 2038 00:00:00 GMT";
-var COOKIE_EXPIRE = "Thu, 01 Jan 1970 00:00:01 GMT";
-
-function setSnowflakeCookie(val, expires) {
-  document.cookie = `${COOKIE_NAME}=${val}; path=/; expires=${expires}; secure=true; samesite=none;`;
-}
+var LOCALSTORAGE_NAME = "snowflake-allow";
 
 const defaultLang = 'en_US';
 
@@ -191,8 +185,7 @@ var
   };
 
   update = function() {
-    const cookies = Parse.cookie(document.cookie);
-    if (cookies[COOKIE_NAME] !== '1') {
+    if (localStorage.getItem(LOCALSTORAGE_NAME) !== '1') {
       ui.turnOff();
       snowflake.disable();
       log('Currently not active.');

The TLS certificate of gitlab.onionize.space has expired as well, so I can’t log in.

1 Like

I think this should still be investigated and made to work with the default privacy settings of Firefox. Should be possible.

At the very least the instructions need to be updated to mention this.

That’s what I’m trying to say (not very clearly, I admit): that it DOES work with Firefox privacy settings set to ‘standard’.
It was some peculiarity that only happened for about a day and is now solved (for me at least and I was the only one reporting a problem - so it was probably specific to me in some way).
Thanks to @WofWca and @Protium_serratum .
SOLVED : non-issue.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.