question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] CAD makes Firefox browser hang without Cache Cleanup enabled

See original GitHub issue

Acknowledgements

  • I acknowledge that I have read the above items

Describe the bug

Like https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/issues/1120, however on Windows, and without Cache Cleanup enabled (disabling it was the previous “solution” to the problem), the problem still persists.

As detailed in my comment on the linked issue:

My CAD core settings (click):
{
  "settings": [
    {
      "name": "activeMode",
      "value": true
    },
    {
      "name": "delayBeforeClean",
      "value": 15
    },
    {
      "name": "statLogging",
      "value": true
    },
    {
      "name": "showNumOfCookiesInIcon",
      "value": true
    },
    {
      "name": "showNotificationAfterCleanup",
      "value": false
    },
    {
      "name": "cleanCookiesFromOpenTabsOnStartup",
      "value": true
    },
    {
      "name": "contextualIdentities",
      "value": false
    },
    {
      "id": "DEPRECATED - use localStorageCleanup",
      "name": "localstorageCleanup",
      "value": true
    },
    {
      "name": "notificationOnScreen",
      "value": "5"
    },
    {
      "name": "domainChangeCleanup",
      "value": false
    },
    {
      "id": "DEPRECATED - use default expressions",
      "name": "greyCleanLocalstorage",
      "value": true
    },
    {
      "id": "DEPRECATED - use default expressions",
      "name": "whiteCleanLocalstorage",
      "value": true
    },
    {
      "name": "enableNewVersionPopup",
      "value": true
    },
    {
      "name": "debugMode",
      "value": false
    },
    {
      "name": "enableGreyListCleanup",
      "value": true
    },
    {
      "name": "keepDefaultIcon",
      "value": false
    },
    {
      "name": "sizePopup",
      "value": 16
    },
    {
      "name": "sizeSetting",
      "value": 16
    },
    {
      "name": "contextMenus",
      "value": false
    },
    {
      "name": "discardedCleanup",
      "value": true
    },
    {
      "name": "cacheCleanup",
      "value": false
    },
    {
      "name": "cleanExpiredCookies",
      "value": true
    },
    {
      "name": "indexedDBCleanup",
      "value": true
    },
    {
      "name": "localStorageCleanup",
      "value": true
    },
    {
      "name": "manualNotifications",
      "value": true
    },
    {
      "name": "pluginDataCleanup",
      "value": true
    },
    {
      "name": "serviceWorkersCleanup",
      "value": true
    },
    {
      "name": "contextualIdentitiesAutoRemove",
      "value": true
    }
  ]
}

As my comment states:

As soon as I open Firefox, some of the tabs that try to load just hang with a blank background with a spinning circular icon until they eventually do. This also happens seemingly randomly during use of the browser and fairly often. When I disable CAD and restart Firefox, tabs always load instantly.

This has been happening since maybe Firefox version 97-98?

To Reproduce

Not clear how to cause the issue to occur. It was a few Firefox versions ago that the problem occurred. Whether it was introduced by Firefox or a version of CAD I don’t know. I will try to diagnose this a little further by resetting CAD to its default settings and see if the issue persists. Kind of reluctant to do so because I’ll potentially be losing my current logins and other info. I will wait for any response first.

Expected Behavior

Extension to not cause hangs, regardless if the Cache Cleanup settings option is enabled or not.

Screenshots

No response

System Info - Operating System (OS)

Windows 11

System Info - Browser Info

Firefox 101.0.1

System Info - CookieAutoDelete Version

3.7.0

Additional Context

I am aware that duplicate issues shouldn’t be opened but my attempts to mention the dev’s username didn’t appear to get any response. Close if need be, but any help would be greatly appreciated as this is an ongoing problem in my daily use and I would rather not disable CAD altogether and find a replacement extension.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
redactedscribecommented, Jun 27, 2022

Just to let you know, unfortunately as predicted, after a week of daily browser use, the spinning circle has begun to return. I suppose I’ll have to disable and then re-enable IndexDB and LocalStorage cleaning to clean them out to regain normal tab-loading speed before the hangs become even longer.

1reaction
kennethtran93commented, Jun 19, 2022

You’re not having CAD keep anything you’ve enabled CAD to clean, so you’re essentially cleaning up all cookies, indexeddb, localstorage, plugin data, and service workers for domains matching that expression

I see what you’re saying. However, this shouldn’t be cleaning up the cookies as I have “Keep All Cookies” enabled (which is the only reason the expression exists), but yes, everything else for that particular domain should be being cleared.

My bad. Seems I messed up with the variable name of that option in the backend.

Currently, it stands that cleanAllCookies with true is actually Keep All Cookies checked, so I’ll need to rename that as well in the next version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox hangs or is not responding - How to fix
For example, Firefox may hang at startup or fail to load any content when Webroot SecureAnywhere is installed and enabled (this was fixed...
Read more >
Firefox freezes on some websites with Cache the World enabled
We have encountered multiple websites which are causing Firefox to freeze and become unusable while having the accessibility.cache.enabled pref and NVDA enabled ......
Read more >
How to clear the Firefox cache - Mozilla Support
Clear the cache · Click the menu button Fx89menuButton to open the menu panel. · Click History and select Clear Recent History…. ·...
Read more >
Firefox hangs on google search V 100.0 - Mozilla Support
Issue appeared around the V99 update. Fix would be greatly appreciated - exiting and re-opening browser, dropping all tabs to reload is a ......
Read more >
Firefox uses too much memory or CPU resources - How to fix
A workaround for this is to periodically restart Firefox. You can configure Firefox to save your tabs and windows so that when you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found