WebExtensions with cookies disabled

User Help for Mozilla Firefox
Post Reply
Floyd77
Posts: 34
Joined: November 27th, 2012, 6:07 am

WebExtensions with cookies disabled

Post by Floyd77 »

Hi everyone, I have third-party all cookies disabled and I manage my cookies manually with Cookie Monster extension (I allow them per-site).

I did not have any problem with this config until I tried to use the new Pushbullet extension, which was updated to WebExtension in the last version published yesterday. Until now, I only had to add an exception like it is explained in this comment: https://addons.mozilla.org/es/thunderbi ... ws/634332/

But with the new version it doesn't work anymore. I've tried adding an exception for the moz-extension://... URL as this user did: https://www.reddit.com/r/PushBullet/com ... n/d961fk9/

But it does not work neither. It seems Firefox disables all cookies for localStorage for WebExtensions when you disable third-party cookies, if I enable them it works well. I tried with a test site which uses localStorage (see this comment): http://www.ghacks.net/2016/10/24/the-pu ... nt-4009754

And it works good if I allow cookies for that particular site (with cookie monster and third-party cookies disabled as always) but I have no luck with WebExtensions. I will not enable third-party all cookies to use this extension so I'd like to know if I'm doing something wrong or if there's a bug.

Thanks!

EDIT: The problem happens with all cookies disabled and allowing them per-site, so I'd like to know how to allow cookies for a WebExtension.
EDIT 2: It works now, at least since Firefox 55.
Last edited by Floyd77 on June 26th, 2017, 8:59 pm, edited 2 times in total.
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: WebExtensions and third-party cookies disabled

Post by Brummelchen »

if it is a bug write to the author, we can nothing do for you here.
if you dont want to deal with 3rd-party cookies you have to deal with the problems.

#to add - most extensions are only tested with a clean profile and regular settings, some with other extension which serve same features to investigate into interferences.

good luck.
the magic number is 51 and you are probably part of it :p
Floyd77
Posts: 34
Joined: November 27th, 2012, 6:07 am

Re: WebExtensions and third-party cookies disabled

Post by Floyd77 »

I mean a Firefox bug, it happens the same thing with any other WebExtension using localStorage, like X-Notifier for example. The problem is Firefox is blocking all cookies for WebExtensions when you only want to block third-party ones using that preference from the options.

Or it could be I'm not allowing the use of cookies in the right place, that's why I ask. I'm looking for someone who knows well how WebExtensions do work with cookies/localStorage.
Brummelchen
Posts: 4480
Joined: March 19th, 2005, 10:51 am

Re: WebExtensions and third-party cookies disabled

Post by Brummelchen »

you mean this one?
It seems Firefox disables all cookies for localStorage for WebExtensions when you disable third-party cookies,
not sure but are webextension ready to go now that early?

from my experience webextensions are comparable with chrome extensions, so i think its not independant from each other, maybe:
https://bugzilla.mozilla.org/show_bug.cgi?id=1191418

or those WE load something in background which need 3rd-party cookies, example
https://bugzilla.mozilla.org/show_bug.cgi?id=1254856

i dont have those disabled but i control them either in blocking or deleting. thats the second part of my first anser.

i hope some insider from webextensions will speak up.
Floyd77
Posts: 34
Joined: November 27th, 2012, 6:07 am

Re: WebExtensions with cookies disabled

Post by Floyd77 »

I updated the OP: The problem happens with all cookies disabled and allowing them per-site so I'd like to know how to allow cookies for a particular WebExtension.

adding an exception for the moz-extension://... URL does not work. It worked with the older XUL extension but not with this version.
Floyd77
Posts: 34
Joined: November 27th, 2012, 6:07 am

Re: WebExtensions with cookies disabled

Post by Floyd77 »

adding an exception for the moz-extension://... URL does not work. It worked with the older XUL extension but not with this version.
Update: this workaround now works since Firefox 55 beta (I just discovered it).
Post Reply