MozillaZine

[Ext] Cookie Controller, now with DOM storage

Announce and Discuss the Latest Theme and Extension Releases.
amoe
 
Posts: 4
Joined: October 1st, 2016, 10:49 am

Post Posted October 1st, 2016, 10:57 am

I've been using Cookie Controller for a year or so and I really love it. Recently I started having issues with saving cookie permissions. Any permissions I saved were gone after quitting and restarting FF. I exported my cookie settings and tried many things to resolve this. But it seems to be some kind of issue with the export file itself. Once I install CC and import the XML file, that profile then becomes permanently subject to this issue. Disabling CC afterwards doesn't bring back my ability to manually add exceptions. Possibly I've flipped some kind of secret setting that just discards any preferences that I made during the browsing session? The exported options are below. I get the same behaviour with Firefox 44, 45, 48, and 49. Using Debian unstable.
Code: Select all
    <pref name='extensions.cookieController.filterPermissions' type='128' value='true'/>
    <pref name='extensions.cookieController.confirm' type='128' value='true'/>
    <pref name='extensions.cookieController.onSession' type='128' value='false'/>
    <pref name='extensions.cookieController.hideTidy' type='128' value='true'/>
    <pref name='extensions.cookieController.permissionExpires' type='32' value='0'/>
    <pref name='extensions.cookieController.sessionOnlyCount' type='64' value='0'/>
    <pref name='extensions.cookieController.reloadAll' type='128' value='false'/>
    <pref name='extensions.cookieController.offVisited' type='128' value='false'/>
    <pref name='extensions.cookieController.offDeny' type='128' value='true'/>
    <pref name='extensions.cookieController.safeMode' type='128' value='true'/>
    <pref name='extensions.cookieController.startOn' type='128' value='false'/>
    <pref name='extensions.cookieController.onStorage' type='128' value='true'/>
    <pref name='extensions.cookieController.offAsk' type='128' value='false'/>
    <pref name='extensions.cookieController.reloadPage' type='128' value='true'/>
    <pref name='extensions.cookieController.allowCookiesCount' type='64' value='26'/>
    <pref name='extensions.cookieController.alwaysPin' type='128' value='true'/>
    <pref name='extensions.cookieController.offStorage' type='128' value='true'/>
    <pref name='extensions.cookieController.flipTemporary' type='128' value='true'/>
    <pref name='extensions.cookieController.off3rdParty' type='128' value='true'/>
    <pref name='extensions.cookieController.on3rdParty' type='128' value='true'/>
    <pref name='extensions.cookieController.onDays' type='128' value='false'/>
    <pref name='extensions.cookieController.stripSub' type='128' value='false'/>
    <pref name='extensions.cookieController.1stPartyOnlyCount' type='64' value='11'/>
    <pref name='extensions.cookieController.offSession' type='128' value='true'/>
    <pref name='extensions.cookieController.onVisited' type='128' value='false'/>
    <pref name='extensions.cookieController.startOff' type='128' value='true'/>
    <pref name='extensions.cookieController.filterCookies' type='128' value='true'/>
    <pref name='extensions.cookieController.reloadOnClose' type='128' value='true'/>
    <pref name='extensions.cookieController.exportDir' type='32' value='/home/amoe/export-1oct'/>
    <pref name='extensions.cookieController.onAsk' type='128' value='false'/>
    <pref name='extensions.cookieController.stripWWW' type='128' value='true'/>
    <pref name='network.cookie.alwaysAcceptSessionCookies' type='128' value='false'/>
    <pref name='network.cookie.lifetime.days' type='64' value='90'/>
    <pref name='network.cookie.lifetimePolicy' type='64' value='2'/>
    <pref name='network.cookie.cookieBehavior' type='64' value='2'/>
    <pref name='network.cookie.prefsMigrated' type='128' value='true'/>
    <pref name='network.cookie.thirdparty.sessionOnly' type='128' value='true'/>
    <pref name='dom.storage.enabled' type='128' value='true'/>

amoe
 
Posts: 4
Joined: October 1st, 2016, 10:49 am

Post Posted October 25th, 2016, 1:16 am

Bump, does anyone have any idea about the above? I have a feeling it might be related to this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1263209

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted October 27th, 2016, 1:30 pm

Sorry, this message hit a new page and I missed it until now.

This has been reported before and seems to be related to temporary permissions. These can be set by using a modified click (ctrl- or middle-) on the perm button or menuitem to set an exception. The exception will only last until you restart Firefox. If this is the case for you then the obvious thing is not to do the modified click :) If that is not possible, post back the situation and I'll find a solution.

I have had a handful of recent reports from people that appear to be getting these temporary permissions for no obvious reason. When I sent out a test version that wouldn't ever create a temporary permission the problem went away. It might be related to unusual controllers (one-button mouse or equivalent?) that are causing a modified click to be generated, but I don't know.

amoe
 
Posts: 4
Joined: October 1st, 2016, 10:49 am

Post Posted October 27th, 2016, 9:55 pm

Thanks for the response, lithopsian! I have never used the control-click, I am using the keyboard to set permissions most of the time. I'd be interested to try a test version that won't create the temporary permissions, it sounds like I'm having the same problem as these recent reports that you mention.

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted October 28th, 2016, 2:47 am

How do you use the keyboard? From the tools menu?

Another thing worth trying is to actually use the modified click (ctrl-enter or middle click or ctrl click) and see if that creates a permanent exception instead of a temporary one.

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted October 28th, 2016, 10:40 am

I should perhaps mention that I don't see this problem, and I don't think most users do either. Which is why I'm asking all the dumb questions :)

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted October 28th, 2016, 10:50 am

D'oh!!!!! Brain-fade! I just went through the preferences that you posted (very helpful!) and I see a problem. Possibly the problem.

The preference flipTemporary appears to be set to true. This isn't exposed in the user interface, but it was added for a few people who want their exceptions to be "session-only" by default. You are now one of those select few people ;) Try setting it to false to resume normal service.

I still need to find out why this happens, because it has happened to at least one person before.

amoe
 
Posts: 4
Joined: October 1st, 2016, 10:49 am

Post Posted November 1st, 2016, 2:35 am

That's great! It worked. The confusing part is that I previously tried to fix it by copying the default set of preferences from a fresh profile into my existing set of exceptions, as a new combined XML file. However, importing this other XML file, which had the "extensions.cookieController.flipTemporary" set to false as is the default, still resulted in a profile with the flipTemporary pref set to true after import. To fix it, I had to enter about:config and reset the value of the pref to false. After that, everything works and the changes persist across shutdown & restart. Thanks lithopsian!

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted November 1st, 2016, 10:11 am

Thanks for the feedback. There is a bug in the import function. It will be fixed pronto.

Update: v 5.6 is now out. Imports will now set the flipTemporary preference correctly, usually false. Anyone whose cookie exceptions seem to disappear when Firefox is restarted may still have the preference set to true from an older import; reset it to false and everything should be fine.

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted November 11th, 2016, 7:41 am

Did someone ask for import and export of the cookies themselves? I have it in the back of my mind, but could have just imagined it.

Keefa
 
Posts: 18
Joined: June 18th, 2012, 9:19 am

Post Posted November 30th, 2016, 6:50 am

Cookie Controller's UI doesn't seem to work on Firefox nightlies anymore, presumably after this landed: https://bugzilla.mozilla.org/show_bug.cgi?id=1293305

Using it on nightly I can't see from the tray icon whether or not the site is blocked, and clicking on the little arrow next to the icon only shows a tiny, empty box.

Hopefully you'll find time to fix it soon. Thank you very much for your work on the extension so far!

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted November 30th, 2016, 3:57 pm

Yes, that would break the menu. Not sure why it would stop the icon from working. I'll put up a fix anyway, this is a bit of javascript that is here to stay (or gone for good).

Keefa
 
Posts: 18
Joined: June 18th, 2012, 9:19 am

Post Posted December 2nd, 2016, 7:24 am

I just got the update and Cookie Controller seems to work perfectly once again. Excellent work! Thank you again.

lithopsian
 
Posts: 3663
Joined: September 15th, 2010, 9:03 am

Post Posted December 2nd, 2016, 1:46 pm

Keefa wrote:I just got the update and Cookie Controller seems to work perfectly once again. Excellent work! Thank you again.

Thanks for tracking down what caused the breakage.

KPbIM
 
Posts: 14
Joined: December 5th, 2016, 12:40 pm

Post Posted December 11th, 2016, 1:06 pm

lithopsian wrote:Does anyone have any good ideas for IndexedDB?


maybe try this addon:

https://addons.mozilla.org/en-US/firefo ... indexeddb/

youn can disable indexeddb by one click.

to delete some unwanted data in Profilfolder/storage i made a shortcut of the Profilfolder to the desktop and delete sometimes the whole folder. FF dreate an new empty folder when starts again.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 5 guests